GaborPatch Class Reference

Manages a pixmap representation of a gabor patch. More...

#include <visx/gaborpatch.h>

Collaboration diagram for GaborPatch:

Collaboration graph
[legend]

List of all members.

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 GaborPatchlookup (const GaborSpec &s)
static const GaborPatchlookup (double sigma, double omega, double theta, double phi)


Detailed Description

Manages a pixmap representation of a gabor patch.

Can either compute values directly, or can cache the entire patch.

Definition at line 60 of file gaborpatch.h.


Member Function Documentation

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.


The documentation for this class was generated from the following files:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:54:28 2008 by Doxygen version 1.5.5.