features.filterBanks
Class Canny
java.lang.Object
features.filterBanks.FilterBank
features.filterBanks.Canny
public class Canny
- extends FilterBank
This class implements a filterbank for computing hessian eigenvalues at different scales.
Copyright (c) 1999-2005, Michael Abramoff. All rights reserved.
|
Constructor Summary |
Canny(float[] scales,
int[] channels)
|
|
Method Summary |
Feature |
filter(int filternumber,
int[] image,
int width,
java.lang.String extraText)
Apply a filter to the image. |
int |
getNumber()
Return the number of filters in this filter bank. |
static java.lang.String |
name(double scale,
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 |
Canny
public Canny(float[] scales,
int[] channels)
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,
int color,
java.lang.String extraText)
filter
public Feature filter(int filternumber,
int[] image,
int width,
java.lang.String extraText)
throws java.lang.Exception
- Apply a filter to the image.
The filter is determined by the filternumber which indicates which scale, and color to use.
filternumber is a consecutive number that identifies a filter with a specific scale, derivative order and orientation.
- Throws:
java.lang.Exception