6#ifndef iipr_CRectImageSmoothProcessorComp_included
7#define iipr_CRectImageSmoothProcessorComp_included
44 I_REGISTER_SUBELEMENT(FilterContraints);
46 I_REGISTER_SUBELEMENT_INTERFACE(FilterContraints,
istd::IChangeable, ExtractFilterContraints);
47 I_ASSIGN(m_unitModeAttrPtr,
"UnitMode",
"Define used units for filter kernel definition:\n\t0 - Pixels\n\t1 - Percent of width and height\n\t2 - Percent of diagonal",
true, 0);
48 I_ASSIGN(m_borderModeAttrPtr,
"BorderMode",
"Define used mode for border area:\n\t0 - Kernel will be stretched, original image size will be outputed\n\t1 - Border area removed, output image will be smaller",
true, 0);
49 I_ASSIGN(m_filterParamsIdAttrPtr,
"FilterParamsId",
"ID of filter length parameters in the parameter set (imeas::INumericValue)",
false,
"FilterParams");
50 I_ASSIGN(m_defaultFilterParamsCompPtr,
"DefaultFilterParams",
"Default filter parameters",
false,
"DefaultFilterParams");
85 template <
class InterfaceType>
88 return &component.m_filterConstraints;
91 I_ATTR(
int, m_unitModeAttrPtr);
92 I_ATTR(
int, m_borderModeAttrPtr);
93 I_ATTR(QByteArray, m_filterParamsIdAttrPtr);
Definition of single plane bitmap.
PixelFormat
Bitmap pixel format description.
Basic implementation for a simple bitmap processor.
Implementation of image smooth operator with homogeneous rectangle kernel.
static bool DoRectFilterHorizontal(int filterWidth, iimg::IBitmap::PixelFormat outputPixelFormat, const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, BorderMode borderMode=BM_STRETCH_KERNEL)
void OnComponentCreated() override
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const override
static bool DoRectFilter(int filterWidth, int filterHeight, iimg::IBitmap::PixelFormat outputPixelFormat, const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, BorderMode borderMode=BM_STRETCH_KERNEL)
CImageProcessorCompBase BaseClass
static bool DoRectFilterVertical(int filterHeight, iimg::IBitmap::PixelFormat outputPixelFormat, const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, BorderMode borderMode=BM_STRETCH_KERNEL)
Simple implementation of imeas::INumericConstraints interface.
Describe additional meta information for set of numeric values.
General parameter set containing list of numeric values.
Set of general parameters.
Common interface for data model objects, which can be changed.
Contains the image processing classes.