boofcv.alg.feature.detect.intensity.impl
Class ImplSsdCornerBase<D extends ImageGray,D2 extends ImageGray>
- java.lang.Object
-
- boofcv.alg.feature.detect.intensity.impl.ImplSsdCornerBase<D,D2>
-
- All Implemented Interfaces:
- FeatureIntensity<D>, GradientCornerIntensity<D>
- Direct Known Subclasses:
- ImplSsdCorner_F32, ImplSsdCorner_S16
public abstract class ImplSsdCornerBase<D extends ImageGray,D2 extends ImageGray> extends java.lang.Object implements GradientCornerIntensity<D>
Several corner detector algorithms work by computing a symmetric matrix whose elements are composed of the convolution of the image's gradient squared. This is done for X*X, X*Y, and X*X. Once the matrix has been constructed it is used to estimate how corner like the pixel under consideration is. This class provides a generalized interface for performing these calculations in an optimized manor.
NOTE: Image borders are not processed. The zeros in the image border need to be taken in account when extract features using algorithms such as non-max suppression.
-
-
Constructor Summary
Constructors Constructor and Description ImplSsdCornerBase(int windowRadius, java.lang.Class<D2> secondDerivType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetIgnoreBorder()Size of the region surrounding the image's border in which pixels are not processed.intgetRadius()Returns the radius of the feature being computed.voidprocess(D derivX, D derivY, GrayF32 intensity)Computes feature intensity image.voidsetImageShape(int imageWidth, int imageHeight)
-
-
-
Constructor Detail
-
ImplSsdCornerBase
public ImplSsdCornerBase(int windowRadius, java.lang.Class<D2> secondDerivType)
-
-
Method Detail
-
setImageShape
public void setImageShape(int imageWidth, int imageHeight)
-
getRadius
public int getRadius()
Description copied from interface:FeatureIntensityReturns the radius of the feature being computed. Features are square in shape with a width = 2*radius+1.- Specified by:
getRadiusin interfaceFeatureIntensity<D extends ImageGray>- Returns:
- Radius of detected features.
-
getIgnoreBorder
public int getIgnoreBorder()
Description copied from interface:FeatureIntensitySize of the region surrounding the image's border in which pixels are not processed.- Specified by:
getIgnoreBorderin interfaceFeatureIntensity<D extends ImageGray>- Returns:
- The ignore border around the image.
-
process
public void process(D derivX, D derivY, GrayF32 intensity)
Description copied from interface:GradientCornerIntensityComputes feature intensity image.- Specified by:
processin interfaceGradientCornerIntensity<D extends ImageGray>- Parameters:
derivX- Image derivative along the x-axis.derivY- Image derivative along the y-axis.intensity- Output intensity image
-
-
DataMelt 3.0 © DataMelt by jWork.ORG