ImFusion SDK 4.3
SegmentedBlob Class Reference
+ Inheritance diagram for SegmentedBlob:

Public Member Functions

 SegmentedBlob (const SharedImage *segmentation, unsigned char label=1)
 
 SegmentedBlob (const std::vector< vec3 > &contour)
 
std::pair< vec3, vec3 > markers (int id, double position) const override
 Compute a pair of measuring markers at the specified position.
 
std::vector< vec3 > contour (int id) const override
 
bool isOk () const override
 
- Public Member Functions inherited from SegmentedStructure
virtual std::pair< vec3, vec3 > axis (int id) const
 
int numMarkers () const
 
int numAxes () const
 
int numContours () const
 

Protected Member Functions

void constructFromContour (const std::vector< vec3 > &contour)
 

Protected Attributes

bool m_isOk = false
 
std::vector< vec3 > m_contour
 
vec3 m_positionScale
 
vec3 m_positionBias
 
- Protected Attributes inherited from SegmentedStructure
int m_segmentedStructureNumMarkers = 0
 
int m_segmentedStructureNumAxes = 0
 
int m_segmentedStructureNumContours = 0
 

Member Function Documentation

◆ markers()

std::pair< vec3, vec3 > markers ( int id,
double position ) const
overridevirtual

Compute a pair of measuring markers at the specified position.

Parameters
idinteger in [0, numMarkers()) that identifies a marker
positionvalue in [-1, 1] that gives the position of the marker on the axis of the reference shape
Returns
pair of points that lie on the contour of the segmentation

Reimplemented from SegmentedStructure.

◆ contour()

std::vector< vec3 > contour ( int id) const
overridevirtual

Reimplemented from SegmentedStructure.

◆ isOk()

bool isOk ( ) const
overridevirtual

Implements SegmentedStructure.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close