Public Types | Static Public Member Functions | Protected Member Functions | List of all members
iipr::CRectImageSmoothProcessorComp Class Reference

Implementation of image smooth operator with homogeneous rectangle kernel. More...

#include <CRectImageSmoothProcessorComp.h>

Inheritance diagram for iipr::CRectImageSmoothProcessorComp:
iipr::CImageProcessorCompBase iproc::TSyncProcessorCompBase< Base, Interface > ilog::TLoggerCompWrap< Base > iproc::TSyncProcessorWrap< Base > ilog::CLoggerBase ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic

Public Types

enum  UnitMode { UM_PIXEL, UM_PERCENT, UM_PERCENT_DIAG }
 
enum  BorderMode { BM_STRETCH_KERNEL, BM_REDUCE_OUTPUT }
 
typedef CImageProcessorCompBase BaseClass
 
- Public Types inherited from iipr::CImageProcessorCompBase
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
 

Static Public Member Functions

static bool DoRectFilter (int filterWidth, int filterHeight, iimg::IBitmap::PixelFormat outputPixelFormat, const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, BorderMode borderMode=BM_STRETCH_KERNEL)
 
static bool DoRectFilterHorizontal (int filterWidth, iimg::IBitmap::PixelFormat outputPixelFormat, const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, BorderMode borderMode=BM_STRETCH_KERNEL)
 
static bool DoRectFilterVertical (int filterHeight, iimg::IBitmap::PixelFormat outputPixelFormat, const iimg::IBitmap &inputBitmap, iimg::IBitmap &outputBitmap, BorderMode borderMode=BM_STRETCH_KERNEL)
 

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from iipr::CImageProcessorCompBase
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)
 

Detailed Description

Implementation of image smooth operator with homogeneous rectangle kernel.

This implementation uses moving average alghorithm.

Todo:
Implement using of AOI parameters from base class.

Definition at line 20 of file CRectImageSmoothProcessorComp.h.

Member Typedef Documentation

Definition at line 23 of file CRectImageSmoothProcessorComp.h.

Member Enumeration Documentation

Enumerator
BM_STRETCH_KERNEL 
BM_REDUCE_OUTPUT 

Definition at line 32 of file CRectImageSmoothProcessorComp.h.

Enumerator
UM_PIXEL 
UM_PERCENT 
UM_PERCENT_DIAG 

Definition at line 25 of file CRectImageSmoothProcessorComp.h.

Member Function Documentation

static bool iipr::CRectImageSmoothProcessorComp::DoRectFilter ( int  filterWidth,
int  filterHeight,
iimg::IBitmap::PixelFormat  outputPixelFormat,
const iimg::IBitmap inputBitmap,
iimg::IBitmap outputBitmap,
BorderMode  borderMode = BM_STRETCH_KERNEL 
)
static
static bool iipr::CRectImageSmoothProcessorComp::DoRectFilterHorizontal ( int  filterWidth,
iimg::IBitmap::PixelFormat  outputPixelFormat,
const iimg::IBitmap inputBitmap,
iimg::IBitmap outputBitmap,
BorderMode  borderMode = BM_STRETCH_KERNEL 
)
static
static bool iipr::CRectImageSmoothProcessorComp::DoRectFilterVertical ( int  filterHeight,
iimg::IBitmap::PixelFormat  outputPixelFormat,
const iimg::IBitmap inputBitmap,
iimg::IBitmap outputBitmap,
BorderMode  borderMode = BM_STRETCH_KERNEL 
)
static
virtual void iipr::CRectImageSmoothProcessorComp::OnComponentCreated ( )
protectedvirtual
virtual bool iipr::CRectImageSmoothProcessorComp::ProcessImage ( const iprm::IParamsSet paramsPtr,
const iimg::IBitmap inputImage,
iimg::IBitmap outputImage 
) const
protectedvirtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy