#include <kernelfactory.h>
Public Types | |
| typedef InternalNeuralRegion::WeightMatrix | KernelMatrix |
| Type to use for a generated kernel. More... | |
| typedef double (* | kernel_fnPtr )(double x_sq, double sig_sq) |
| Concrete type to use for a kernel function pointer. | |
| enum | BlurTypes { Blur_SquareAverage, Blur_CircularAverage, Blur_Gaussian, Blur_DoG, Blur_LoG, Blur_GoD, Blur_DoGGoD, Blur_PGM } |
| Possible values for a blur_type. | |
Public Methods | |
| KernelFactory () | |
| virtual | ~KernelFactory () |
| KernelMatrix | create ( int index, double world_size_scale, StringArgs arglist ) |
| Update the kernel matrices for each eye. More... | |
| KernelMatrix | create (kernel_fnPtr fnptr, double radius, int max_radius, string& errors, bool circular=true, bool normalize=true) |
| Convenient wrapper for RadialFunction's version. More... | |
| void | register_params_and_commands ( void ) |
| Call before using any of the parameters and commands in this class. More... | |
Public Attributes | |
| const BlurTypes | max_blur_type |
| Highest index defined in BlurTypes. More... | |
Definition at line 21 of file kernelfactory.h.
|
|
Type to use for a generated kernel.
Definition at line 24 of file kernelfactory.h. |
|
|
Possible values for a blur_type.
Definition at line 46 of file kernelfactory.h. |
|
|
Definition at line 26 of file kernelfactory.h. |
|
|
Definition at line 27 of file kernelfactory.h. |
|
|
Convenient wrapper for RadialFunction's version.
Definition at line 35 of file kernelfactory.h. |
|
|
Update the kernel matrices for each eye. This is currently not as cleanly implemented as input_define or input_define_generator (i.e., no hierarchy of subclasses) but that added complexity probably isn't worth it since the base implementation (the blurring kernel passed to retina.h) is itself very general. So this is basically just a virtual constructor for such a kernel. The default width of each matrix was chosen empirically for each type, based upon plots of the kernel at small radii (approximately 1-6). For the values chosen, the function was nearly zero to the naked eye (if it tended towards zero, of course). The given index is used for DoGGoD, to determine which type to use. Some types may return an empty kernel (0 x 0), so that possibility must be checked before using the kernel. Definition at line 201 of file kernelfactory.c. Referenced by KernelFactoryWrapper::operator()(). |
|
|
Call before using any of the parameters and commands in this class.
Definition at line 22 of file kernelfactory.c. |
|
|
Highest index defined in BlurTypes.
Definition at line 50 of file kernelfactory.h. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000