Helper class that takes care of pixel format conversion. More...
Inherits object.
Public Member Functions | |
cvb.PixelFormatConverter | create (int source_format, int destination_format) |
Creates a pixel format converter. More... | |
None | execute (self, Union[cvb.Image, cvb.PFNCBuffer, cvb.Composite] source_object, cvb.Image destination_object) |
Converts a PFNC compliant object to another pixel format. More... | |
Properties | |
destination_format = property | |
int: Gets the destination pixel format. | |
source_format = property | |
int: Gets the source pixel format. | |
Helper class that takes care of pixel format conversion.
Constructor.
source_format : int Source pixel format.
destination_format : int Destination pixel format.
cvb.PixelFormatConverter create | ( | int | source_format, |
int | destination_format | ||
) |
Creates a pixel format converter.
source_format : int Source pixel format.
destination_format : int Destination pixel format.
cvb.PixelFormatConverter Requested pixel format conveter.
None execute | ( | self, | |
Union[cvb.Image, cvb.PFNCBuffer, cvb.Composite] | source_object, | ||
cvb.Image | destination_object | ||
) |
Converts a PFNC compliant object to another pixel format.
If any of the given objects is not PFNC compliant then it throws a runtime exception.
source_object : Union[cvb.Image, cvb.PFNCBuffer, cvb.Composite] Data source to be converted.
destination_object : cvb.Image Destination object that stores the converted data.