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:
This graph shows which files directly or indirectly include this file:
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. |
|
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(). |