{"action":"created","issue":{"url":"https://api.github.com/repos/chafey/dicomParser/issues/20","labels_url":"https://api.github.com/repos/chafey/dicomParser/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/chafey/dicomParser/issues/20/comments","events_url":"https://api.github.com/repos/chafey/dicomParser/issues/20/events","html_url":"https://github.com/chafey/dicomParser/issues/20","id":94070721,"number":20,"title":"readEncapsulatedPixelData not available in dicomParser.js","user":{"login":"NicolasRannou","id":214063,"avatar_url":"https://avatars.githubusercontent.com/u/214063?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasRannou","html_url":"https://github.com/NicolasRannou","followers_url":"https://api.github.com/users/NicolasRannou/followers","following_url":"https://api.github.com/users/NicolasRannou/following{/other_user}","gists_url":"https://api.github.com/users/NicolasRannou/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasRannou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasRannou/subscriptions","organizations_url":"https://api.github.com/users/NicolasRannou/orgs","repos_url":"https://api.github.com/users/NicolasRannou/repos","events_url":"https://api.github.com/users/NicolasRannou/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasRannou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-09T14:56:26Z","updated_at":"2015-07-10T12:31:31Z","closed_at":null,"body":"Hi Chris,\r\n\r\nFirst of all thanks for the great library -\r\n\r\nI am trying to read encapsulated pixelData in order to decompress it but it seems is is not exposed in the uglified dicomParser.js:\r\n\r\n```\r\nvar compressedPixelData = dicomParser.readEncapsulatedPixelData(\r\n    this._dataSet,\r\n    this._dataSet.elements.x7fe00010,\r\n    frameIndex);\r\n```\r\n\r\nreturns:\r\n\r\n```\r\n'undefined' is not a function\r\n```\r\n\r\nHow are we supposed readEncapsulatedPixelData with dicomParser? I was following what is done in the cornerstone WADO loader.\r\n\r\nAlso, as a related question, why do we have to provide the frameIndex to decompress the pixelData? Does it automatically return the frame of interest if we have a muti-frame dataset?\r\n\r\nIs it possible to extract all the pixelData at once, in the case of a multi-frame dataset, and split it later if needed, or is it not recommended?\r\n\r\nThanks\r\nNicolas"},"comment":{"url":"https://api.github.com/repos/chafey/dicomParser/issues/comments/120399500","html_url":"https://github.com/chafey/dicomParser/issues/20#issuecomment-120399500","issue_url":"https://api.github.com/repos/chafey/dicomParser/issues/20","id":120399500,"user":{"login":"NicolasRannou","id":214063,"avatar_url":"https://avatars.githubusercontent.com/u/214063?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasRannou","html_url":"https://github.com/NicolasRannou","followers_url":"https://api.github.com/users/NicolasRannou/followers","following_url":"https://api.github.com/users/NicolasRannou/following{/other_user}","gists_url":"https://api.github.com/users/NicolasRannou/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasRannou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasRannou/subscriptions","organizations_url":"https://api.github.com/users/NicolasRannou/orgs","repos_url":"https://api.github.com/users/NicolasRannou/repos","events_url":"https://api.github.com/users/NicolasRannou/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasRannou/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T12:31:31Z","updated_at":"2015-07-10T12:31:31Z","body":"Thanks for the heads up -\r\n\r\nI will double check it but as far as I remember when I tried to  do a console.log(dicomParser) , it was only showing the parseDicom function.\r\n\r\nI am importing dicomParser via npm (\"dicom-parser\": \"1.0.2\") and using it with browserify.\r\n\r\nI'll also try without NPM and keep you posted."}}