IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Protected Types | Protected Member Functions | List of all members
ipsdk::shape::segmentation::ThicknessSeparator Class Reference

Class used to separate shapes. More...

#include <ThicknessSeparator.h>

Public Member Functions

void separate (ipsdk::geom::Shape2d &shape, const ipReal64 thicknessThreshold)
 process separation of shape
 
Constructors and destructor
 ThicknessSeparator ()
 
 ~ThicknessSeparator ()
 

Protected Types

typedef std::pair< ipsdk::geom::Shape2dPoint, ipsdk::geom::Shape2dPointShape2dSegment
 pair of polygon points
 
typedef std::multimap< ipReal64, Shape2dSegmentThicknessInfoMap
 

Protected Member Functions

BoolResult separate (const ipsdk::geom::Shape2dPolygonWithHolesPtr &pPolygonWithHoles, ipsdk::geom::Shape2dPolygonWithHolesColl &polygonDecompositionColl, const ipReal64 thicknessThreshold)
 process separation for a given polygon More...
 
void computeThicknessInfo (const ipsdk::geom::Skeleton2d &skeleton, const ipReal64 thicknessThreshold, ThicknessInfoMap &thicknessInfoMap)
 compute thickness informations for a given skeleton More...
 

Detailed Description

Class used to separate shapes.

Author
E.Noirfalise
Date
2016/08/17

Member Typedef Documentation

◆ ThicknessInfoMap

collection associating a thickness to a pair of polygon points

Member Function Documentation

◆ separate()

BoolResult ipsdk::shape::segmentation::ThicknessSeparator::separate ( const ipsdk::geom::Shape2dPolygonWithHolesPtr pPolygonWithHoles,
ipsdk::geom::Shape2dPolygonWithHolesColl polygonDecompositionColl,
const ipReal64  thicknessThreshold 
)
protected

process separation for a given polygon

Note
input polygon is modified
on output collection contains decomposition of input polygon
Returns
false in case of failure

◆ computeThicknessInfo()

void ipsdk::shape::segmentation::ThicknessSeparator::computeThicknessInfo ( const ipsdk::geom::Skeleton2d skeleton,
const ipReal64  thicknessThreshold,
ThicknessInfoMap thicknessInfoMap 
)
protected

compute thickness informations for a given skeleton

Note
note that thicknessInfoMap is not cleared before processing

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