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

Helper class allowing to find perspective calibration using list of nominal and found positions. More...

#include <CImageIntegralProcessorComp.h>

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

Static Public Member Functions

static bool CalculateIntegralImage (const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage, const iimg::CScanlineMask *maskPtr=NULL, iimg::IBitmap::PixelFormat outputPixelFormat=iimg::IBitmap::PF_UNKNOWN, bool fillOutOfMask=true)
 Calculates integral image. More...
static bool MakeIntegralImage (iimg::IBitmap &outputImage)
 Calculates integral image in place. More...
static bool CalculateIntegralReference (const iimg::CScanlineMask &mask, iimg::IBitmap &outputImage)
 Calculates integral reference image. More...

Protected Member Functions

virtual bool ProcessImage (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const
- 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 Types inherited from iipr::CImageProcessorCompBase
 Describes modes of AOI interpretation. More...
 Describes modes for out-of-AOI background fill. More...
- Public Types inherited from iproc::TSyncProcessorCompBase< Base, Interface >
typedef ilog::CLoggerComponentBase BaseClass
< Base > 
typedef Interface InterfaceType
- Public Types inherited from iproc::TSyncProcessorWrap< Base >
typedef Base BaseClass
- 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

Helper class allowing to find perspective calibration using list of nominal and found positions.

Definition at line 20 of file CImageIntegralProcessorComp.h.

Member Function Documentation

static bool iipr::CImageIntegralProcessorComp::CalculateIntegralImage ( const iimg::IBitmap inputImage,
iimg::IBitmap outputImage,
const iimg::CScanlineMask maskPtr = NULL,
iimg::IBitmap::PixelFormat  outputPixelFormat = iimg::IBitmap::PF_UNKNOWN,
bool  fillOutOfMask = true 

Calculates integral image.

inputImageinput image.
outputImageresult image, will be initializated.
maskPtroptional mask. Points out of mask will be not touched inside of input image.
outputPixelFormatrequested format of output image or iimg::IBitmap::PF_UNKNOWN if it should be automatically calculated.
fillOutOfMaskif true, the values out of mask will be calculated for output, if false they will be ignored (better performance).
static bool iipr::CImageIntegralProcessorComp::CalculateIntegralReference ( const iimg::CScanlineMask mask,
iimg::IBitmap outputImage 

Calculates integral reference image.

This image will be generated for some binary mask and contains integral image of image function with all pixels equals to 1. It can be usefull to calculate area of mask subregions.

maskInput mask image.
outputImageresult image, will not be initializated, pixel format and size must be set by caller.
static bool iipr::CImageIntegralProcessorComp::MakeIntegralImage ( iimg::IBitmap outputImage)

Calculates integral image in place.

imageimage will be converted to its integral.
virtual bool iipr::CImageIntegralProcessorComp::ProcessImage ( const iprm::IParamsSet paramsPtr,
const iimg::IBitmap inputImage,
iimg::IBitmap outputImage 
) const

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy