#include <visx/gaborpatch.h>
Public Member Functions | |
GaborPatch (const GaborSpec &spec) | |
int | size () const |
double | at (int x, int y) const |
Returns the gabor patch value at the given coordinates. | |
void | fillCache () |
Force the entire patch to be cached. | |
Static Public Member Functions | |
static const GaborPatch & | lookup (const GaborSpec &s) |
static const GaborPatch & | lookup (double sigma, double omega, double theta, double phi) |
Can either compute values directly, or can cache the entire patch.
Definition at line 60 of file gaborpatch.h.
double GaborPatch::at | ( | int | x, | |
int | y | |||
) | const [inline] |
Returns the gabor patch value at the given coordinates.
If the patch has been cached, then we just lookup the value out of memory, otherwise we compute it.
Definition at line 77 of file gaborpatch.h.
void GaborPatch::fillCache | ( | ) |
Force the entire patch to be cached.
As usual, this is a space-time tradeoff... using the cache will make at() lookups faster, but will obviously expend more memory to do so.
Definition at line 122 of file gaborpatch.cc.