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::Area2dMsr Class Reference

Measurement object for measure Area2d. More...

#include <Area2dMsr.h>

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

Public Types

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

Public Member Functions

 ~Area2dMsr ()
 destructor
 
ipReal64 getMinArea2d () const
 retrieve minimum area for shape collection More...
 
ipReal64 getMaxArea2d () const
 retrieve maximum area for shape collection More...
 

Protected Member Functions

 Area2dMsr ()
 constructor
 
ipsdk::BoolResult processMeasure (const ipsdk::ipUInt64 shapeIdx, const ipsdk::geom::StdShape2d &shape2d, MsrResultValueType &result)
 process measure associated to a given shape More...
 
void endProcessingDerived ()
 end measure processing in derived class
 
void copyAdditionalResults (const BaseMeasure &subMeasure)
 copy additionnal results from derived class while creating a sub measure
 

Protected Attributes

MsrParamsConstStorageType _pMsrParams
 Derived parameter associated to measure.
 
ipReal64 _minArea2d
 minimum area for shape collection
 
ipReal64 _maxArea2d
 maximum area for shape collection
 

Detailed Description

Measurement object for measure Area2d.

Author
E. Noirfalise
Date
2015/06/30

Shape 2d area measurement (measure NOT based on polygonal approximation)

Member Function Documentation

◆ processMeasure()

ipsdk::BoolResult ipsdk::imaproc::shape::analysis::Area2dMsr::processMeasure ( const ipsdk::ipUInt64  shapeIdx,
const ipsdk::geom::StdShape2d &  shape2d,
MsrResultValueType result 
)
protected

process measure associated to a given shape

Parameters
shapeIdxindex of current processed shape
shape2dShape 2d object to be measured
resultmeasurement result for current shape
Returns
false in case of failure

◆ getMinArea2d()

ipReal64 ipsdk::imaproc::shape::analysis::Area2dMsr::getMinArea2d ( ) const

retrieve minimum area for shape collection

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif getMsrProcessingStatus() != eMsrProcessingStatus::eMPS_Ended

◆ getMaxArea2d()

ipReal64 ipsdk::imaproc::shape::analysis::Area2dMsr::getMaxArea2d ( ) const

retrieve maximum area for shape collection

Exceptions
ipsdk::shape::analysis::IPSDKBaseShapeAnalysisExceptionif getMsrProcessingStatus() != eMsrProcessingStatus::eMPS_Ended

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