![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Seg/ReferenceShape.h>
Abstract class defining a reference shape which has been fitted to a segmentation map. More...
Inheritance diagram for ReferenceShape:Abstract class defining a reference shape which has been fitted to a segmentation map.
The class defines local coordinates (which could also be curved) for the segmented object.
Public Member Functions | |
| virtual vec3 | worldToLocal (vec3 p) const =0 |
| virtual vec3 | localToWorld (vec3 p) const =0 |
| void | addMargin (double margin, int axis=0) |
| double | lowerBound (int axis) const |
| double | upperBound (int axis) const |
| std::pair< double, double > | range (int axis) const |
| bool | isOk () const |
| virtual bool | is2D () const |
Protected Member Functions | |
| void | computeBounds (const std::vector< vec2 > &points) |
Protected Attributes | |
| vec3 | m_lowerBounds = {0, 0, 0} |
| vec3 | m_upperBounds = {0, 0, 0} |
| bool | m_isOk = true |