Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
PointToIndex2dC::PointToIndex2dC(const Point2dC &,const Point2dC &)
PointToIndex2dC::operator()(const Point2dC &)
PointToIndex2dC::Point(const Index2dC &)
PointToIndex2dC::operator>>(istream &,PointToIndex2dC &)
PointToIndex2dC::operator<<(ostream &,const PointToIndex2dC &)
PointToIndex2dC
 
Conversion of Point2dC into Index2dC
 
include "amma/PtToInd2.hh"
User Level:Default
Library:Magm
Example:exMat2d.cc
Section:Containers.Arrays.2-D Arrays Geometry.2-D
In Scope:std

Comments:
The class PointToIndex2dC serves as the transformation between two-dimensional point and two-dimensional index, including scaling and translation.

Variables:
Point2dC offset;
coordinates of the first point

Point2dC size;
size of a cell of the grid

Methods:
PointToIndex2dC(const Point2dC & minimumPoint,const Point2dC & cellSize)
Creates the transformation which converts a 2-D point into a cell index.

Index2dC operator()(const Point2dC & point)
Converts the 'point' into index.

Point2dC Point(const Index2dC & i)
Returns the points of the coordintates equal to the indices of 'i'.

istream & operator>>(istream & inS,PointToIndex2dC & tr)

ostream & operator<<(ostream & outS,const PointToIndex2dC & tr)


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001