Hi Giacomo,
If it displays correctly when interpreting it as YBR, you can assume that the photometric interpretation for this image was wrong ;-)
The actual challenge is how to detect this in software reliable. There are systems that convert uncompressed RGB images to JPEG lossy and forget to update the photometric interpretation tag, which makes it more difficult for the receiver to do the right thing.
Table 8.2.1.-1 in PS.3.5 2025d allows usage of both YBR_FULL_422 and RGB as values for the photometric interpretation. But JPEG lossy images are almost always stored in YBR_FULL_422 as common jpeg codecs will do this automaticly when encoding to and from RGB. DICOM correction proposal
CP-1262 has a good discussion about it.
A helpfull check is to also always take into account which IOD your system is processing. For example the Multi-frame True Color SC Image IOD only allows Photometric Interpretation (0028,0004) to have the value YBR_FULL_422 when using JPEG lossy. This info can be used to decide if the Photometric Interpretation tag can be trusted or not.
Regards, Victor
P.S.1 There are also bad DICOM jpeg lossy images that are actually encoded in YBR_FULL instead in YBR_FULL_422, but this information is also present in the encoded bitstream and will be handled by the codec.
P.S.2 Color images encoded with JPEG lossless or JPEG-LS are almost always stored in RGB. Converting to RGB to YBR and back is not a lossless process for these transfer syntaxes and would defeat the purpose of using a lossless TS.