Photometric interpretation fix
Correct an inverted or mislabeled photometric interpretation.
Problem
A DICOM image has a wrong or missing Photometric Interpretation tag (0028,0004) — e.g. it says RGB but the pixel data is actually grayscale, or it says MONOCHROME1 (minimum is white) when it should be MONOCHROME2 (minimum is black). This causes images to display inverted or with wrong colors in the PACS viewer.
Steps
-
When applying the Bake W/L pixel operation, the output is automatically set to
MONOCHROME2— verified by the e2e tests. -
For manual correction, open the file (⌘O), switch to Edit mode (⌘3), filter for
(0028,0004), double-click, and enter the correct photometric interpretation code.
Result
Baking W/L outputs MONOCHROME2 photometric interpretation, and any manual edit to Photometric Interpretation is validated against the CS VR.