Class NoCacheScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>

  • All Implemented Interfaces:
    boofcv.struct.gss.GaussianScaleSpace<I,​D>

    public class NoCacheScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
    extends java.lang.Object
    implements boofcv.struct.gss.GaussianScaleSpace<I,​D>

    Implementation of GaussianScaleSpace that focuses on one scale space at a time. When the scale space is changed the scaled image is recomputed and previously computed derivatives are marked as stale. Then the derivatives are recomputed as needed.

    • Constructor Detail

      • NoCacheScaleSpace

        public NoCacheScaleSpace​(java.lang.Class<I> inputType,
                                 java.lang.Class<D> derivType)
        Declares internal data structures.
        Parameters:
        inputType - Type of input image
        derivType - Derivative image type.
    • Method Detail

      • setScales

        public void setScales​(double... scales)
        Specified by:
        setScales in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getScale

        public double getScale​(int level)
        Specified by:
        getScale in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • setImage

        public void setImage​(I input)
        Specified by:
        setImage in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • setActiveScale

        public void setActiveScale​(int index)
        Specified by:
        setActiveScale in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getCurrentScale

        public double getCurrentScale()
        Specified by:
        getCurrentScale in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getTotalScales

        public int getTotalScales()
        Specified by:
        getTotalScales in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getScaledImage

        public I getScaledImage()
        Specified by:
        getScaledImage in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • setBorderType

        public void setBorderType​(boofcv.struct.border.BorderType type)
        Specified by:
        setBorderType in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getBorderType

        public boofcv.struct.border.BorderType getBorderType()
        Specified by:
        getBorderType in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getDerivative

        public D getDerivative​(boolean... isX)
        Computes derivative images using previously computed lower level derivatives. Only computes/declares images as needed.
        Specified by:
        getDerivative in interface boofcv.struct.gss.GaussianScaleSpace<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>