-
Notifications
You must be signed in to change notification settings - Fork 81
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
Incorrect image when decoding multiframe pixeldata #561
Comments
PR: #562 It seems I can't link it in the development panel, so here it is in the comments. |
Thank you for reporting. Seeing #562, this seems to be specific to the GDCM integration, correct? Is the ultrasound in JPEG baseline? |
Tbh, I only tested with the GDCM implementation. And you are right, the ultra sound is in JPEG baseline: From
|
I've noticed that pixeldata is decoded incorrectly when using
decode_pixel_data()
and then exporting individual frames. When exporting usingdecode_pixel_data_frame
I get correct results. I'm using 2D ultrasound withybr_full_422
photometric interpretation.So this works:
And this doesn't:
Correct result:
Result when decoding all frames:
I've found a likely culprit too, when using
decode_pixel_data
a new photometric interpretation is computed based on the number of channels in the input image (see below). The single framedecode_pixel_data_frame
doesn't have this (seemingly incorrect) transformation.I've created a PR that removes the code and that seems to fix the issue.
The text was updated successfully, but these errors were encountered: