Compressing RGB image and getting the wrong PhotometricInterpretation

80 views
Skip to first unread message

Sorin Cristescu

unread,
Jun 10, 2020, 2:11:37 AM6/10/20
to Fellow Oak DICOM
Dear all,

I'm doing RGB image compression like this:
DicomCodecExtensions.Clone(dicomfile, DicomTransferSyntax.JPEGProcess1)
or:
DicomCodecExtensions.Clone(dicomfile, DicomTransferSyntax.JPEG2000Lossy)
or:
DicomCodecExtensions.Clone(dicomfile, DicomTransferSyntax.JPEGProcess2_4)

After this, fo-dicom updates the PhotometricInterpretation, e.g. to YBR_FULLbut dciodvfy.exe complains: 

Error - Unrecognized enumerated value <YBR_FULL> for value 1 of attribute <Photometric Interpretation>


If I change PhotometricInterpretation manually to YBR_422dciodvfy.exe doesn't complain, but of course the colors of the compressed image are messed up.

Is there any way to make fo-dicom compress the RGB image and at the same time put the right PhotometricInterpretation in the result ?


Thanks,

Greetings,

    Sorin




Reinhard Gruber

unread,
Jul 3, 2020, 3:41:12 AM7/3/20
to Fellow Oak DICOM
good question. There seem to be some uncertainty about what is the right Photometricinterpretation. See these issues on github:


Which version of fo-dicom are you using? on which platform are you running (netframework, netcore, mono, other)? which codec are you using (the built in in fo-dicom or the one from Efferent)?


Reply all
Reply to author
Forward
0 new messages