features.filterBanks
Class Gabor
java.lang.Object
features.filterBanks.FilterBank
features.filterBanks.Gabor
public class Gabor
- extends FilterBank
This class implements a filterbank for Gabor wavelet convolution for channel images.
It uses three physiologically plausible Channel spaces: bright-dark, red-green and yellow-blue.
It implements a super-convolver which with one method call
computes multiple convolutions of an image with Gabors of different scale, frequency, orientation and phase.
Copyright (c) 1999-2005, Michael Abramoff. All rights reserved.
|
Constructor Summary |
Gabor(float[] scales,
float[] orientations)
|
Gabor(float[] scales,
float[] orientations,
int[] channels)
|
|
Method Summary |
Feature |
filter(int filternumber,
int[] image,
int width,
java.lang.String extraText)
Apply a filter to the image. |
float[] |
gabor(float[] image,
int width,
double s,
double w,
double phi,
double orientation)
Convolve image with a Gabor cosine filter with scale s, frequency w, phase phi and orientation o. |
int |
getNumber()
Return the number of filters in this filter bank. |
static java.lang.String |
name(double scale,
double orientation,
double omega,
double phi,
int color,
java.lang.String extraText)
|
java.lang.String |
name(int filternumber,
java.lang.String preString)
Get the feature name for filternumber. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Gabor
public Gabor(float[] scales,
float[] orientations,
int[] channels)
Gabor
public Gabor(float[] scales,
float[] orientations)
getNumber
public int getNumber()
- Return the number of filters in this filter bank.
- Specified by:
getNumber in class FilterBank
name
public java.lang.String name(int filternumber,
java.lang.String preString)
- Description copied from class:
FilterBank
- Get the feature name for filternumber.
- Specified by:
name in class FilterBank
name
public static java.lang.String name(double scale,
double orientation,
double omega,
double phi,
int color,
java.lang.String extraText)
filter
public Feature filter(int filternumber,
int[] image,
int width,
java.lang.String extraText)
- Apply a filter to the image.
The filter is determined by the filternumber which indicates which scale, and orientation to use.
filternumber is a consecutive number that identifies a filter with a specific scale, derivative order and orientation.
gabor
public float[] gabor(float[] image,
int width,
double s,
double w,
double phi,
double orientation)
- Convolve image with a Gabor cosine filter with scale s, frequency w, phase phi and orientation o.
- Parameters:
image - float[] the imagewidth - int the width of image in pixels.s - double the scale of the Gaussian used to compute the Gabor waveletw - double the frequency of the cosine.phi - double the phase of the cosine
- Returns:
- float []