- All Implemented Interfaces:
InterestPointScaleSpacePyramid<T>
Detects scale invariant interest/corner points by computing the feature intensities across a pyramid of different scales. Features which are maximums with in a local 2D neighborhood and within the local scale neighbourhood are declared to be features. Maximums are checked for in scale space by comparing the feature intensity against features in the upper and lower layers.
NOTE: Features are not computed for the bottom and top most layers in the pyramid.
NOTE: See discussion of scalePower inside of FeatureLaplacePyramid
.
[1] Krystian Mikolajczyk and Cordelia Schmid, "Indexing based on scale invariant interest points" ICCV 2001. Proceedings.
[2] Lindeberg, T., "Feature detection with automatic scale selection." IJCV 30(2) (1998) 79 – 116
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected AnyImageDerivative<T,
D> protected List<ScalePoint>
protected GrayF32[]
protected List<Point2D_I16>[]
protected double
protected int
-
Constructor Summary
ConstructorDescriptionFeaturePyramid
(GeneralFeatureDetector<T, D> detector, AnyImageDerivative<T, D> computeDerivative, double scalePower) Create a feature detector. -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
checkMax
(ImageBorder_F32 inten, float bestScore, int c_x, int c_y) void
detect
(PyramidFloat<T> ss) Searches for features inside the provided scale spaceprotected void
findLocalScaleSpaceMax
(PyramidFloat<T> ss, int layerID) Searches the pyramid layers up and down to see if the found 2D features are also scale space maximums.Returns all the found interest points
-
Field Details
-
intensities
-
spaceIndex
protected int spaceIndex -
maximums
-
foundPoints
-
computeDerivative
-
scalePower
protected double scalePower
-
-
Constructor Details
-
FeaturePyramid
public FeaturePyramid(GeneralFeatureDetector<T, D> detector, AnyImageDerivative<T, D> computeDerivative, double scalePower) Create a feature detector.- Parameters:
detector
- Point feature detector which is used to find candidates in each scale levelscalePower
- Used to normalize feature intensity at different scales. For many features this should be one.
-
-
Method Details
-
detect
Searches for features inside the provided scale space- Specified by:
detect
in interfaceInterestPointScaleSpacePyramid<T extends ImageGray<T>>
- Parameters:
ss
- Scale space of an image
-
findLocalScaleSpaceMax
Searches the pyramid layers up and down to see if the found 2D features are also scale space maximums. -
checkMax
-
getInterestPoints
Description copied from interface:InterestPointScaleSpacePyramid
Returns all the found interest points- Specified by:
getInterestPoints
in interfaceInterestPointScaleSpacePyramid<T extends ImageGray<T>>
- Returns:
- List of found interest points.
-