ITK/Release 5/DICOM/Color

From KitwarePublic
< ITK‎ | Release 5‎ | DICOM
Revision as of 08:08, 11 October 2019 by Mathieu (talk | contribs) (Created page with "= Multiple Components in DICOM = == ITK 5.0 == DICOM standard allow storing of image with more than one components. As of today, only 1 or 3 components are considered valid...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Multiple Components in DICOM

ITK 5.0

DICOM standard allow storing of image with more than one components. As of today, only 1 or 3 components are considered valid DICOM SOP Class instances (for all IODs).

By design the itk::GDCMImageIO was designed and implemented so that an input YBR_FULL image would be loaded as such (no implicit conversion to RGB was done). The main reason for that is that ITK is a processing toolkit, so quantitative analysis is supposed to be done on the best possible pixel representation. Since conversion from integer YBR_FULL to integer RGB colorspace is a lossy operation (truncation in floating point representation), the conversion has never been implemented.

This behavior was considered ok, as long as the image was not directly loaded in viz application such as Slicer, where suddenly the image would appears with a weird color scheme.

ITK 5.x

The behavior for YBR_FULL vs RGB color model has been discussed and it seems consensus would be to convert to RGB always. Since DICOM, JPEG and TIFF can be somewhat relates for this matter, we should strive to keep the behavior consistent.

Current behavior of ITK 5.0:

Photometric Interpretation JPEG TIFF GDCM DCMTK
MONOCHROME1 MONOCHROME1 MONOCHROME2 MONOCHROME1 ?MONOCHROME1?
MONOCHROME2 MONOCHROME2 MONOCHROME2 MONOCHROME2 MONOCHROME2
PALETTE_COLOR PALETTE_COLOR PALETTE_COLOR Converted to RGB ??
RGB RGB RGB RGB ?RGB?
HSV
ARGB
CMYK
YBR_FULL YBR_FULL YBR_FULL ?? ??
YBR_FULL_422
YBR_PARTIAL_422
YBR_PARTIAL_420
YBR_ICT
YBR_RCT