Go to the documentation of this file.
6#ifndef iipr_CImageBinarizeProcessorComp_included
7#define iipr_CImageBinarizeProcessorComp_included
29 I_ASSIGN(m_binarizationParamsIdAttrPtr,
"BinarizationParameterId",
"ID of binarization parameters in the parameter set",
false,
"BinarizationParameterId");
30 I_ASSIGN(m_defaultBinarizationThresholdCompPtr,
"DefaultThreshold",
"Default value of the binarization threshold",
false,
"DefaultThreshold");
31 I_ASSIGN(m_isInverseModeEnabledAttrPtr,
"InverseMode",
"If enabled, object color will be set to 0",
true,
false);
37 const istd::IPolymorphic* inputPtr,
39 bool allowAsync =
false,
49 I_ATTR(QByteArray, m_binarizationParamsIdAttrPtr);
51 I_ATTR(
bool, m_isInverseModeEnabledAttrPtr);
Definition of single plane bitmap.
Processor for image binarization using static threshold.
virtual iproc::CTaskState DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
iproc::CSyncProcessorCompBase BaseClass
bool ConvertImage(const iimg::IBitmap &inputBitmap, const imeas::INumericValue &thresholdParams, iimg::IBitmap &outputBitmap) const
General parameter set containing list of numeric values.
Set of general parameters.
Represent state of asynchronous operation.
Consume information about progress of some process.
Simple definition macro for a synchronous processor.
Common interface for data model objects, which can be changed.
Contains the image processing classes.
© Witold Gantzke and Kirill Lepskiy