public class OrientationHistogramExtractor extends Object implements FeatureVectorExtractor<FloatFV,GradientScaleSpaceImageExtractorProperties<FImage>>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_BINS
Default number of orientation histogram bins;
Lowe's IJCV paper (p.13) suggests 36 bins.
|
static float |
DEFAULT_SAMPLING_SIZE
Default value for the size of the sampling window relative
to the sampling scale.
|
static float |
DEFAULT_SCALING
Default value for weighting the scaling Gaussian
relative to the keypoint scale.
|
static int |
DEFAULT_SMOOTHING_ITERATIONS
Default value for the number of iterations of the smoothing
filter.
|
protected int |
numBins |
protected float |
samplingSize |
protected float |
scaling |
protected int |
smoothingIterations |
Constructor and Description |
---|
OrientationHistogramExtractor()
Default constructor.
|
OrientationHistogramExtractor(int numBins,
float scaling,
int smoothingIterations,
float samplingSize)
Construct with the given parameter values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
circularSmooth(float[] buffer)
Smooth the values in a circular buffer with a (1/3)[1,1,1] kernel.
|
FloatFV[] |
extractFeature(GradientScaleSpaceImageExtractorProperties<FImage> props)
Extract the orientation histogram given the properties.
|
float[] |
extractFeatureRaw(GradientScaleSpaceImageExtractorProperties<FImage> properties)
Extract the orientation histogram given the properties.
|
public static int DEFAULT_NUM_BINS
public static float DEFAULT_SCALING
public static int DEFAULT_SMOOTHING_ITERATIONS
public static float DEFAULT_SAMPLING_SIZE
protected int numBins
protected float scaling
protected int smoothingIterations
protected float samplingSize
public OrientationHistogramExtractor()
public OrientationHistogramExtractor(int numBins, float scaling, int smoothingIterations, float samplingSize)
numBins
- number of orientation histogram binsscaling
- weighting for the scaling Gaussian relative to the keypoint scale.smoothingIterations
- the number of iterations of the smoothing filtersamplingSize
- size of the sampling window relative to the sampling scale.public FloatFV[] extractFeature(GradientScaleSpaceImageExtractorProperties<FImage> props)
extractFeature
in interface FeatureVectorExtractor<FloatFV,GradientScaleSpaceImageExtractorProperties<FImage>>
props
- Properties describing the interest point in scale space.public float[] extractFeatureRaw(GradientScaleSpaceImageExtractorProperties<FImage> properties)
properties
- Properties describing the interest point in scale space.protected void circularSmooth(float[] buffer)
buffer
- buffer to smooth