public class FloatArray2DSIFT
extends java.lang.Object
Constructor and Description |
---|
FloatArray2DSIFT(int feature_descriptor_size,
int feature_descriptor_orientation_bins)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static float[] |
featureSizeHistogram(java.util.Vector<Feature> features,
float min,
float max,
int bins)
get a histogram of feature sizes
|
long |
getFeatureObjectSize()
Returns the size in bytes of a Feature object.
|
static long |
getFeatureObjectSize(int fdsize,
int fdbins) |
FloatArray2DScaleOctave |
getOctave(int i) |
FloatArray2DScaleOctave[] |
getOctaves() |
void |
init(FloatArray2D src,
int steps,
float initial_sigma,
int min_size,
int max_size)
initialize the scale space as a scale pyramid having octave stubs only
|
java.util.Vector<Feature> |
run()
detect features in all scale octaves
|
java.util.Vector<Feature> |
run(int max_size)
detect features in all scale octaves
|
java.util.Vector<Feature> |
runOctave(int o)
detect features in the specified scale octave
|
public FloatArray2DSIFT(int feature_descriptor_size, int feature_descriptor_orientation_bins)
feature_descriptor_size
- feature_descriptor_size
- public long getFeatureObjectSize()
public static long getFeatureObjectSize(int fdsize, int fdbins)
public FloatArray2DScaleOctave[] getOctaves()
public FloatArray2DScaleOctave getOctave(int i)
public void init(FloatArray2D src, int steps, float initial_sigma, int min_size, int max_size)
src
- image having a generating gaussian kernel of initial_sigma
img must be a 2d-array of float values in range [0.0f, ..., 1.0f]steps
- gaussian smooth steps steps per scale octaveinitial_sigma
- sigma of the generating gaussian kernel of imgmin_size
- minimal size of a scale octave in pixelmax_size
- maximal size of an octave to be taken into account
Use this to save memory and procesing time, if processing higher
resolutions is not necessary.public java.util.Vector<Feature> runOctave(int o)
o
- octave indexpublic java.util.Vector<Feature> run()
public java.util.Vector<Feature> run(int max_size)
public static float[] featureSizeHistogram(java.util.Vector<Feature> features, float min, float max, int bins)
rs
-