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

Various image scaling functions. More...

Functions

std::unique_ptr< ImageScaleTo8BppUnsigned (const Image &image)
 Convert the input image to an image with 8 bits per pixel unsigned data. More...
 
std::unique_ptr< ImageScaleTo16BppUnsigned (const Image &image)
 Convert the input image to an image with 16 bits per pixel unsigned data. More...
 
std::unique_ptr< ImageScaleTo16BppSigned (const Image &image)
 Convert the input image to an image with 16 bits per pixel signed data. More...
 
std::unique_ptr< ImageScaleTo32BppSigned (const Image &image)
 Convert the input image to an image with 32 bits per pixel signed data. More...
 
std::unique_ptr< ImageScaleTo32BppFloat (const Image &image, double minVal, double maxVal)
 Convert the input image to an image with 32 bits per pixel float data. More...
 

Detailed Description

Various image scaling functions.

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

Function Documentation

◆ ScaleTo16BppSigned()

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

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

Parameters
[in]imageImage to be scaled.
Returns
The scaled image.
Exceptions
Anyexception derived from std::exception including CvbException.

When scaling, the value range from the source image is adapted to that of the target image as good as possible.

◆ ScaleTo16BppUnsigned()

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

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

Parameters
[in]imageImage to be scaled.
Returns
The scaled image.
Exceptions
Anyexception derived from std::exception including CvbException.

When scaling, the value range from the source image is adapted to that of the target image as good as possible.

◆ ScaleTo32BppFloat()

std::unique_ptr< Image > ScaleTo32BppFloat ( const Image image,
double  minVal,
double  maxVal 
)
inline

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

Parameters
[in]imageImage to be scaled.
[in]minValMinimum value to occur in the output image.
[in]maxValMaximum value to occur in the output image.
Returns
The scaled image.
Exceptions
Anyexception derived from std::exception including CvbException.

When scaling, the value range from the source image is adapted to that of the target image as good as possible.

◆ ScaleTo32BppSigned()

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

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

Parameters
[in]imageImage to be scaled.
Returns
The scaled image.
Exceptions
Anyexception derived from std::exception including CvbException.

When scaling, the value range from the source image is adapted to that of the target image as good as possible.

◆ ScaleTo8BppUnsigned()

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

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

Parameters
[in]imageImage to be scaled.
Returns
The scaled image.
Exceptions
Anyexception derived from std::exception including CvbException.

When scaling, the value range from the source image is adapted to that of the target image as good as possible.