Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
iblob::CPreciseBlobProcessorComp Class Reference

Implementation of image processor using convolution kernel. More...

#include <CPreciseBlobProcessorComp.h>

Inheritance diagram for iblob::CPreciseBlobProcessorComp:
iblob::CBlobProcessorCompBase iproc::TSyncProcessorCompBase< iipr::IImageToFeatureProcessor > ilog::TLoggerCompWrap< Base > iproc::TSyncProcessorWrap< iipr::IImageToFeatureProcessor > ilog::CLoggerBase iipr::IImageToFeatureProcessor ilog::ILoggable istd::ILogger iproc::IProcessor istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

enum  MessageId { MI_FOUND_BLOB = 0x9354f0 }
 
typedef CBlobProcessorCompBase BaseClass
 
- Public Types inherited from iblob::CBlobProcessorCompBase
typedef
iproc::TSyncProcessorCompBase
< iipr::IImageToFeatureProcessor
BaseClass
 
- Public Types inherited from iproc::TSyncProcessorCompBase< iipr::IImageToFeatureProcessor >
typedef ilog::CLoggerComponentBase BaseClass
 
typedef
iproc::TSyncProcessorWrap
< iipr::IImageToFeatureProcessor
BaseClass2
 
typedef
iipr::IImageToFeatureProcessor 
InterfaceType
 
- Public Types inherited from iproc::TSyncProcessorWrap< iipr::IImageToFeatureProcessor >
typedef
iipr::IImageToFeatureProcessor 
BaseClass
 
- Public Types inherited from iproc::IProcessor
enum  MessageId { MI_BAD_PARAMS = 0x16372620, MI_PROCESSING_ERROR }
 
enum  ProcessorState { PS_UNKNOWN, PS_INITIALIZATION, PS_READY, PS_INVALID }
 State of processing. More...
 
enum  TaskState {
  TS_NONE, TS_WAIT, TS_OK, TS_CANCELED,
  TS_INVALID
}
 Describe state of task. More...
 

Public Member Functions

 CPreciseBlobProcessorComp ()
 
- Public Member Functions inherited from iblob::CBlobProcessorCompBase
virtual int DoExtractFeatures (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &image, iipr::IFeaturesConsumer &results, ibase::IProgressManager *progressManagerPtr=NULL)
 Specialization of processing interface for extraction of features from image. More...
 
virtual int DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 Do synchronized processing. More...
 
- 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< iipr::IImageToFeatureProcessor >
 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)
 

Static Public Member Functions

static bool DoCalculateBlobs (const istd::CRange &valueRange, bool isRangeRelative, const iblob::IBlobFilterParams *filterParamsPtr, const iimg::CScanlineMask &imageMask, const iimg::IBitmap &image, iipr::IFeaturesConsumer &result, ilog::IMessageConsumer *resultConsumerPtr=NULL, ilog::IMessageConsumer *tempMessageConsumerPtr=NULL)
 Calculate complete convolution with all parameters as static function. More...
 

Protected Member Functions

virtual bool CalculateBlobs (const iprm::IParamsSet *paramsPtr, const iblob::IBlobFilterParams *filterParamsPtr, const i2d::IObject2d *aoiPtr, const iimg::IBitmap &image, iipr::IFeaturesConsumer &result)
 
- 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

- Static Protected Member Functions inherited from iblob::CBlobProcessorCompBase
static bool IsBlobAcceptedByFilter (const iblob::IBlobFilterParams &filterParams, double area, double perimeter, double circularity)
 

Detailed Description

Implementation of image processor using convolution kernel.

Definition at line 22 of file CPreciseBlobProcessorComp.h.

Member Typedef Documentation

Definition at line 25 of file CPreciseBlobProcessorComp.h.

Member Enumeration Documentation

Enumerator
MI_FOUND_BLOB 

Definition at line 39 of file CPreciseBlobProcessorComp.h.

Constructor & Destructor Documentation

iblob::CPreciseBlobProcessorComp::CPreciseBlobProcessorComp ( )

Member Function Documentation

virtual bool iblob::CPreciseBlobProcessorComp::CalculateBlobs ( const iprm::IParamsSet paramsPtr,
const iblob::IBlobFilterParams filterParamsPtr,
const i2d::IObject2d aoiPtr,
const iimg::IBitmap image,
iipr::IFeaturesConsumer result 
)
protectedvirtual
static bool iblob::CPreciseBlobProcessorComp::DoCalculateBlobs ( const istd::CRange valueRange,
bool  isRangeRelative,
const iblob::IBlobFilterParams filterParamsPtr,
const iimg::CScanlineMask imageMask,
const iimg::IBitmap image,
iipr::IFeaturesConsumer result,
ilog::IMessageConsumer resultConsumerPtr = NULL,
ilog::IMessageConsumer tempMessageConsumerPtr = NULL 
)
static

Calculate complete convolution with all parameters as static function.

Parameters
valueRangerange of accepüted values, it should be in range [0, 1].
isRangeRelativeindicate if the valueRange is relative (will be adjusted to minimal and maximal values) or absolute. Absolute value is normalized to range [0, 1], where 0 is black, 1 is white.
filterParamsPtroptional filter of considered blobs. If NULL no filter will be used.
imageMaskAOI mask where the image pixels should be used.
imageinput image.
resultconsumer of result blob features.
loggerPtroptional object collecting processing messages.

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy