Package topo :: Package coordmapper
[hide private]
[frames] | no frames]

Package coordmapper

source code

A family of function objects for transforming one set of coordinates into another.

Coordinate mapper functions are useful for defining magnifications and other kinds of transformations on sheet coordinates, e.g. for defining retinal magnification using a CFProjection. A CoordinateMapperFn (e.g. MagnifyingMapper), is applied to an (x,y) pair and returns a new (x,y) pair. To apply a mapping to a CF projection, set the CFProjection's coord_mapper parameter to an instance of the desired CoordinateMapperFn.

$Id: __init__.py 8938 2008-08-21 13:29:50Z ceball $


Version: $Revision: 8938 $

Submodules [hide private]

Classes [hide private]
  AffineTransform
Remaps the input with an affine transform.
  Cartesian2Polar
Maps from Cartesian (x,y) to polar (radius,angle).
  ConstantMapper
Map all values to the same constant, pre-specified coordinates.
  CoordinateMapperFn
Abstract base class for functions mapping from a 2D coordinate into another one.
  Grid
Divides the 2D area into a grid, where all points within each grid element map to the same location.
  IdentityMF
Return the x coordinate of the given coordinate.
  Jitter
Additively modifies calculated x,y coordinates, e.g.
  MagnifyingMapper
Exponential (magnifying) mapping function.
  NormalJitter
Additively modifies calculated x,y coordinates with Gaussian random noise.
  OttesSCMapper
Abstract class for superior colliculus mappings.
  OttesSCMotorMapper
Efferent superior colliculus mapping.
  OttesSCSenseMapper
Afferent superior colliculus mapping.
  Pipeline
Applies a sequence of coordmappers, left to right.
  Polar2Cartesian
Map from polar (radius,angle) to Cartesian (x,y) coordinates.
  ReducingMapper
Provides a mapping that reduces the center of the activity.
  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.
  Translate2d
Translate the input by xoff,yoff.
Variables [hide private]
  __package__ = 'topo.coordmapper'