knn
Class DOGFilterBank

java.lang.Object
  |
  +--knn.StereoFilterBank
        |
        +--knn.DOGFilterBank

public class DOGFilterBank
extends StereoFilterBank

This class implements a dog difference of gaussians filterbank, i.e. a sort of super-convolver which with one method call computes multiple dogs. Copyright (c) 1999-2005, Michael Abramoff. All rights reserved.


Fields inherited from class knn.StereoFilterBank
n, nrOrders, scales, xshifts
 
Constructor Summary
DOGFilterBank(float[] scales, float[] xshifts)
           
 
Method Summary
static Feature DOG(float[] image_left, float[] image_right, int width, double scale, double xshift, java.lang.String extraText)
          Compute a stereo difference image.
 Feature filter(int filternumber, float[] left_image, float[] right_image, int width, java.lang.String extraText)
          Apply the filter to a stereo pair.
protected static java.lang.String name(double scale, double xshift, double yshift, java.lang.String extraText)
           
 java.lang.String toString(int filternumber, java.lang.String preString)
          Return a descriptive String for this filter number.
 
Methods inherited from class knn.StereoFilterBank
D, depth, getNumber, linzeros, linzerosOld, params, S, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOGFilterBank

public DOGFilterBank(float[] scales,
                     float[] xshifts)
Method Detail

toString

public java.lang.String toString(int filternumber,
                                 java.lang.String preString)
Return a descriptive String for this filter number.
Overrides:
toString in class StereoFilterBank

name

protected static java.lang.String name(double scale,
                                       double xshift,
                                       double yshift,
                                       java.lang.String extraText)

filter

public Feature filter(int filternumber,
                      float[] left_image,
                      float[] right_image,
                      int width,
                      java.lang.String extraText)
Apply the filter to a stereo pair. The filter is determined by the currentFilter number which indicates which scale, order and orientation to use.
Overrides:
filter in class StereoFilterBank

DOG

public static Feature DOG(float[] image_left,
                          float[] image_right,
                          int width,
                          double scale,
                          double xshift,
                          java.lang.String extraText)
Compute a stereo difference image. This is the subtraction of convoluted right from convoluted left (shifted xhsift, yshift pixels) at order order and scale. This can be optimized (in terms of fewer dimensions) by replacing a set of shifts, with one image with the smallest shift for each pixel.
Parameters:
image_left - the left image
image_right - the right image.
width - the width of these images
xshift - the x shift to perform (integer shifts).
yshift - the x shift to perform.
scale - the scales at which to perform the shift (firtst do the convolution with a Gaussian kernel of order and scale).
featureNames - a Vector containing the list of feature names corresponding to ft.
Returns:
ft, a Feature with the shift image.