question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use dicomParse to parse the correct pixelData information

See original GitHub issue

This way can’t get x7fe00010’s pixelData, Thank you . ` var dataSet = dicomParser.parseDicom(byteArray);

var imageObj = {};

imageObj.windowCenter = dataSet.string(‘x00281050’);

imageObj.windowWidth = dataSet.string(‘x00281051’);

imageObj.accessionNumber = dataSet.string(‘x00080050’);

imageObj.acquisitionTime = dataSet.string(‘x00080032’);

imageObj.bitsAllocated = dataSet.string(‘x00280100’);

imageObj.highBit = dataSet.string(‘x00280102’);

imageObj.instanceNumber = dataSet.string(‘x00200013’);

imageObj.institutionName = dataSet.string(‘x00080080’);

imageObj.patientAge = dataSet.string(‘x00101010’);

imageObj.patientID = dataSet.string(‘x00100020’);

imageObj.patientName = dataSet.string(‘x00100010’);

imageObj.patientSex = dataSet.string(‘x00100040’);

imageObj.pixelRepresentation = dataSet.string(‘x00280103’);

imageObj.seriesDescription = dataSet.string(‘x0008103e’);

imageObj.seriesNumber = dataSet.string(‘x00200011’);

imageObj.sliceLocation = dataSet.string(‘x00201041’);

imageObj.sliceThickness` = dataSet.string(‘x00180050’);

imageObj.stationName = dataSet.string(‘x00081010’);

return imageObj;

`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yagnicommented, Jul 16, 2018

Try this:

var pixelDataElement = dataSet.elements.x7fe00010;
var pixelArray = new Uint16Array(dataSet.byteArray.buffer, pixelDataElement.dataOffset, pixelDataElement.length / 2);
Read more comments on GitHub >

github_iconTop Results From Across the Web

dicom - Go Packages
Parser is a struct that allows a user to parse Elements from a DICOM element-by-element using Next(), which may be useful for some...
Read more >
Pure web DICOM client: is it possible? - Google Groups
2) Agree that the pixel data should be compressed and a single compression algorithm should be used 3) I disagree that DICOM is...
Read more >
Problem getting all meta data from DICOM-file
I'm trying to parse a dicom file with some private tags. ... the problem is that the function dicomparse is not returning the...
Read more >
Posts Tagged 'dicom parse javascript' - A day with .Net
Posts about dicom parse javascript written by vivekcek. ... So our logic is to ready all bytes from 128-131 using some binary reader...
Read more >
Frontiers in PACS: DICOM Structured Reporting
Why use DICOM for reporting ? • What is DICOM Structured Reporting ? ... Contains a “tree” of information ... Both DICOM parse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found