knn
Class FeatureComputer

java.lang.Object
  |
  +--knn.FeatureComputer

public class FeatureComputer
extends java.lang.Object

FeatureComputer computes a feature for an image. The type of feature and its name is determined by a featureindex number. Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.


Field Summary
protected static float[] dog_scales
           
protected static float[] dog_xshifts
           
protected static DOGFilterBank dogFilter
           
protected static FilterBank filterBank
           
protected static float[] hessian_scales
           
protected static float[] scales
           
protected static float[] shift_scales
           
protected static StereoFilterBank stereoFilter
           
protected static float[] xshifts
           
 
Constructor Summary
FeatureComputer()
           
 
Method Summary
static Feature compute(int featurenumber, ij.process.ColorProcessor lp, ij.process.ColorProcessor rp, float[] lequalized)
          Compute a feature.
static float[] distanceToCenterHorizontal(int width, int height)
          Make a feature with the distance to the center of the image for each pixel.
static float[] distanceToCenterVertical(int width, int height)
          Make a feature with the distance to the center of the image for each pixel.
static java.lang.String featureNamePrefix(int featurenumber)
          make a String that is the prefix for all feature files.
static java.lang.String name(int featurenumber)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scales

protected static final float[] scales

hessian_scales

protected static final float[] hessian_scales

shift_scales

protected static final float[] shift_scales

xshifts

protected static final float[] xshifts

dog_scales

protected static final float[] dog_scales

dog_xshifts

protected static final float[] dog_xshifts

filterBank

protected static FilterBank filterBank

stereoFilter

protected static StereoFilterBank stereoFilter

dogFilter

protected static DOGFilterBank dogFilter
Constructor Detail

FeatureComputer

public FeatureComputer()
Method Detail

compute

public static Feature compute(int featurenumber,
                              ij.process.ColorProcessor lp,
                              ij.process.ColorProcessor rp,
                              float[] lequalized)
                       throws java.lang.Exception
Compute a feature.
Parameters:
featurenumber - the feature number
lp - left image color processor
rp - right image color processor
lequalized - float[] intensity equalized of lp for convenience.
Returns:
 

featureNamePrefix

public static java.lang.String featureNamePrefix(int featurenumber)
make a String that is the prefix for all feature files.

name

public static java.lang.String name(int featurenumber)

distanceToCenterHorizontal

public static float[] distanceToCenterHorizontal(int width,
                                                 int height)
Make a feature with the distance to the center of the image for each pixel.
Parameters:
width - the width of the images in ft
height - the width of the images in pixels.
Returns:
a Vector with all the features.

distanceToCenterVertical

public static float[] distanceToCenterVertical(int width,
                                               int height)
Make a feature with the distance to the center of the image for each pixel.
Parameters:
width - the width of the images in ft
height - the width of the images in pixels.
Returns:
a Vector with all the features.