Converts images from one PixelFormat to another.
More...
#include <peak_ipl/algorithm/peak_ipl_image_converter.hpp>
Converts images from one PixelFormat to another.
- Note
- To speed up processing instances of this class maintain internal memory pools to reuse memory instead of allocating new memory for each conversion. The memory is freed when the instance is destroyed.
◆ ImageConverter() [1/3]
| peak::ipl::ImageConverter::ImageConverter |
( |
| ) |
|
|
inline |
◆ ~ImageConverter()
| peak::ipl::ImageConverter::~ImageConverter |
( |
| ) |
|
|
inline |
◆ ImageConverter() [2/3]
| peak::ipl::ImageConverter::ImageConverter |
( |
const ImageConverter & |
other | ) |
|
|
delete |
◆ ImageConverter() [3/3]
◆ ConversionMode()
Returns the current conversion mode.
- Returns
- The current conversion mode
- Exceptions
-
- Since
- 1.0
◆ Convert() [1/2]
Converts the input image converted to the given pixel format.
- Parameters
-
| [in] | inputImage | The input image. |
| [in] | outputPixelFormat | The output pixel format. |
- Returns
- A new created image containing the data of the input image converted to the given pixel format
- Exceptions
-
- Since
- 1.0
◆ Convert() [2/2]
| Image peak::ipl::ImageConverter::Convert |
( |
const Image & |
inputImage, |
|
|
const peak::ipl::PixelFormat & |
outputPixelFormat, |
|
|
uint8_t * |
outputImageBuffer, |
|
|
size_t |
outputImageBufferSize |
|
) |
| const |
|
inline |
Saves the data of the current image converted to the given pixel format into a destination buffer and creates an image from that buffer.
- Parameters
-
| [in] | inputImage | The input image. |
| [in] | outputPixelFormat | The output pixel format. |
| [out] | outputImageBuffer | Pointer to destination buffer. |
| [in] | outputImageBufferSize | Size of destination buffer. |
- Returns
- Converted image
- Exceptions
-
- Since
- 1.1
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetConversionMode()
Set conversion mode.
- Parameters
-
| [in] | conversionMode | The conversion mode to set. |
- Exceptions
-
- Since
- 1.0
◆ SupportedOutputPixelFormatNames()
Returns the supported output pixel formats for a given input pixel format.
- Parameters
-
| [in] | inputPixelFormat | The input pixel format. |
- Returns
- A vector of supported pixel formats for the given input pixel format
- Exceptions
-
- Since
- 1.0
The documentation for this class was generated from the following file: