Helper class that takes care of pixel format conversion.
More...
#include <cvb/pixel_format_converter.hpp>
◆ PixelFormatConverter()
Constructor.
- Parameters
-
[in] | sourceFormat | Source pixel format. |
[in] | destinationFormat | Destination pixel format. |
- Exceptions
-
Instantiates a converter object that converts source pixel format image to destination pixel format image.
- See also
- Execute
◆ Create()
Creates a pixel format converter.
- Parameters
-
[in] | sourceFormat | Source pixel format. |
[in] | destinationFormat | Destination pixel format. |
- Returns
-
Pointer to the created pixel format converter.
- Exceptions
-
◆ DestinationFormat()
Gets the destination pixel format.
- Returns
- Destination pixel format.
- Exceptions
-
Does | not throw any exception. |
◆ Execute()
template<class T>
void Execute |
( |
const T & | sourceObject, |
|
|
Image & | destinationObject ) |
|
inline |
Converts a PFNC compliant object to another.
- Parameters
-
[in] | sourceObject | Data source to be converted. |
[out] | destinationObject | Destination object that stores the converted data. |
- Template Parameters
-
- Exceptions
-
Note that the source object must implement IPFNCBuffer class, and both arguments must follow the converter's pixel format configuration.
- See also
- SourceFormat DestinationFormat
◆ Handle()
Classic API handle.
- Returns
- Classic API handle.
- Exceptions
-
Does | not throw any exception. |
It is normally not necessary to work with this handle.
◆ SourceFormat()
Gets the source pixel format.
- Returns
- Source pixel format.
- Exceptions
-
Does | not throw any exception. |