162 inline void SetFactor(std::uint32_t factor);
216 *
this = std::move(other);
221 if (other.m_backendHandle)
226 m_backendHandle = other.m_backendHandle;
238 if (other.m_backendHandle)
245 m_backendHandle = other.m_backendHandle;
254 if (m_backendHandle !=
nullptr)
259 m_backendHandle = other.m_backendHandle;
260 other.m_backendHandle =
nullptr;
270 m_backendHandle, ImageBackendAccessor::BackendHandle(image));
280 m_backendHandle, ImageBackendAccessor::BackendHandle(image), &handle);
283 return ImageBackendAccessor::CreateImage(handle);
295 return isPixelFormatSupported != 0;
302 m_backendHandle, factor);
312 m_backendHandle, &factor);
324 m_backendHandle, &factor);
336 m_backendHandle, &range);
339 return { range.min, range.max, range.inc };
~EdgeEnhancement()
Destructor for the EdgeEnhancement instance.
Definition peak_ipl_edge_enhancement.hpp:206
void ProcessInPlace(Image &image) const
Process an image.
Definition peak_ipl_edge_enhancement.hpp:266
EdgeEnhancement()
Constructor for a new EdgeEnhancement instance.
Definition peak_ipl_edge_enhancement.hpp:201
std::uint32_t Factor() const
Get the edge enhancement factor.
Definition peak_ipl_edge_enhancement.hpp:306
std::uint32_t DefaultFactor() const
Get the default edge enhancement factor.
Definition peak_ipl_edge_enhancement.hpp:318
Image Process(const Image &image) const
Process an image.
Definition peak_ipl_edge_enhancement.hpp:274
peak::ipl::Range< std::uint32_t > Range() const
Get the range for the edge enhancement factor.
Definition peak_ipl_edge_enhancement.hpp:330
bool IsPixelFormatSupported(PixelFormatName pixelFormatName) const
Check if the pixel format is supported.
Definition peak_ipl_edge_enhancement.hpp:286
void SetFactor(std::uint32_t factor)
Set the edge enhancement factor.
Definition peak_ipl_edge_enhancement.hpp:298
EdgeEnhancement & operator=(const EdgeEnhancement &other)
Copy assigment for EdgeEnhancement instance.
Definition peak_ipl_edge_enhancement.hpp:229
Stores the pixel format, width and height of an image and the pointer to the image buffer.
Definition peak_ipl_image.hpp:41
Range support and convenience class.
Definition peak_ipl_range.hpp:31
Definition peak_ipl_binning.hpp:25
PixelFormatName
Enum holding the possible pixel format names.
Definition peak_ipl_simple_types.hpp:39
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
Definition peak_ipl_exception.hpp:182
The "peak::ipl" namespace contains the whole image processing library.
Definition peak_ipl_binning.hpp:23
#define PEAK_IPL_NO_DISCARD
Definition peak_ipl_attribute_defines.h:25
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_GetDefaultFactor(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, uint32_t *factor)
Get the default factor for edge enhancement.
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_ProcessInPlace(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, PEAK_IPL_IMAGE_HANDLE imageHandle)
Process the given image with edge enhancement.
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_Acquire(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle)
Increase the reference count of an edge enhancement object.
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_GetFactor(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, uint32_t *factor)
Get the factor for edge enhancement.
struct PEAK_IPL_IMAGE * PEAK_IPL_IMAGE_HANDLE
Definition peak_ipl_backend.h:405
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_GetFactorRange(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, struct PEAK_IPL_RANGE *range)
Get the range of valid factors for edge enhancement.
int8_t PEAK_IPL_BOOL8
Definition peak_ipl_backend.h:26
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_IsPixelFormatSupported(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, PEAK_IPL_PIXEL_FORMAT pixelFormat, PEAK_IPL_BOOL8 *isPixelFormatSupported)
Asks the given edge enhancement whether it supports the given pixel format.
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_SetFactor(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, uint32_t factor)
Set the factor for edge enhancement.
int32_t PEAK_IPL_PIXEL_FORMAT
Definition peak_ipl_backend.h:173
struct PEAK_IPL_EDGE_ENHANCEMENT * PEAK_IPL_EDGE_ENHANCEMENT_HANDLE
Definition peak_ipl_backend.h:425
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_Construct(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE *handle)
Create the edge enhancement associated with the given handle.
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_Process(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle, PEAK_IPL_IMAGE_HANDLE imageHandle, PEAK_IPL_IMAGE_HANDLE *outputImageHandle)
Process the given image with edge enhancement.
PEAK_IPL_C_API PEAK_IPL_EdgeEnhancement_Destruct(PEAK_IPL_EDGE_ENHANCEMENT_HANDLE handle)
Destruct the edge enhancement associated with the given handle.
#define PEAK_IPL_C_ABI_PREFIX
Definition peak_ipl_dll_defines.h:16
Definition peak_ipl_backend.h:314