Various image conversion functions. More...
Functions | |
std::unique_ptr< Image > | ConvertTo8BppUnsigned (const Image &image) |
Convert the input image to an image with 8 bits per pixel unsigned data. More... | |
std::unique_ptr< Image > | ConvertTo16BppUnsigned (const Image &image) |
Convert the input image to an image with 16 bits per pixel unsigned data. More... | |
std::unique_ptr< Image > | ConvertTo16BppSigned (const Image &image) |
Convert the input image to an image with 16 bits per pixel signed data. More... | |
std::unique_ptr< Image > | ConvertTo32BppSigned (const Image &image) |
Convert the input image to an image with 32 bits per pixel signed data. More... | |
std::unique_ptr< Image > | ConvertTo32BppFloat (const Image &image) |
Convert the input image to an image with 32 bits per pixel float data. More... | |
Various image conversion functions.
|
inline |
Convert the input image to an image with 16 bits per pixel signed data.
[in] | image | Image to be converted. |
Any | exception derived from std::exception including CvbException. |
Conversion means that when converting to a data type with higher value range, the image data will simply be padded with zeros but the actual values will be conserved. When converting to lower value ranges, the pixel values from the source image will be saturated at the value limits of the target format where necessary.
|
inline |
Convert the input image to an image with 16 bits per pixel unsigned data.
[in] | image | Image to be converted. |
Any | exception derived from std::exception including CvbException. |
Conversion means that when converting to a data type with higher value range, the image data will simply be padded with zeros but the actual values will be conserved. When converting to lower value ranges, the pixel values from the source image will be saturated at the value limits of the target format where necessary.
|
inline |
Convert the input image to an image with 32 bits per pixel float data.
[in] | image | Image to be converted. |
Any | exception derived from std::exception including CvbException. |
Conversion means that when converting to a data type with higher value range, the image data will simply be padded with zeros but the actual values will be conserved. When converting to lower value ranges, the pixel values from the source image will be saturated at the value limits of the target format where necessary.
|
inline |
Convert the input image to an image with 32 bits per pixel signed data.
[in] | image | Image to be converted. |
Any | exception derived from std::exception including CvbException. |
Conversion means that when converting to a data type with higher value range, the image data will simply be padded with zeros but the actual values will be conserved. When converting to lower value ranges, the pixel values from the source image will be saturated at the value limits of the target format where necessary.
|
inline |
Convert the input image to an image with 8 bits per pixel unsigned data.
[in] | image | Image to be converted. |
Any | exception derived from std::exception including CvbException. |
Conversion means that when converting to a data type with higher value range, the image data will simply be padded with zeros but the actual values will be conserved. When converting to lower value ranges, the pixel values from the source image will be saturated at the value limits of the target format where necessary.