Segmentation class to represent a section of the LV myocardium.
More...
#include <mia/2d/SegSection.hh>
Public Types |
typedef std::vector< CSegPoint2D > | Points |
| convenicence typedef for the points defining the section
|
Detailed Description
Segmentation class to represent a section of the LV myocardium.
Structure to save the segmentation of a section of the myocardium. In theory this can be used for any king of segmentation that uses a polynom to approximate a segmented 2D shape.
Definition at line 43 of file SegSection.hh.
Member Typedef Documentation
convenicence typedef for the points defining the section
Definition at line 46 of file SegSection.hh.
Constructor & Destructor Documentation
CSegSection::CSegSection |
( |
| ) |
|
CSegSection::CSegSection |
( |
const std::string & |
id, |
|
|
const Points & |
points, |
|
|
bool |
is_open |
|
) |
| |
Constructor to create a segmentation shape and naming it
- Parameters
-
id | ID of the section (and color identifier) |
points | the points that define a closed polynom representing the shape |
is_open | describes if points should be interpreted as polygon (i.e. the last point connects to the first), or as poly-line only. |
CSegSection::CSegSection |
( |
xmlpp::Node & |
node, |
|
|
int |
version |
|
) |
| |
Constructor to create a segmentation shape based on a XML sub tree
- Parameters
-
node | root of the XML sub tree |
version | segmentation set version the node stems from. |
Member Function Documentation
void CSegSection::append_to |
( |
C2DPolygon & |
polygon | ) |
const |
Append this shape to another shape, a very crude version of a logical or
- Parameters
-
polygon | to add the shape to |
void CSegSection::draw |
( |
C2DUBImage & |
output, |
|
|
unsigned char |
color |
|
) |
| const |
Draw the shape to a 2D image with a given color
- Parameters
-
output | image to draw to |
color | color to use |
void CSegSection::draw_xor |
( |
C2DUBImage & |
output | ) |
const |
Draw the binary shape to a 2D image by xor-ing with what is already in there
- Parameters
-
- Returns
- the orthogonal bounding box enclosing the shape
float CSegSection::get_hausdorff_distance |
( |
const CSegSection & |
other | ) |
const |
Evaluate the Hausdorff distance between this shape and another one
- Parameters
-
- Returns
- the Hausdorff distance
const std::string& CSegSection::get_id |
( |
| ) |
const |
- Returns
- the ID of the section
const Points& CSegSection::get_points |
( |
| ) |
const |
- Returns
- the list of the points defining the section shape
transform the shape by transforming its individual points
- Parameters
-
t | the inverse of the transformation to be applied |
bool CSegSection::is_open |
( |
| ) |
const |
- Returns
- whether the curve is open (true) or closed (false).
void CSegSection::shift |
( |
const C2DFVector & |
delta | ) |
|
translate the segmentation by a given shift
- Parameters
-
transform the shape by transforming its individual points
- Parameters
-
t | the transformation to be applied |
void CSegSection::write |
( |
xmlpp::Node & |
node, |
|
|
int |
version |
|
) |
| const |
Store the segmented section into a XML sub-tree
- Parameters
-
node | parent node to which the subtree should be added |
version | segmentation set version the node stems from. |
The documentation for this class was generated from the following file: