MeVisLab Toolbox Reference
|
Skeleton objects represent centerline voxels stored in a VesselEdge object. More...
#include <mlSkeleton.h>
Public Types | |
Color type of member Skeleton::label | |
enum | LABELTYPE { TRACECOLOR , CONTINUOUS } |
Public Types inherited from PropertyContainer | |
typedef PropertyManager::Pointer | ManagerPointer |
typedef PropertyManager::ConstPointer | ConstManagerPointer |
typedef PropertyManager::PropertyMap | PropertyMap |
Public Member Functions | |
Skeleton (const PropertyManager::Pointer &manager, const Vector3 &pos=Vector3(0), double minDistance=0, double maxDistance=0) | |
Constructor. | |
Skeleton (const Skeleton &other) | |
Copy Constructor. | |
Skeleton & | operator= (const Skeleton &other) |
void | copyProperties (const Skeleton *other) |
bool | operator== (const Skeleton &other) const |
bool | operator!= (const Skeleton &other) const |
STATIC_GRAPH_PROPERTY (double, area, Area) | |
STATIC_GRAPH_PROPERTY (double, distanceLabel, DistanceLabel) | |
STATIC_GRAPH_PROPERTY (double, freeLabel, FreeLabel) | |
STATIC_GRAPH_PROPERTY (double, label, Label) | |
void | addStateToTree (TreeNode *parent) const override |
Attaches the object state as children of the given parent node. | |
ML_SET_ADDSTATE_VERSION (5) | |
Set current addStateToTree() version number: | |
void | readStateFromTree (TreeNode *parent) override |
Reads the object state from the children of the given parent node. | |
Skeleton Position | |
ImageVector | voxelPos () |
Make it easer to access world-position as class ImageVector (int) position, if positions are in fact in voxel-coordinates. | |
void | transform (const Matrix4 &m) |
Apply a 4x4 homogeneous transformation matrix to the skeleton position. | |
void | convertToVoxel (Matrix4 *mat) |
convert all coordinates of the skeleton, including its vessel voxels | |
void | convertToWorld (Matrix4 *mat) |
Default Measurements | |
STATIC_GRAPH_PROPERTY (double, minDistance, MinDistance) | |
Encapsulate std::vector<Vector3>: container of vessel voxels coordinates. | |
size_t | getVoxelNum () const |
size_t | numVesselPos () const |
void | addVesselPos (const Vector3 &position) |
void | addVesselPos (const ImageVector &v) |
const Vector3 & | vesselPos (size_t index) const |
Vector3 & | vesselPos (size_t index) |
ImageVector | vesselVoxelPos (size_t index) |
void | clearVesselPos () |
Default Labels | |
decide whether label is a trace color or continuous gray value. | |
STATIC_CASTED_GRAPH_PROPERTY (LABELTYPE, MLuint64, labelType, LabelType) | |
STATIC_GRAPH_PROPERTY (MLuint64, enumLabel, EnumLabel) | |
label to enumerate the skeleton within a graph. not enumerated value is 0. not persistent. | |
void | setRGBA (float r, float g, float b, float a) |
void | setRGBA (float *rgba) |
void | getRGBA (float *r, float *g, float *b, float *a) const |
float * | getRGBA (void) |
Public Member Functions inherited from PropertyContainer | |
PropertyContainer (const ManagerPointer &manager) | |
PropertyContainer (const PropertyContainer &other) | |
~PropertyContainer () override | |
bool | operator== (const PropertyContainer &other) const |
Check for equality (managers and values). | |
bool | operator!= (const PropertyContainer &other) const |
Check for inequality (managers and values). | |
void | copyProperties (const PropertyContainer &other) |
Copy all properties from the given container to this object. | |
const PropertyManager * | getPropertyManager () const |
Get read-only access to the associated property manager. | |
PropertyManager * | getPropertyManager () |
Get access to the associated property manager. | |
PropertyMap | getPropertyMap () const |
Get a map of the contained properties, can be useful for comparison. | |
size_t | numberOfProperties () const |
Return the number of properties currently available. | |
const PropertyValue & | property (size_t index) const |
Get the property with index index as PropertyValue. | |
template<typename T > | |
T & | property (size_t index) |
Get the property with index index with type T. Throws boost::bad_get exception if the currently stored property has a different type. | |
template<typename T > | |
const T & | property (size_t index) const |
Get the property with index index with type T, const version. Throws boost::bad_get exception if the currently stored property has a different type. | |
const PropertyValue & | property (const std::string &name) const |
Get the property with name name . | |
template<typename T > | |
T & | property (const std::string &name) |
template<typename T > | |
const T & | property (const std::string &name) const |
virtual void | reset () |
Set all properties to default values. | |
ML_ABSTRACT_CLASS_HEADER (PropertyContainer) | |
void | addStateToTree (TreeNode *parent) const override |
ML_SET_ADDSTATE_VERSION (1) | |
Set current addStateToTree() version number: | |
void | readStateFromTree (TreeNode *parent) override |
Reads the object state from the children of the given parent node. | |
Static Public Member Functions | |
static void | setCopyVesselVoxels (bool flag) |
Set global parameter for skeleton copy. | |
static void | setCopyVesselVoxelsDefault (void) |
Friends | |
class | Graph |
class | VesselEdge |
Additional Inherited Members | |
Protected Attributes inherited from PropertyContainer | |
std::vector< PropertyValue > | _values |
ManagerPointer | _manager |
Skeleton objects represent centerline voxels stored in a VesselEdge object.
class Skeleton
Definition at line 34 of file mlSkeleton.h.
Enumerator | |
---|---|
TRACECOLOR | |
CONTINUOUS |
Definition at line 96 of file mlSkeleton.h.
Skeleton::Skeleton | ( | const PropertyManager::Pointer & | manager, |
const Vector3 & | pos = Vector3(0), | ||
double | minDistance = 0, | ||
double | maxDistance = 0 ) |
Constructor.
|
override |
Attaches the object state as children of the given parent node.
Definition at line 80 of file mlSkeleton.h.
Definition at line 79 of file mlSkeleton.h.
|
inline |
Definition at line 84 of file mlSkeleton.h.
void Skeleton::convertToVoxel | ( | Matrix4 * | mat | ) |
convert all coordinates of the skeleton, including its vessel voxels
void Skeleton::convertToWorld | ( | Matrix4 * | mat | ) |
Definition at line 122 of file mlSkeleton.h.
Definition at line 129 of file mlSkeleton.h.
|
inline |
Definition at line 77 of file mlSkeleton.h.
Skeleton::ML_SET_ADDSTATE_VERSION | ( | 5 | ) |
Set current addStateToTree() version number:
|
inline |
Definition at line 78 of file mlSkeleton.h.
Definition at line 51 of file mlSkeleton.h.
References mlrange_cast().
|
override |
Reads the object state from the children of the given parent node.
Set global parameter for skeleton copy.
Definition at line 142 of file mlSkeleton.h.
References mlrange_cast().
Definition at line 143 of file mlSkeleton.h.
Definition at line 118 of file mlSkeleton.h.
References mlrange_cast().
Definition at line 111 of file mlSkeleton.h.
Skeleton::STATIC_GRAPH_PROPERTY | ( | double | , |
distanceLabel | , | ||
DistanceLabel | ) |
Skeleton::STATIC_GRAPH_PROPERTY | ( | double | , |
minDistance | , | ||
MinDistance | ) |
label to enumerate the skeleton within a graph. not enumerated value is 0. not persistent.
Apply a 4x4 homogeneous transformation matrix to the skeleton position.
|
inline |
Definition at line 82 of file mlSkeleton.h.
Definition at line 81 of file mlSkeleton.h.
ImageVector Skeleton::vesselVoxelPos | ( | size_t | index | ) |
ImageVector Skeleton::voxelPos | ( | ) |
Make it easer to access world-position as class ImageVector (int) position, if positions are in fact in voxel-coordinates.
Definition at line 36 of file mlSkeleton.h.
|
friend |
Definition at line 37 of file mlSkeleton.h.