| Home | Trees | Indices | Help |
|
|---|
|
|
Functions for mapping from one 2D Cartesian coordinate system to another.
These are useful for defining projections with nonlinear magnifications, reductions, or other transformations of the input coordinate system.
Generally, these function objects should work for an arbitrary (x,y) pair, returning new, remapped (x,y), although some classes of mappers may define their range and domain, with undesirable or undefined behavior outside those regions. It is best if such objects raise a suitable exception in those circumstances.
$Id: basic.py 7147 2007-11-23 10:35:44Z ceball $
Version: $Revision: 7147 $
|
|||
|
ConstantMapper Coordinate Mapper that uses constant mapping values. |
|||
|
Pipeline Applies a sequence of coordmappers, left to right. |
|||
|
Grid Divides the 2D area into a grid, where all points within each grid element map to the same location. |
|||
|
Polar2Cartesian Map from polar (radius,angle) to Cartesian (x,y) coordinates. |
|||
|
Cartesian2Polar Maps from Cartesian (x,y) to polar (radius,angle). |
|||
|
AffineTransform Remaps the input with an affine transform. |
|||
|
Translate2d Translate the input by xoff,yoff. |
|||
|
Rotate2d Rotate the input around the origin by an angle in radians. |
|||
|
Scale2d Scale the input along the x and y axes by sx and sy, respectively. |
|||
|
SingleDimensionMapper Coordinate Mapper that uses an origin-centered 1-D mapping function. |
|||
|
MagnifyingMapper Exponential (magnifying) mapping function. |
|||
|
ReducingMapper Provides a mapping that reduces the center of the activity. |
|||
|
OttesSCMapper Abstract class for superior colliculus mappings. |
|||
|
OttesSCMotorMapper Efferent superior colliculus mapping. |
|||
|
OttesSCSenseMapper Afferent superior colliculus mapping. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
The efferent mapping function from Ottes et al. (1986) Vision Research 26:857-873. Takes saccade with amplitude R (in degrees) and direction phi (in degrees), and returns a location u,v on the colliculus in mm, where the u axis is rostral/caudal, and the v axis is medial/lateral. |
Approximate inverse of ottes_mapping(), using the inverse function provided in the appendix of Ottes et al. (1986) Vision Research 26:857-873 Takes takes a location u,v on the colliculus in mm and maps to a retinal eccentricity R and direction phi, in degrees. Inverse is approximate, with increasing error as positions near the edges of the collicular sheet. (I.e. with high absolute v value). |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:02 2008 | http://epydoc.sourceforge.net |