5# include "../_cexports/c_foundation.h"
7# include "../global.hpp"
8# include "../image.hpp"
9# include "../exception.hpp"
10# include "../size_2d.hpp"
12# include "transform_2d.hpp"
50 inline void DecomposeTestImageDataType(
TestImageDataType dt,
int &bitsPerPixel,
bool &isSigned,
bool &isFloat)
98 bool isSigned, isFloat;
99 Private::DecomposeTestImageDataType(dataType, bitsPerPixel, isSigned, isFloat);
101 return Internal::DoResCallObjectOut<Image>([&](
void *&resimg) {
102 return CVB_CALL_CAPI(
120 Axis axis,
double offset = 0.0,
double slope = 1.0)
122 if (axis == Axis::NoAxis)
127 bool axisHorizontal = axis == Axis::X || axis == Axis::Both;
128 bool axisVertical = axis == Axis::Y || axis == Axis::Both;
131 bool isSigned, isFloat;
132 Private::DecomposeTestImageDataType(dataType, bitsPerPixel, isSigned, isFloat);
134 return Internal::DoResCallObjectOut<Image>([&](
void *&resimg) {
136 offset, slope, axisHorizontal, axisVertical, resimg));
Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle...
Definition size_2d.hpp:20
T Height() const noexcept
Gets the vertical component of the size.
Definition size_2d.hpp:77
T Width() const noexcept
Gets the horizontal component of the size.
Definition size_2d.hpp:57
cvbres_t CreateFilterTestImage(long Width, long Height, long Dimension, long BitsPerPixel, cvbbool_t Signed, cvbbool_t Float, IMG &ImgOut)
cvbres_t CreateGreyRamp(long Width, long Height, long Dimension, long BitsPerPixel, cvbbool_t Signed, cvbbool_t Float, double Offset, double Slope, cvbbool_t AxisHorizontal, cvbbool_t AxisVertical, IMG &ImgOut)
Namespace for collection of test image generating functions from the Foundation package.
Definition test_images.hpp:29
TestImageDataType
Data types usable for test image generation.
Definition test_images.hpp:33
@ Float32
32 bits per pixel floating point data
Definition test_images.hpp:43
@ Unsigned16
Unsigned 16 bits per pixel integer data.
Definition test_images.hpp:37
@ Signed16
Signed 16 bits per pixel integer data.
Definition test_images.hpp:39
@ Signed32
Signed 32 bits per pixel integer data.
Definition test_images.hpp:41
@ Unsigned8
Unsigned 8 bits per pixel integer data.
Definition test_images.hpp:35
std::unique_ptr< Image > CreateJaehneImage(Size2D< int > size, int numPlanes, TestImageDataType dataType)
Create a filter test image as suggested by Prof. Jaehne, suitable for investigating the isotropy char...
Definition test_images.hpp:95
std::unique_ptr< Image > CreateRampImage(Size2D< int > size, int numPlanes, TestImageDataType dataType, Axis axis, double offset=0.0, double slope=1.0)
Create a gray ramp test image.
Definition test_images.hpp:119
Namespace for the Foundation package.
Definition decl_metric_aqs12_calibration_piece.hpp:11
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17