pydicom.pixels.utils.expand_ybr422#
- pydicom.pixels.utils.expand_ybr422(src: ByteString, bits_allocated: int) bytes[source]#
Return
YBR_FULL_422data expanded toYBR_FULL.Uncompressed datasets with a (0028,0004) Photometric Interpretation of
"YBR_FULL_422"are subsampled in the horizontal direction by halving the number of Cb and Cr pixels (i.e. there are two Y pixels for every Cb and Cr pixel). This function expands theYBR_FULL_422data to remove the subsampling and the output is thereforeYBR_FULL.