EasyColor::Format444To422
Converts a YUV 4:4:4 image to a YUV 4:2:2 image using filtering
Namespace: Euresys::Open_eVision
Parameters
sourceImage
Pointer to the input image/ROI.
destinationImage
Pointer to the output image/ROI, stored using the 16 bits per pixel format.
yFirst
Flag indicating if the format is YUYVYUYV (true
) or UYVYUYVY (false
).
Remarks
In the YUV system, it has been established that sub-sampling the chroma components does not degrade the visual image quality. The 4:4:4 format uses three bytes of information by pixel. The 4:2:2 format is such that only the U and V chroma of the even pixels are kept and they are stored with the even and odd luma, as follows:
Thus, only two bytes per pixel are required.
Y~[even]~ U~[even]~ Y~[odd]~ V~[even]~
EasyColor.Format444To422
Converts a YUV 4:4:4 image to a YUV 4:2:2 image using filtering
Namespace: Euresys.Open_eVision
Parameters
sourceImage
Pointer to the input image/ROI.
destinationImage
Pointer to the output image/ROI, stored using the 16 bits per pixel format.
yFirst
Flag indicating if the format is YUYVYUYV (true
) or UYVYUYVY (false
).
Remarks
In the YUV system, it has been established that sub-sampling the chroma components does not degrade the visual image quality. The 4:4:4 format uses three bytes of information by pixel. The 4:2:2 format is such that only the U and V chroma of the even pixels are kept and they are stored with the even and odd luma, as follows:
Thus, only two bytes per pixel are required.
Y~[even]~ U~[even]~ Y~[odd]~ V~[even]~
EasyColor.Format444To422
Converts a YUV 4:4:4 image to a YUV 4:2:2 image using filtering
Module: open_evision
[Python]
@staticmethod
Format444To422(
sourceImage: EROIC24
destinationImage: EROIBW16
yFirst: bool
) -> None
Parameters
sourceImage
Pointer to the input image/ROI.
destinationImage
Pointer to the output image/ROI, stored using the 16 bits per pixel format.
yFirst
Flag indicating if the format is YUYVYUYV (true
) or UYVYUYVY (false
).
Remarks
In the YUV system, it has been established that sub-sampling the chroma components does not degrade the visual image quality. The 4:4:4 format uses three bytes of information by pixel. The 4:2:2 format is such that only the U and V chroma of the even pixels are kept and they are stored with the even and odd luma, as follows:
Thus, only two bytes per pixel are required.
Y~[even]~ U~[even]~ Y~[odd]~ V~[even]~