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

Namespace for collection of image extension functions from the Foundation package. More...

Functions

template<class RANGE >
TypedRange< void, double, RANGE >::type InitAOI (Image &image, Rect< int > aoi, const RANGE &values)
 Initialize the planes of AOI (area of interest) in this image to different values. More...
 
void InitAOI (Image &image, Rect< int > aoi, double value)
 Initialize the planes of AOI (area of interest) in this image to a value. More...
 
template<class RANGE >
TypedRange< void, double, RANGE >::type InitImage (Image &image, const RANGE &values)
 Initialize the planes of this image to different values. More...
 
void InitImage (Image &image, double value)
 Initialize the planes of this image to a value. More...
 
std::unique_ptr< ImageSubImage (const Image &image, Area2D aoi, Interpolation interpolation=Interpolation::Linear)
 Extract the content of an AOI (area of interest) into a new image. More...
 

Detailed Description

Namespace for collection of image extension functions from the Foundation package.

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

Function Documentation

◆ InitAOI() [1/2]

TypedRange< void, double, RANGE >::type InitAOI ( Image image,
Rect< int >  aoi,
const RANGE &  values 
)
inline

Initialize the planes of AOI (area of interest) in this image to different values.

Parameters
[in]imageImage to be initialized.
[in]aoiArea of interest to initialize.
[in]valuesValues to which the various planes are to be initialized (needs at least one value per plane).
Exceptions
Anyexception derived from std::exception including CvbException.

◆ InitAOI() [2/2]

void InitAOI ( Image image,
Rect< int >  aoi,
double  value 
)
inline

Initialize the planes of AOI (area of interest) in this image to a value.

Parameters
[in]imageImage to be initialized.
[in]aoiArea of interest to initialize.
[in]valueValues to which the various planes are to be initialized.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ InitImage() [1/2]

TypedRange< void, double, RANGE >::type InitImage ( Image image,
const RANGE &  values 
)
inline

Initialize the planes of this image to different values.

Parameters
[in]imageImage to be initialized.
[in]valuesValues to which the various planes are to be initialized (needs at least one value per plane).
Exceptions
Anyexception derived from std::exception including CvbException.

◆ InitImage() [2/2]

void InitImage ( Image image,
double  value 
)
inline

Initialize the planes of this image to a value.

Parameters
[in]imageImage to be initialized.
[in]valueValues to which the various planes are to be initialized.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SubImage()

std::unique_ptr< Image > SubImage ( const Image image,
Area2D  aoi,
Interpolation  interpolation = Interpolation::Linear 
)
inline

Extract the content of an AOI (area of interest) into a new image.

Parameters
[in]imageImage to work from.
[in]aoiArea of interest to be extracted.
[in]interpolationInterpolation mode to be used.
Returns
New image of the subregion.
Exceptions
Anyexception derived from std::exception including CvbException.