SpaceVariantTransform Class Reference

Inheritance diagram for SpaceVariantTransform:
Inheritance graph
[legend]
Collaboration diagram for SpaceVariantTransform:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Image< std::pair
< float, float > >::iterator 
iterator
typedef Image< std::pair
< float, float >
>::const_iterator 
const_iterator

Public Member Functions

 SpaceVariantTransform ()
 constructor
 ~SpaceVariantTransform ()
 destructor
bool initialized () const
 are we initialized?
void to (const int x, const int y, int &u, int &v) const
 transform a point from cartesian to space variant coordinates
void to (const int x, const int y, float &u, float &v) const
 transform a point from cartesian to space variant coordinates
void from (const int u, const int v, int &x, int &y) const
 transform a point from space variant to cartesian coordinates
void from (const int u, const int v, float &x, float &y) const
 transform a point from space variant to cartesian coordinate
const DimsgetCTDims () const
 get the cartesian image size
const DimsgetSVDims () const
 get the space variant image size
const float & getRFSize (const uint u, const uint v) const
float getRFSize (const float &u, const float &v) const
const float & getRFSize (const uint pos) const
float getMaxRFSize () const
 get the max rf size
const_iterator begin () const
 get a const iterator to the lookup table
const_iterator end () const
 get a const iterator to the lookup table
const_iterator rbegin () const
 get a const iterator to the reverse lookup table
const_iterator rend () const
 get a const iterator to the reverse lookup table
Image< float >::const_iterator rfbegin () const
Image< float >::const_iterator rfend () const

Protected Member Functions

float computeDistance (const float &angle, const uint xpos, const uint ypos, const uint imgw, const uint imgh)

Protected Attributes

Image< std::pair< float, float > > itsLookup
Image< std::pair< float, float > > itsRevLookup
Image< float > itsStd
float itsMaxStd
bool isInitialized

Detailed Description

Definition at line 54 of file SpaceVariantTransforms.H.


Constructor & Destructor Documentation

SpaceVariantTransform::SpaceVariantTransform (  ) 

constructor

Definition at line 54 of file SpaceVariantTransforms.C.

SpaceVariantTransform::~SpaceVariantTransform (  ) 

destructor

Definition at line 60 of file SpaceVariantTransforms.C.


Member Function Documentation

SpaceVariantTransform::const_iterator SpaceVariantTransform::begin (  )  const

get a const iterator to the lookup table

Definition at line 139 of file SpaceVariantTransforms.C.

References Image< T >::begin().

float SpaceVariantTransform::computeDistance ( const float &  angle,
const uint  xpos,
const uint  ypos,
const uint  imgw,
const uint  imgh 
) [protected]

compute the distance from xpos, ypos to the nearest image boundary given the angle(radians)

Definition at line 175 of file SpaceVariantTransforms.C.

References abs(), and ASSERT.

SpaceVariantTransform::const_iterator SpaceVariantTransform::end (  )  const

get a const iterator to the lookup table

Definition at line 145 of file SpaceVariantTransforms.C.

References Image< T >::end().

void SpaceVariantTransform::from ( const int  u,
const int  v,
float &  x,
float &  y 
) const

transform a point from space variant to cartesian coordinate

Definition at line 95 of file SpaceVariantTransforms.C.

References Image< T >::getVal().

void SpaceVariantTransform::from ( const int  u,
const int  v,
int &  x,
int &  y 
) const

transform a point from space variant to cartesian coordinates

Definition at line 87 of file SpaceVariantTransforms.C.

References Image< T >::getVal().

const Dims & SpaceVariantTransform::getCTDims (  )  const

get the cartesian image size

Definition at line 103 of file SpaceVariantTransforms.C.

References Image< T >::getDims().

float SpaceVariantTransform::getMaxRFSize (  )  const

get the max rf size

Definition at line 133 of file SpaceVariantTransforms.C.

const float & SpaceVariantTransform::getRFSize ( const uint  pos  )  const

get the rf size at the specified ring. returns the standard deviation of the gaussian used to model the RF.

Definition at line 127 of file SpaceVariantTransforms.C.

References Image< T >::getVal().

float SpaceVariantTransform::getRFSize ( const float &  u,
const float &  v 
) const

get the rf size at the specified ring. returns the standard deviation of the gaussian used to model the RF. This version uses interpolation

Definition at line 121 of file SpaceVariantTransforms.C.

References Image< T >::getValInterp().

const float & SpaceVariantTransform::getRFSize ( const uint  u,
const uint  v 
) const

get the rf size at the specified ring. returns the standard deviation of the gaussian used to model the RF.

Definition at line 115 of file SpaceVariantTransforms.C.

References Image< T >::getVal().

const Dims & SpaceVariantTransform::getSVDims (  )  const

get the space variant image size

Definition at line 109 of file SpaceVariantTransforms.C.

References Image< T >::getDims().

bool SpaceVariantTransform::initialized (  )  const

are we initialized?

Definition at line 65 of file SpaceVariantTransforms.C.

SpaceVariantTransform::const_iterator SpaceVariantTransform::rbegin (  )  const

get a const iterator to the reverse lookup table

Definition at line 151 of file SpaceVariantTransforms.C.

References Image< T >::begin().

SpaceVariantTransform::const_iterator SpaceVariantTransform::rend (  )  const

get a const iterator to the reverse lookup table

Definition at line 157 of file SpaceVariantTransforms.C.

References Image< T >::end().

void SpaceVariantTransform::to ( const int  x,
const int  y,
float &  u,
float &  v 
) const

transform a point from cartesian to space variant coordinates

Definition at line 79 of file SpaceVariantTransforms.C.

References Image< T >::getVal().

void SpaceVariantTransform::to ( const int  x,
const int  y,
int &  u,
int &  v 
) const

transform a point from cartesian to space variant coordinates

Definition at line 71 of file SpaceVariantTransforms.C.

References Image< T >::getVal().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:25:49 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3