Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::Point Class Reference

#include <DrawPoint.hpp>

Inheritance diagram for Bial::Point:
Inheritance graph
Collaboration diagram for Bial::Point:
Collaboration graph

Public Member Functions

 Point (const Vector< float > &coord, const Color color=Color(1))
 Basic Constructor for 2 and 3 dimensional point. More...
 
template<class D >
void Draw (Image< D > &img) const
 Draws n-dimensional point in input image. More...
 
template<class D >
void Draw (Image< D > &img, const Vector< float > &displacement) const
 Draws n-dimensional point in input image. More...
 
Vector< Vector< int > > Pixels () const
 Returns a vector with coordinates of the pixels from this Figure. More...
 
Vector< Vector< int > > Pixels (const Vector< float > &displacement) const
 Returns a vector with coordinates of the pixels from this figure. More...
 
template<class O >
void Print (O &os) const
 Prints point information to stream. More...
 
- Public Member Functions inherited from Bial::Figure< Point >
 Figure (const Color &color)
 Basic Constructor. More...
 
void Draw (Image< D > &img)
 Draws figure in input image. More...
 
void Draw (Image< D > &img, const Vector< float > &displacement) const
 Draws n-dimensional figure in input image. More...
 
Vector< Vector< int > > Pixels () const
 Returns a vector with coordinates of the pixels from this Figure. More...
 
Vector< Vector< int > > Pixels (const Vector< float > &displacement) const
 Returns a vector with coordinates of the pixels from this figure. More...
 
void Print (O &os) const
 Prints figure information to stream. More...
 

Public Attributes

Vector< float > coordinate
 
- Public Attributes inherited from Bial::Figure< Point >
Color color
 The color of the figure. More...
 

Detailed Description

Definition at line 24 of file DrawPoint.hpp.

Constructor & Destructor Documentation

Bial::Point::Point ( const Vector< float > &  coord,
const Color  color = Color(1) 
)

Basic Constructor for 2 and 3 dimensional point.

Date
2015/Jul/01
Parameters
coordCoordinates of the point.
colorThe color of the point.
Returns
none.
Warning
none.

Member Function Documentation

template<class D >
void Bial::Point::Draw ( Image< D > &  img) const

Draws n-dimensional point in input image.

Date
2015/Jul/01
Parameters
imgAn image.
Returns
none.
Warning
none.
template<class D >
void Bial::Point::Draw ( Image< D > &  img,
const Vector< float > &  displacement 
) const

Draws n-dimensional point in input image.

Date
2015/Jul/01
Parameters
imgAn image.
displacementDisplacement from low coordinate to start drawing.
Returns
none.
Warning
none.
Vector< Vector< int > > Bial::Point::Pixels ( ) const

Returns a vector with coordinates of the pixels from this Figure.

Date
2015/Jul/07
Parameters
none.
Returns
Vector with pixels.
Warning
none.
Vector< Vector< int > > Bial::Point::Pixels ( const Vector< float > &  displacement) const

Returns a vector with coordinates of the pixels from this figure.

Date
2015/Jul/07
Parameters
displacementDisplacement from low coordinate of the figure.
Returns
Vector with pixels.
Warning
none.
template<class O >
void Bial::Point::Print ( O &  os) const

Prints point information to stream.

Date
2014/Mar/18
Parameters
osan output stream.
Returns
none.
Warning
none.

Member Data Documentation

Vector< float > Bial::Point::coordinate

Definition at line 27 of file DrawPoint.hpp.


The documentation for this class was generated from the following file: