25 I_ASSIGN(m_erosionEnableAttrPtr,
"ErosionEnable",
"If this attribute is true then erosion filter is available",
false,
true);
26 I_ASSIGN(m_dilatationEnableAttrPtr,
"DilatationEnable",
"If this attribute is true then dilatation filter is available",
false,
true);
27 I_ASSIGN(m_openingEnableAttrPtr,
"OpeningEnable",
"If this attribute is true then opening filter is available",
false,
true);
28 I_ASSIGN(m_closingEnableAttrPtr,
"ClosingEnable",
"If this attribute is true then closing filter is available",
false,
true);
29 I_ASSIGN(m_whiteTopEnableAttrPtr,
"WhiteTopEnable",
"If this attribute is true then white-top filter is available",
false,
true);
30 I_ASSIGN(m_blackTopEnableAttrPtr,
"BlackTopEnable",
"If this attribute is true then black-top filter is available",
false,
true);
31 I_ASSIGN(m_morthoGradientEnableAttrPtr,
"MorthoGradientEnable",
"If this attribute is true then morthological-gradient filter is available",
false,
true);
32 I_ASSIGN(m_rectangleFormEnableAttrPtr,
"RectangleFormEnable",
"If this attribute is true then rectangle filter form is available",
false,
true);
33 I_ASSIGN(m_circleFormEnableAttrPtr,
"CircleFormEnable",
"If this attribute is true then circle filter form is available",
false,
true);
36 I_ATTR(
bool, m_erosionEnableAttrPtr);
37 I_ATTR(
bool, m_dilatationEnableAttrPtr);
38 I_ATTR(
bool, m_openingEnableAttrPtr);
39 I_ATTR(
bool, m_closingEnableAttrPtr);
40 I_ATTR(
bool, m_whiteTopEnableAttrPtr);
41 I_ATTR(
bool, m_blackTopEnableAttrPtr);
42 I_ATTR(
bool, m_morthoGradientEnableAttrPtr);
43 I_ATTR(
bool, m_rectangleFormEnableAttrPtr);
44 I_ATTR(
bool, m_circleFormEnableAttrPtr);
77 I_REGISTER_SUBELEMENT(ProcessingModes);
78 I_REGISTER_SUBELEMENT_INTERFACE(ProcessingModes,
istd::IChangeable, ExtractProcessingModes);
79 I_REGISTER_SUBELEMENT_INTERFACE(ProcessingModes,
iprm::IOptionsList, ExtractProcessingModes);
80 I_REGISTER_SUBELEMENT(FilterForms);
81 I_REGISTER_SUBELEMENT_INTERFACE(FilterForms,
istd::IChangeable, ExtractFilterForms);
83 I_ASSIGN(m_filterSizeParamsIdAttrPtr,
"FilterSizeParamsId",
"ID of the filter dimension parameter in the processing parameter set",
true,
"FilterSizeParamsId");
84 I_ASSIGN(m_defaultProcessingModeAttrPtr,
"ProcessingMode",
"Filter processing mode\n0 - Erosion\n1 - Dilatation\n2 - Opening\n3 - Closing\n4 - White Top Hat\n5 - Black Top Hat\n6 - Morphological Gradient",
true,
PM_FIRST);
85 I_ASSIGN(m_processingModeIdAttrPtr,
"ProcessingModeId",
"ID of the the procesing mode parameter in the processing parameter set",
false,
"ProcessingMode");
86 I_ASSIGN(m_defaultFilterFormTypeAttrPtr,
"FilterFormType",
"Type of filter form:\n0 - Rectangular([n, m])\n1 - Circular([n, n])",
true, 0);
87 I_ASSIGN(m_filterFormTypeIdAttrPtr,
"FilterFormTypeParamId",
"ID of the filter form type parameter in the processing parameter set",
false,
"FilterFormType");
105 template <
class InterfaceType>
108 return &component.m_processingModes;
111 template <
class InterfaceType>
114 return &component.m_filterForms;
118 I_ATTR(QByteArray, m_filterSizeParamsIdAttrPtr);
119 I_ATTR(
int, m_defaultProcessingModeAttrPtr);
120 I_ATTR(QByteArray, m_processingModeIdAttrPtr);
122 I_ATTR(
int, m_defaultFilterFormTypeAttrPtr);
123 I_ATTR(QByteArray, m_filterFormTypeIdAttrPtr);
128 QMap<int, ProcessingMode> m_processingModeIndexMap;
129 QMap<int, KernelType> m_filterFormIndexMap;
virtual bool ProcessImageRegion(const iimg::IBitmap &inputBitmap, const iprm::IParamsSet *paramsPtr, const i2d::IObject2d *aoiPtr, istd::IChangeable *outputPtr) const override
Process the defined image region.