Public Types | Public Member Functions | Protected Member Functions | List of all members
iipr::CImageProcessorCompBase Class Referenceabstract

Basic implementation for a simple bitmap processor. More...

#include <CImageProcessorCompBase.h>

Inheritance diagram for iipr::CImageProcessorCompBase:
iproc::TSyncProcessorCompBase< Base, Interface > ilog::TLoggerCompWrap< Base > iproc::TSyncProcessorWrap< Base > ilog::CLoggerBase ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic iipr::CConvolutionProcessorComp iipr::CImageCopyProcessorComp iipr::CImageIntegralProcessorComp iipr::CImageNormalizeProcessorComp iipr::CRectImageSmoothProcessorComp iipr::CRgbToGrayProcessorComp iipr::TUnaryTransformProcessorComp< PixelType, Predicate >

Public Types

enum  AoiMode { AM_INPUT_PIXELS, AM_OUTPUT_PIXELS }
 Describes modes of AOI interpretation. More...
 
enum  BackgroundFillMode { BFM_NONE, BFM_RESET, BFM_UNCHANGED, BFM_INPUT }
 Describes modes for out-of-AOI background fill. More...
 
typedef
iproc::CSyncProcessorCompBase 
BaseClass
 
- Public Types inherited from iproc::TSyncProcessorCompBase< Base, Interface >
typedef ilog::CLoggerComponentBase BaseClass
 
typedef
iproc::TSyncProcessorWrap
< Base > 
BaseClass2
 
typedef Interface InterfaceType
 
- Public Types inherited from iproc::TSyncProcessorWrap< Base >
typedef Base BaseClass
 

Public Member Functions

virtual int DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 
- Public Member Functions inherited from ilog::ILoggable
virtual void SetLogPtr (IMessageConsumer *logPtr)=0
 
virtual IMessageConsumerGetLogPtr () const =0
 
virtual void SetTracingEnabled (bool trace)=0
 
virtual bool IsTracingEnabled () const =0
 
- Public Member Functions inherited from iproc::TSyncProcessorWrap< Base >
 TSyncProcessorWrap ()
 
virtual int GetProcessorState (const iprm::IParamsSet *paramsPtr) const
 
virtual bool AreParamsAccepted (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const
 
virtual int BeginTask (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 
virtual int WaitTaskFinished (int taskId=-1, double timeoutTime=-1, bool killOnTimeout=true)
 
virtual void CancelTask (int taskId=-1)
 
virtual int GetReadyTask ()
 
virtual int GetTaskState (int taskId=-1) const
 
virtual void InitProcessor (const iprm::IParamsSet *paramsPtr)
 

Protected Member Functions

BackgroundFillMode GetBackgroundMode (const iprm::IParamsSet *paramsPtr) const
 
iimg::IBitmap::PixelFormat GetOutputPixelFormat (const iprm::IParamsSet *paramsPtr) const
 
AoiMode GetAoiMode (const iprm::IParamsSet *paramsPtr) const
 
virtual bool ProcessImage (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const =0
 
- Protected Member Functions inherited from ilog::CLoggerBase
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 

Detailed Description

Basic implementation for a simple bitmap processor.

Definition at line 21 of file CImageProcessorCompBase.h.

Member Typedef Documentation

Definition at line 24 of file CImageProcessorCompBase.h.

Member Enumeration Documentation

Describes modes of AOI interpretation.

It is placed here to allow the same value interpretation for all image processors.

Enumerator
AM_INPUT_PIXELS 

AOI mask contains the input bitmap pixels.

AM_OUTPUT_PIXELS 

AOI mask contains the output bitmap pixels.

Definition at line 30 of file CImageProcessorCompBase.h.

Describes modes for out-of-AOI background fill.

It is placed here to allow the same value interpretation for all image processors.

Enumerator
BFM_NONE 

The state of background pixels will be unknown.

BFM_RESET 

The background pixels will be reset (typically set to 0).

BFM_UNCHANGED 

The state of background pixels should be unchanged to original bitmap.

BFM_INPUT 

The state of background pixels should be set to input bitmap values.

Definition at line 46 of file CImageProcessorCompBase.h.

Member Function Documentation

virtual int iipr::CImageProcessorCompBase::DoProcessing ( const iprm::IParamsSet paramsPtr,
const istd::IPolymorphic inputPtr,
istd::IChangeable outputPtr,
ibase::IProgressManager progressManagerPtr = NULL 
)
virtual
AoiMode iipr::CImageProcessorCompBase::GetAoiMode ( const iprm::IParamsSet paramsPtr) const
protected
BackgroundFillMode iipr::CImageProcessorCompBase::GetBackgroundMode ( const iprm::IParamsSet paramsPtr) const
protected
iimg::IBitmap::PixelFormat iipr::CImageProcessorCompBase::GetOutputPixelFormat ( const iprm::IParamsSet paramsPtr) const
protected
virtual bool iipr::CImageProcessorCompBase::ProcessImage ( const iprm::IParamsSet paramsPtr,
const iimg::IBitmap inputImage,
iimg::IBitmap outputImage 
) const
protectedpure virtual

The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy