#include <assert.h>
#include <algorithm>
#include "genericalgs.h"
#include "robj.h"
#include "neuralregion.h"
#include "matrix.h"
Include dependency graph for retina.h:

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

Go to the source code of this file.
Compounds | |
| class | Retina |
Functions | |
| template<classMatrix> 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. More... | |
Definition in file retina.h.
|
||||||||||||
|
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). Definition at line 35 of file retina.h. Referenced by Retina::activate(). |
1.2.1 written by Dimitri van Heesch,
© 1997-2000