Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

retina.h File Reference


Detailed Description

Retina class and associated functions.

Header
/u/nn/cvsroot/lissom/src/retina.h,v 1.38 2002/06/19 04:21:42 yschoe Exp

Definition in file retina.h.

#include <assert.h>
#include <algorithm>
#include "genericalgs.h"
#include "robj.h"
#include "neuralregion.h"
#include "matrix.h"
#include "allocatingpointer.h"

Include dependency graph for retina.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  Retina
 Basic retina implemented as a transparent window into the world. More...


Functions

template<class Matrix> void draw (Matrix &area, const Retinal_Obj *obj, const typename Matrix::value_type xoff=0.5, const typename Matrix::value_type yoff=0.5, const typename Matrix::value_type size_scale=1.0)
 Generic Retinal_Obj draw function into a matrix.


Function Documentation

template<class Matrix>
void draw Matrix &    area,
const Retinal_Obj   obj,
const typename Matrix::value_type    xoff = 0.5,
const typename Matrix::value_type    yoff = 0.5,
const typename Matrix::value_type    size_scale = 1.0
 

Generic Retinal_Obj draw function into a matrix.

The integer eye matrix coordinates (r,c) are first mapped into real-valued world coordinates (x,y). This requires flipping the vertical dimension (since arrays are numbered from the top down yet the Y axis increases from the bottom up) and sampling at the center of the pixel covering (x,y) to (x+1,y+1), which requires an offset of (0.5,0.5). Nothing is drawn if the given object pointer is null; such a condition is generally but not always an error.

Definition at line 37 of file retina.h.

References Retinal_Obj::activation(), and Retinal_Obj::update().

Referenced by Retina::activate().


Generated on Mon Jan 20 02:36:41 2003 for RF-LISSOM by doxygen1.3-rc2