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

Public Member Functions

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

Protected Member Functions

 SegmentedStructureWithReference (ReferenceShape *reference)
 
void computeTopAndBottomPoints (const SharedImage *segmentation, unsigned char label)
 
void computeTopAndBottomPoints (const std::vector< vec3 > &contour)
 

Protected Attributes

std::vector< vec3 > m_topPoints
 
std::vector< vec3 > m_bottomPoints
 
ReferenceShapem_referenceShape
 
- 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.

◆ 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