CVB++ 14.0
Cvb::Foundation::Convert Namespace Reference

Various image conversion functions. More...

Functions

std::unique_ptr< ImageConvertTo8BppUnsigned (const Image &image)
 Convert the input image to an image with 8 bits per pixel unsigned data. More...
 
std::unique_ptr< ImageConvertTo16BppUnsigned (const Image &image)
 Convert the input image to an image with 16 bits per pixel unsigned data. More...
 
std::unique_ptr< ImageConvertTo16BppSigned (const Image &image)
 Convert the input image to an image with 16 bits per pixel signed data. More...
 
std::unique_ptr< ImageConvertTo32BppSigned (const Image &image)
 Convert the input image to an image with 32 bits per pixel signed data. More...
 
std::unique_ptr< ImageConvertTo32BppFloat (const Image &image)
 Convert the input image to an image with 32 bits per pixel float data. More...
 

Detailed Description

Various image conversion functions.

Remarks
CMake users: Link to imported target CVB::CvbFoundationConvert

Function Documentation

◆ ConvertTo16BppSigned()

std::unique_ptr< Image > ConvertTo16BppSigned ( const Image image)
inline

Convert the input image to an image with 16 bits per pixel signed data.

Parameters
[in]imageImage to be converted.
Returns
Converted image.
Exceptions
Anyexception 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.

◆ ConvertTo16BppUnsigned()

std::unique_ptr< Image > ConvertTo16BppUnsigned ( const Image image)
inline

Convert the input image to an image with 16 bits per pixel unsigned data.

Parameters
[in]imageImage to be converted.
Returns
Converted image.
Exceptions
Anyexception 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.

◆ ConvertTo32BppFloat()

std::unique_ptr< Image > ConvertTo32BppFloat ( const Image image)
inline

Convert the input image to an image with 32 bits per pixel float data.

Parameters
[in]imageImage to be converted.
Returns
Converted image.
Exceptions
Anyexception 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.

◆ ConvertTo32BppSigned()

std::unique_ptr< Image > ConvertTo32BppSigned ( const Image image)
inline

Convert the input image to an image with 32 bits per pixel signed data.

Parameters
[in]imageImage to be converted.
Returns
Converted image.
Exceptions
Anyexception 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.

◆ ConvertTo8BppUnsigned()

std::unique_ptr< Image > ConvertTo8BppUnsigned ( const Image image)
inline

Convert the input image to an image with 8 bits per pixel unsigned data.

Parameters
[in]imageImage to be converted.
Returns
Converted image.
Exceptions
Anyexception 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.