-
Notifications
You must be signed in to change notification settings - Fork 82
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
[Fix] BOT generation for encapsulated data #399
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks spot on! Thank you for noticing! I will just suggest a minor tweak to the vector construction calls and we can merge afterwards.
Co-authored-by: Eduardo Pinho <enet4mikeenet@gmail.com>
The issue was kind of tricky to spot, the generated files could be open with Weasis, Aliza, etc. DCMTK did not show any issues nor GDCM. It was cornerstone dicom-parser which failed due to this issue. |
That is interesting. Indeed, any parser relying uniquely on the basic offset table to identify the number of frames of an image could choke on this. In any case, thank you very much @dougyau. I will try to push a patch release soon. |
The BOT of the pixel data should point to the beginning of each frame. The original implementation was adding 1 extra index which was wrong as the last entry pointed to the end of the file.