6#ifndef iipr_CImageProcessorCompBase_included
7#define iipr_CImageProcessorCompBase_included
69 I_ASSIGN(m_defaultAoiCompPtr,
"DefaultAoi",
"Area of interest used if not specified in parameters",
false,
"DefaultAoi");
70 I_ASSIGN(m_aoiParamIdAttrPtr,
"AoiParamId",
"ID of area of interest in parameter set",
false,
"AoiParams");
71 I_ASSIGN(m_aoiModeAttrPtr,
"AoiMode",
"Mode of interpretation of AOI:\n\t0 - AOI contains input pixels,\n\t1 - AOI contains output pixels",
true, 0);
72 I_ASSIGN(m_backgroundModeAttrPtr,
"BackgroundMode",
"Mode of background filling:\n\t0 - ignored,\n\t1 - set to 0,\n\t3 - set to input bitmap",
true, 1);
73 I_ASSIGN(m_outputPixelTypeAttrPtr,
"OutputPixelType",
"Type of output pixel if not defined over parameters:\n\t0 - As input\n\t1 - Mono\n\t2 - Grayscale\n\t3 - RGB\n\t4 - RGBA\n\t5 - RGB24\n\t6 - Grayscale 16\n\t7 - Grayscale 32\n\t8 - Float 32\n\t9 - Float 64",
true, 0);
74 I_ASSIGN(m_outputPixelTypeIdAttrPtr,
"OutputPixelTypeId",
"ID of output pixel type in parameter set (type iprm::ISelectionParam)",
false,
"OutputPixelType");
75 I_ASSIGN(m_defaultOutputPixelTypeParamCompPtr,
"DefaultOutputPixelType",
"Default output pixel type if not defined in parameter set",
false,
"DefaultOutputPixelType");
81 const istd::IPolymorphic* inputPtr,
83 bool allowAsync =
false,
98 I_ATTR(QByteArray, m_aoiParamIdAttrPtr);
101 I_ATTR(
int, m_aoiModeAttrPtr);
102 I_ATTR(
int, m_backgroundModeAttrPtr);
103 I_ATTR(
int, m_outputPixelTypeAttrPtr);
104 I_ATTR(QByteArray, m_outputPixelTypeIdAttrPtr);
Common interface for describing the 2D-objects.
Definition of single plane bitmap.
PixelFormat
Bitmap pixel format description.
Basic implementation for a simple bitmap processor.
AoiMode
Describes modes of AOI interpretation.
@ AM_INPUT_PIXELS
AOI mask contains the input bitmap pixels.
@ AM_OUTPUT_PIXELS
AOI mask contains the output bitmap pixels.
AoiMode GetAoiMode(const iprm::IParamsSet *paramsPtr) const
BackgroundFillMode GetBackgroundMode(const iprm::IParamsSet *paramsPtr) const
BackgroundFillMode
Describes modes for out-of-AOI background fill.
@ BFM_RESET
The background pixels will be reset (typically set to 0).
@ BFM_INPUT
The state of background pixels should be set to input bitmap values.
@ BFM_UNCHANGED
The state of background pixels should be unchanged to original bitmap.
@ BFM_NONE
The state of background pixels will be unknown.
virtual iproc::CTaskState DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const =0
iimg::IBitmap::PixelFormat GetOutputPixelFormat(const iprm::IParamsSet *paramsPtr) const
iproc::CSyncProcessorCompBase BaseClass
Set of general parameters.
Interface allowing to select single option from list of options.
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.