Skip to content

Decoding J2K RGB files - invalid value for 'PhotometricInterpretation' (YBR_RCT) #8

@Michael-Preibisch

Description

@Michael-Preibisch

Hello,

I'm having an issue when trying to decode RGB JPEG2000 files by using this codec. DCMTK console log is as follows:

E: invalid value for 'PhotometricInterpretation' (YBR_ICT)

or

E: invalid value for 'PhotometricInterpretation' (YBR_RCT)

The problem is with many files, but to this post I attach two of them (YBR_RCT anf YBR_ICT).
All of failing files share the same image-related attributes:
"BitsStored" -> 8,
"BitsAllocated" -> 8,
"HighBit" -> 7,
"SamplesPerPixel" -> 3

"PhotometricInterpretation" -> YBR_ICT or YBR_RCT

I am able to read MONOCHROME2 JPEG2000 files with your codec.

Example files:
https://drive.google.com/open?id=10JsJpsp3zNc2vUBdEkn8QK3UmL0Tq9HT

I'd be really grateful if you could help me.
Cheers,
M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions