IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ipsdk::imaproc::shape::analysis::GreyInertiaMsr Class Reference

Measurement object for measure GreyInertia. More...

#include <GreyInertiaMsr.h>

Inheritance diagram for ipsdk::imaproc::shape::analysis::GreyInertiaMsr:

Public Types

typedef GreyInertiaMsrInfo::MsrParamsConstStorageType MsrParamsConstStorageType
 Shared pointer to const parameter type associated to measure.
 
typedef GreyInertiaMsrInfo::MsrResultType MsrResultType
 Result type associated to measure.
 
typedef MsrResultType::ValueType MsrResultValueType
 Result value type associated to measure.
 

Public Member Functions

 ~GreyInertiaMsr ()
 destructor
 

Protected Member Functions

 GreyInertiaMsr ()
 constructor
 
template<typename T >
ipsdk::BoolResult processMeasure (const ipsdk::ipUInt64 cPlanIdx, const ipsdk::ipUInt64 shapeIdx, const ipsdk::ipUInt64 startX, const ipsdk::ipUInt64 endX, const ipsdk::image::eImageBufferType &imageBufferType, const ipsdk::ipUInt64 rowIdx, const ipsdk::ipUInt64 zPlanIdx, const T *pBuf, MsrResultValueType &result)
 process measure associated to a given shape More...
 
void endProcessingDerived ()
 end measure processing in derived class
 

Protected Attributes

MsrParamsConstStorageType _pMsrParams
 Derived parameter associated to measure.
 

Detailed Description

Measurement object for measure GreyInertia.

Author
R. Abbal
Date
2015/07/30

Measure allowing to compute the second order moment ponderated by the gray level of each pixel for shape

Member Function Documentation

◆ processMeasure()

template<typename T >
ipsdk::BoolResult ipsdk::imaproc::shape::analysis::GreyInertiaMsr::processMeasure ( const ipsdk::ipUInt64  cPlanIdx,
const ipsdk::ipUInt64  shapeIdx,
const ipsdk::ipUInt64  startX,
const ipsdk::ipUInt64  endX,
const ipsdk::image::eImageBufferType imageBufferType,
const ipsdk::ipUInt64  rowIdx,
const ipsdk::ipUInt64  zPlanIdx,
const T *  pBuf,
MsrResultValueType result 
)
protected

process measure associated to a given shape

Parameters
cPlanIdxcurrent color plan index (0 in case of a grey level image)
shapeIdxindex of current processed shape
startXx start offset for row segment currently processed
endXx end offset for row segment currently processed
imageBufferTypeimage buffer type for processed image
rowIdxcurrent row index
zPlanIdxcurrent z plan index
pBufcurrent row image buffer
resultmeasurement result for current shape
Returns
false in case of failure

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