public interface GradientFeatureProvider extends LocalFeatureProvider<OrientedFeatureVector>
Interpolation.bilerp(double, double, double, double, double, double)
).
f = new GradientBasedLocalFeatureExtractorImpl()
f.setPatchOrientation(orientation)
for (pixels in patch)
f.addSample(normalised-pixel-position, pixel-magnitude, pixel-orientation)
Modifier and Type | Method and Description |
---|---|
void |
addSample(float x,
float y,
float gradmag,
float gradori)
Add a sample to the feature.
|
OrientedFeatureVector |
getFeatureVector()
Get the FeatureVector associated with this object.
|
void |
setPatchOrientation(float patchOrientation)
Set the primary orientation of the sample patch in the image being
processed.
|
getOversamplingAmount
void setPatchOrientation(float patchOrientation)
addSample(float, float, float, float)
are made.patchOrientation
- the actual orientation of the square in the imagevoid addSample(float x, float y, float gradmag, float gradori)
x
- x-coordinate within the unit indexing squarey
- y-coordinate within the unit indexing squaregradmag
- the gradient magnitude at the given coordinategradori
- the gradient direction at the given coordinateOrientedFeatureVector getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<OrientedFeatureVector>