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

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

Enumerations

enum class  TestImageDataType {
  Unsigned8 , Unsigned16 , Signed16 , Signed32 ,
  Float32
}
 Data types usable for test image generation. More...
 

Functions

std::unique_ptr< ImageCreateJaehneImage (Size2D< int > size, int numPlanes, TestImageDataType dataType)
 Create a filter test image as suggested by Prof. Jaehne, suitable for investigating the isotropy characteristics of a filter. More...
 
std::unique_ptr< ImageCreateRampImage (Size2D< int > size, int numPlanes, TestImageDataType dataType, Axis axis, double offset=0.0, double slope=1.0)
 Create a gray ramp test image. More...
 

Detailed Description

Namespace for collection of test image generating functions from the Foundation package.

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

Enumeration Type Documentation

◆ TestImageDataType

enum class TestImageDataType
strong

Data types usable for test image generation.

Enumerator
Unsigned8 

Unsigned 8 bits per pixel integer data.

Unsigned16 

Unsigned 16 bits per pixel integer data.

Signed16 

Signed 16 bits per pixel integer data.

Signed32 

Signed 32 bits per pixel integer data.

Float32 

32 bits per pixel floating point data

Function Documentation

◆ CreateJaehneImage()

std::unique_ptr< Image > CreateJaehneImage ( Size2D< int >  size,
int  numPlanes,
TestImageDataType  dataType 
)
inline

Create a filter test image as suggested by Prof. Jaehne, suitable for investigating the isotropy characteristics of a filter.

Parameters
[in]sizeSize of the image to be generated.
[in]numPlanesNumber of planes the image should have.
[in]dataTypeData type the image should have.
Returns
The test image.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ CreateRampImage()

std::unique_ptr< Image > CreateRampImage ( Size2D< int >  size,
int  numPlanes,
TestImageDataType  dataType,
Axis  axis,
double  offset = 0.0,
double  slope = 1.0 
)
inline

Create a gray ramp test image.

Parameters
[in]sizeSize of the image to be generated.
[in]numPlanesNumber of planes the image should have.
[in]dataTypeData type the image should have.
[in]axisAxis along which the ramp should run.
[in]offsetOffset the ramp should have.
[in]slopeSlope the ramp should have.
Returns
The test image.
Exceptions
Anyexception derived from std::exception including CvbException.