206 if (other.m_backendHandle)
211 m_backendHandle = other.m_backendHandle;
223 if (other.m_backendHandle)
230 m_backendHandle = other.m_backendHandle;
237 *
this = std::move(other);
244 if (m_backendHandle !=
nullptr)
249 m_backendHandle = other.m_backendHandle;
250 other.m_backendHandle =
nullptr;
268 inline uint8_t Decimation::DecimationX()
const 278 inline uint8_t Decimation::DecimationY()
const 288 inline uint8_t Decimation::DecimationMin()
const 298 inline uint8_t Decimation::DecimationMax()
const 313 inputSize.
width, inputSize.
height, static_cast<PEAK_IPL_PIXEL_FORMAT>(pixelFormat));
319 inline bool Decimation::IsPixelFormatSupported(
PixelFormatName pixelFormatName)
const 325 static_cast<PEAK_IPL_PIXEL_FORMAT>(pixelFormatName),
326 reinterpret_cast<PEAK_IPL_BOOL8*>(&isPixelFormatSupported));
329 return isPixelFormatSupported > 0;
332 inline Image Decimation::Process(
const Image& inputImage)
const 337 m_backendHandle, ImageBackendAccessor::BackendHandle(inputImage), &outputImageHandle);
340 return ImageBackendAccessor::CreateImage(outputImageHandle);
#define PEAK_IPL_NO_DISCARD
Definition: peak_ipl_backend.h:26
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.
PEAK_IPL_C_API PEAK_IPL_Decimation_Destruct(PEAK_IPL_DECIMATION_HANDLE decimationHandle)
Destroys the decimation associated with the given handle.
PEAK_IPL_C_API PEAK_IPL_Decimation_Acquire(PEAK_IPL_DECIMATION_HANDLE decimationHandle)
Increase the reference count of a decimation object.
#define PEAK_IPL_C_ABI_PREFIX
Definition: peak_ipl_dll_defines.h:16
size_t height
Height of size.
Definition: peak_ipl_simple_types.hpp:210
Decimation & operator=(const Decimation &other)
Copy assigment for Decimation instance.
Definition: peak_ipl_decimation.hpp:214
~Decimation()
Destructor for the Decimation instance.
Definition: peak_ipl_decimation.hpp:196
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()
Constructor for a new Decimation instance.
Definition: peak_ipl_decimation.hpp:191
The "peak::ipl" namespace contains the whole image processing library.
Definition: peak_ipl_binning.hpp:22
PixelFormatName
Enum holding the possible pixel format names.
Definition: peak_ipl_simple_types.hpp:38
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:207
Stores the pixel format, width and height of an image and the pointer to the image buffer...
Definition: peak_ipl_image.hpp:39
void SetDecimationY(uint8_t value)
Sets the values of the decimation in vertical direction.
Definition: peak_ipl_decimation.hpp:262
struct PEAK_IPL_IMAGE * PEAK_IPL_IMAGE_HANDLE
Definition: peak_ipl_backend.h:361
PEAK_IPL_C_API PEAK_IPL_Decimation_GetDecimationY(PEAK_IPL_DECIMATION_HANDLE decimationHandle, uint8_t *decimationYValue)
Returns the value of decimation in vertical direction.
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:27
int8_t PEAK_IPL_BOOL8
Definition: peak_ipl_backend.h:41
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.
void SetDecimationX(uint8_t value)
Sets the values of the decimation in horizontal direction.
Definition: peak_ipl_decimation.hpp:256
size_t width
Width of size.
Definition: peak_ipl_simple_types.hpp:209
struct PEAK_IPL_DECIMATION * PEAK_IPL_DECIMATION_HANDLE
Definition: peak_ipl_backend.h:345