ICF 3.1.1.10
Technical documentation of ICF Libraries
iipr::CPreciseBlobProcessorComp Class Reference

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

#include <CPreciseBlobProcessorComp.h>

Inheritance diagram for iipr::CPreciseBlobProcessorComp:
Collaboration diagram for iipr::CPreciseBlobProcessorComp:

Public Types

enum  MessageId { MI_FOUND_BLOB = 0x9354f0 }
 
typedef CBlobProcessorCompBase BaseClass
 
- Public Types inherited from iipr::CBlobProcessorCompBase
typedef iproc::TSyncProcessorCompBase< iipr::IImageToFeatureProcessorBaseClass
 
- Public Types inherited from iproc::TSyncProcessorCompBase< iipr::IImageToFeatureProcessor >
typedef ilog::CLoggerComponentBase BaseClass
 
typedef iproc::TSyncProcessorWrap< iipr::IImageToFeatureProcessorBaseClass2
 
typedef iipr::IImageToFeatureProcessor InterfaceType
 
- Public Types inherited from ilog::TLoggerCompWrap< Base >
enum  MessageId { MI_BAD_DEPENDENCY = 0x8a340 }
 
typedef Base BaseClass
 
typedef ilog::CLoggerBase BaseClass2
 
- 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...
 

Public Member Functions

 CPreciseBlobProcessorComp ()
 
- Public Member Functions inherited from iipr::CBlobProcessorCompBase
virtual iproc::CTaskState DoExtractFeatures (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &image, iipr::IFeaturesConsumer &results, iproc::IProgressManager *progressManagerPtr=nullptr) override
 Specialization of processing interface for extraction of features from image.
 
virtual iproc::CTaskState DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
 Do synchronized processing.
 
- Public Member Functions inherited from ilog::CLoggerBase
 CLoggerBase ()
 
const QByteArray & GetVerboseSenderId () const
 Get sender ID for verbose messages.
 
void SetVerboseSenderId (const QByteArray &id)
 Set sender ID for verbose messages.
 
void SetLogPtr (ilog::IMessageConsumer *logPtr) override
 Install log.
 
ilog::IMessageConsumerGetLogPtr () const override
 Get log.
 
- Public Member Functions inherited from ilog::ILoggable
- Public Member Functions inherited from iproc::TSyncProcessorWrap< iipr::IImageToFeatureProcessor >
 TSyncProcessorWrap ()
 
int GetProcessorState (const iprm::IParamsSet *paramsPtr) const override
 
bool AreParamsAccepted (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const override
 
void InitProcessor (const iprm::IParamsSet *paramsPtr, bool doReset) override
 
- Public Member Functions inherited from iipr::IImageToFeatureProcessor
- Public Member Functions inherited from iproc::IProcessor

Static Public Member Functions

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

Protected Member Functions

virtual bool CalculateBlobs (const iprm::IParamsSet *paramsPtr, const iipr::IBlobFilterParams *filterParamsPtr, const i2d::IObject2d *aoiPtr, const iimg::IBitmap &image, iipr::IFeaturesConsumer &result) override
 
- Protected Member Functions inherited from iipr::CBlobProcessorCompBase
- Protected Member Functions inherited from ilog::TLoggerCompWrap< Base >
void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override
 Decorate message parts before outputting.
 
void OnComponentCreated () override
 
void OnComponentDestroyed () override
 
- Protected Member Functions inherited from ilog::CLoggerBase
bool IsVerboseEnabled () const
 Check if verbose messages are enabled.
 
bool SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const
 Send verbose message.
 
bool SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send info message to log.
 
bool SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send warning message to log.
 
bool SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send error message to log.
 
bool SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send critical message to log.
 
bool SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once info message to log.
 
bool SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once warning message to log.
 
bool SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once error message to log.
 
bool SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once critical message to log.
 
bool SendUserMessage (const istd::IInformationProvider *messagePtr) const
 Send message with user object.
 
bool AllowMessageOnceAgain (int id)
 Reset message lock.
 
bool IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override
 Check if any log message is consumed.
 
bool SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override
 Send any message to log.
 
- Protected Member Functions inherited from istd::ILogger

Additional Inherited Members

- Static Protected Member Functions inherited from iipr::CBlobProcessorCompBase
static bool IsBlobAcceptedByFilter (const iipr::IBlobFilterParams &filterParams, double area, double perimeter, double circularity)
 
- Protected Attributes inherited from ilog::CLoggerBase
QSet< int > m_onceMessageIds
 

Detailed Description

Implementation of image processor using convolution kernel.

Definition at line 26 of file CPreciseBlobProcessorComp.h.

Member Typedef Documentation

◆ BaseClass

Member Enumeration Documentation

◆ MessageId

Enumerator
MI_FOUND_BLOB 

Definition at line 43 of file CPreciseBlobProcessorComp.h.

Constructor & Destructor Documentation

◆ CPreciseBlobProcessorComp()

iipr::CPreciseBlobProcessorComp::CPreciseBlobProcessorComp ( )

Member Function Documentation

◆ CalculateBlobs()

virtual bool iipr::CPreciseBlobProcessorComp::CalculateBlobs ( const iprm::IParamsSet * paramsPtr,
const iipr::IBlobFilterParams * filterParamsPtr,
const i2d::IObject2d * aoiPtr,
const iimg::IBitmap & image,
iipr::IFeaturesConsumer & result )
overrideprotectedvirtual

◆ DoCalculateBlobs()

static bool iipr::CPreciseBlobProcessorComp::DoCalculateBlobs ( const istd::CRange & valueRange,
bool isRangeRelative,
const iipr::IBlobFilterParams * filterParamsPtr,
const iimg::CScanlineMask & imageMask,
const iimg::IBitmap & image,
iipr::IFeaturesConsumer & result,
ilog::IMessageConsumer * resultConsumerPtr = nullptr,
ilog::IMessageConsumer * tempMessageConsumerPtr = nullptr )
static

Calculate complete convolution with all parameters as static function.

Parameters
valueRangerange of accepted 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 nullptr 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:

© Witold Gantzke and Kirill Lepskiy