Menu

#277 pixeltype changed in GetBuffer method

3.0.4
open
None
9
2019-11-22
2012-10-29
Anonymous
No

While loading a JPEG-compressed image the pixel type of a gdcmBitmap object changes (from 12 bits allocated to 16).
See line gdcmBitmap.cxx:415.
This is done in a const method, Bitmap::TryJPEGCodec(), called by Bitmap::GetBuffer().

This behaviour raises problems when GDCM is used by ITK: in itkGDCMImageIO.cxx an image gets read, then GetBuffer
is called and afterwards the pixel type is checked for changes (only in Debug mode).

Discussion

  • Mathieu Malaterre

    • milestone: 2.2.1 --> 2.2.2
    • priority: 5 --> 7
     
  • Mathieu Malaterre

    • Group: 2.2.2 --> 2.3
    • Priority: 7 --> 9
     
  • Mathieu Malaterre

    issue 325 is directly related to this.

     
  • Mathieu Malaterre

    • Group: 2.3 --> 2.5
     
  • Sean McBride

    Sean McBride - 2019-02-21

    I've got a customer with a DICOM series that hits this assert with ITK 4.13.

    And the image appears doubled as in bug #325.

    Do I assume correctly that the issue still exists in git master?

     
  • Mihail Isakov

    Mihail Isakov - 2019-03-05

    Hello. Could you share the image? Thanks.

     
  • Mathieu Malaterre

    • Group: 2.9 --> 3.0.4
     
  • Mathieu Malaterre

    • labels: General (default) -->
     
  • Sean McBride

    Sean McBride - 2019-11-22

    Mathieu, did you fix this? Seems I no longer reproduce using ITK master from the other day!

     

Log in to post a comment.

MongoDB Logo MongoDB