Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format of decompressed bytes? #6

Closed
gkjpettet opened this issue Nov 6, 2021 · 2 comments
Closed

Format of decompressed bytes? #6

gkjpettet opened this issue Nov 6, 2021 · 2 comments

Comments

@gkjpettet
Copy link

Hi. Firstly, thank so much for writing this. I'm writing a DICOM parser in a different language (Xojo) and, like many people, managed to read the elements in the DICOM file and be able to generate an image if the PixelData was uncompressed but have struggled to decode lossless JPEG.

I'm attempting to port this Java library to Xojo. I have one question. In the readme it says:

// single component
int[] decompressedData = decoder.decode()[0];

The bytes in decompressedData what format are they? Can I consider them the same as if they were in DICOM's "uncompressed" format. I.e I just need to apply RescaleSlope and RescaleIntercept and windowing to them or have they been decoded to a different JPEG format?

@rii-mango
Copy link
Owner

@gkjpettet That would be the raw DICOM pixel data -- yes, appropriate for rescale/window -- not in any JPEG format. Sorry the late reply.

@gkjpettet
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants