This fixes a mismatch between the pixel data readers' monochrome output and the way that said output was being used, thus fixing cases where the photometric interpretation was being erroneously changed from MONOCHROME1 to MONOCHROME2 for encapsulated pixel data.
Summary
[encoding] (change) change expectations of PixelDataReader to match implementations
When decoding monochrome images, decode and decode_frame should retain the photometric interpretation of the source object (monochrome1 or monochrome2)
This is the most intuitive approach with less effort for decoders. It does not apply to GDCM integration though, which will convert monochrome1 images to monochrome2.
[pixeldata] fix photometric interpretation reset after pixel data decoding
decoding a monochrome image no longer implies a change to the photometric interpretation
This fixes a mismatch between the pixel data readers' monochrome output and the way that said output was being used, thus fixing cases where the photometric interpretation was being erroneously changed from MONOCHROME1 to MONOCHROME2 for encapsulated pixel data.
Summary
decode
anddecode_frame
should retain the photometric interpretation of the source object (monochrome1 or monochrome2) This is the most intuitive approach with less effort for decoders. It does not apply to GDCM integration though, which will convert monochrome1 images to monochrome2.