a point in a 2D segmentation shape More...
#include <mia/2d/segpoint.hh>
Public Member Functions | |
| CSegPoint2D () | |
| CSegPoint2D (const C2DFVector &org) | |
| copy constructor More... | |
| CSegPoint2D (float x, float y) | |
| CSegPoint2D (const CXMLElement &node) | |
| void | inv_transform (const C2DTransformation &t) |
| CSegPoint2D & | operator= (const C2DFVector &org) |
| assignment operator More... | |
| void | transform (const C2DTransformation &t) |
| void | write (CXMLElement &node) const |
Public Member Functions inherited from T2DVector< float > | |
| void | fill (float v) |
| fill all the elements with the given value More... | |
| float | norm () const |
| float | norm2 () const |
| bool | operator!= (const T2DVector &a) const |
| not equal operator More... | |
| T2DVector & | operator*= (double a) |
| in place multiplication with a scalar More... | |
| T2DVector & | operator*= (const T2DVector &a) |
| in place element wise multiplication of two 2D vectors More... | |
| T2DVector & | operator+= (const T2DVector &a) |
| in place addition More... | |
| T2DVector | operator- () const |
| T2DVector & | operator-= (const T2DVector &a) |
| in place subtraction More... | |
| T2DVector & | operator/= (const T2DVector &a) |
| in place element wise division of two 2D vectors More... | |
| T2DVector & | operator/= (double a) |
| in place division by a scalar More... | |
| bool | operator== (const T2DVector &a) const |
| Equal operator. More... | |
| float & | operator[] (int i) |
| const float & | operator[] (int i) const |
| void | print (std::ostream &os) const |
| print the vector to a stream with special formatting More... | |
| double | product () const |
| void | read (std::istream &is) |
| read the properly formatted 2D vector from a stream More... | |
| size_t | size () const |
| returns the size of this vector, always 2 More... | |
| T2DVector () | |
| T2DVector (int dim) | |
| T2DVector (float _x, float _y) | |
| T2DVector (const T2DVector< In > &in) | |
Additional Inherited Members | |
Public Types inherited from T2DVector< float > | |
| typedef float | value_type |
| typedef for generic access to the element type More... | |
Data Fields inherited from T2DVector< float > | |
| float | x |
| first element More... | |
| float | y |
| second element More... | |
Static Public Attributes inherited from T2DVector< float > | |
| static const T2DVector< float > | _0 |
| a static for the value <0,0>. More... | |
| static const T2DVector< float > | _1 |
| a static for the value <1,1>. More... | |
a point in a 2D segmentation shape
Point of a segmentation shape. In addition to be a 2D point it can be read from and written to a XML tree and supports its own tranformation.
Definition at line 40 of file segpoint.hh.
| CSegPoint2D::CSegPoint2D | ( | ) |
| CSegPoint2D::CSegPoint2D | ( | const C2DFVector & | org | ) |
copy constructor
| CSegPoint2D::CSegPoint2D | ( | float | x, |
| float | y | ||
| ) |
Construct the point with the given coordinates
| x | |
| y |
| CSegPoint2D::CSegPoint2D | ( | const CXMLElement & | node | ) |
Construct the point from a XML node
| node |
| void CSegPoint2D::inv_transform | ( | const C2DTransformation & | t | ) |
Evaluate an approximation of the inverse of the given transform of the point
| t |
| CSegPoint2D& CSegPoint2D::operator= | ( | const C2DFVector & | org | ) |
assignment operator
| void CSegPoint2D::transform | ( | const C2DTransformation & | t | ) |
Tranform the point according to the given tranformation
| t |
| void CSegPoint2D::write | ( | CXMLElement & | node | ) | const |
Write the point as child-node to a given XML tree
| node |