141 *
this = std::move(other);
148 m_backendHandle = other.m_backendHandle;
149 other.m_backendHandle =
nullptr;
205 inputSize.
width, inputSize.
height, static_cast<PEAK_IPL_PIXEL_FORMAT>(pixelFormat));
216 static_cast<PEAK_IPL_PIXEL_FORMAT>(pixelFormatName),
217 reinterpret_cast<PEAK_IPL_BOOL8*>(&isPixelFormatSupported));
220 return isPixelFormatSupported > 0;
227 m_backendHandle, ImageBackendAccessor::BackendHandle(inputImage), &outputImageHandle);
230 return ImageBackendAccessor::CreateImage(outputImageHandle);
PEAK_IPL_C_API PEAK_IPL_Decimation_GetDecimationMax(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationMax)
Returns the maximum decimation value which can be set.
PEAK_IPL_C_API PEAK_IPL_Decimation_GetDecimationX(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationXValue)
Returns the value of decimation in horizontal direction.
Decimation & operator=(const Decimation &other)=delete
PEAK_IPL_C_API PEAK_IPL_Decimation_Destruct(PEAK_IPL_DECIMATION_HANDLE decimationHandle)
Destroys the decimation associated with the given handle.
#define PEAK_IPL_C_ABI_PREFIX
Definition: peak_ipl_dll_defines.h:16
uint8_t DecimationY() const
Returns the value of the decimation in vertical direction.
Definition: peak_ipl_decimation.hpp:173
size_t height
Definition: peak_ipl_simple_types.hpp:166
PixelFormatName
Enum holding the possible pixel format names.
Definition: peak_ipl_simple_types.hpp:38
~Decimation()
Definition: peak_ipl_decimation.hpp:135
PEAK_IPL_C_API PEAK_IPL_Decimation_IsPixelformatSupported(PEAK_IPL_DECIMATION_HANDLE decimationHandle, PEAK_IPL_PIXEL_FORMAT pixelFormat, PEAK_IPL_BOOL8 *isPixelFormatSupported)
Asks the given decimation whether it supports the given pixel format.
Decimation()
Definition: peak_ipl_decimation.hpp:131
The "peak::ipl" namespace contains the whole image processing library.
Definition: peak_ipl_binning.hpp:16
PEAK_IPL_C_API PEAK_IPL_Decimation_SetDecimationY(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationYValue)
Sets the value of decimation in vertical direction.
PEAK_IPL_C_API PEAK_IPL_Decimation_SetDecimationX(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationXValue)
Sets the value of decimation in horizontal direction.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
Definition: peak_ipl_exception.hpp:182
PEAK_IPL_C_API PEAK_IPL_Decimation_GetDecimationMin(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationMin)
Returns the minimum decimation value which can be set.
2D size of an image.
Definition: peak_ipl_simple_types.hpp:163
Stores the pixel format, width and height of an image and the pointer to the image buffer...
Definition: peak_ipl_image.hpp:37
void SetDecimationY(uint8_t value)
Sets the values of the decimation in vertical direction.
Definition: peak_ipl_decimation.hpp:159
struct PEAK_IPL_IMAGE * PEAK_IPL_IMAGE_HANDLE
Definition: peak_ipl_backend.h:307
PEAK_IPL_C_API PEAK_IPL_Decimation_GetDecimationY(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationYValue)
Returns the value of decimation in vertical direction.
uint8_t DecimationMin() const
Returns the minimum value for the decimation.
Definition: peak_ipl_decimation.hpp:182
PEAK_IPL_C_API PEAK_IPL_Decimation_Process(PEAK_IPL_DECIMATION_HANDLE decimationHandle, PEAK_IPL_IMAGE_HANDLE imageHandle, PEAK_IPL_IMAGE_HANDLE *outputImageHandle)
Apply the decimation on the given image.
PEAK_IPL_C_API PEAK_IPL_Decimation_Construct(PEAK_IPL_DECIMATION_HANDLE *decimationHandle)
Creates a decimation.
Definition: peak_ipl_decimation.hpp:23
bool IsPixelFormatSupported(PixelFormatName pixelFormatName) const
Returns whether the decimation supports the given pixel format.
Definition: peak_ipl_decimation.hpp:210
int8_t PEAK_IPL_BOOL8
Definition: peak_ipl_backend.h:25
PEAK_IPL_C_API PEAK_IPL_Decimation_ExpectedOutputSize(PEAK_IPL_DECIMATION_HANDLE decimationHandle, size_t *outputWidth, size_t *outputHeight, size_t inputWidth, size_t inputHeight, PEAK_IPL_PIXEL_FORMAT pixelFormat)
Returns the size of a binned image given the input size and pixelformat.
Size2D ExpectedOutputSize(Size2D inputSize, PixelFormatName pixelFormat) const
Returns the size of a decimated image given the input size and pixelformat.
Definition: peak_ipl_decimation.hpp:200
void SetDecimationX(uint8_t value)
Sets the values of the decimation in horizontal direction.
Definition: peak_ipl_decimation.hpp:154
size_t width
Definition: peak_ipl_simple_types.hpp:165
Image Process(const Image &inputImage) const
Applies the decimation on the given image.
Definition: peak_ipl_decimation.hpp:222
uint8_t DecimationX() const
Returns the value of the decimation in horizontal direction.
Definition: peak_ipl_decimation.hpp:164
uint8_t DecimationMax() const
Returns the maximum value for the decimation.
Definition: peak_ipl_decimation.hpp:191
struct PEAK_IPL_DECIMATION * PEAK_IPL_DECIMATION_HANDLE
Definition: peak_ipl_backend.h:291