Class ImplSsdCornerBase<D extends ImageGray<D>,D2 extends ImageGray<D2>>

All Implemented Interfaces:
FeatureIntensity<D>, GradientCornerIntensity<D>
Direct Known Subclasses:
ImplSsdCornerBox, ImplSsdCornerWeighted_F32, ImplSsdCornerWeighted_F32_MT, ImplSsdCornerWeighted_S16, ImplSsdCornerWeighted_S16_MT

public abstract class ImplSsdCornerBase<D extends ImageGray<D>,D2 extends ImageGray<D2>> extends 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.

  • Field Details

  • Constructor Details

    • ImplSsdCornerBase

      protected ImplSsdCornerBase(int windowRadius, Class<D> derivType, Class<D2> secondDerivType)
  • Method Details

    • setImageShape

      protected void setImageShape(int imageWidth, int imageHeight)
    • getRadius

      public int getRadius()
      Description copied from interface: FeatureIntensity
      Returns the radius of the feature being computed. Features are square in shape with a width = 2*radius+1.
      Specified by:
      getRadius in interface FeatureIntensity<D extends ImageGray<D>>
      Radius of detected features.
    • getIgnoreBorder

      public int getIgnoreBorder()
      Description copied from interface: FeatureIntensity
      Size of the region surrounding the image's border in which pixels are not processed.
      Specified by:
      getIgnoreBorder in interface FeatureIntensity<D extends ImageGray<D>>
      The ignore border around the image.
    • getInputType

      public Class<D> getInputType()
      Description copied from interface: GradientCornerIntensity
      Type of input image.
      Specified by:
      getInputType in interface GradientCornerIntensity<D extends ImageGray<D>>