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


  • public class AnyImageDerivative<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
    extends java.lang.Object

    A helpful class which allows a derivative of any order to be computed from an input image using a simple to use interface. Higher order derivatives are computed from lower order derivatives. Derivatives are computed using convolution kernels and thus might not be as efficient as when using functions from FactoryDerivative.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      D getDerivative​(boolean... isX)
      Computes derivative images using previously computed lower level derivatives.
      void setInput​(I input)
      Sets the new input image from which the image derivatives are computed from.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnyImageDerivative

        public AnyImageDerivative​(boofcv.struct.convolve.Kernel1D deriv,
                                  java.lang.Class<I> inputType,
                                  java.lang.Class<D> derivType)
        Constructor for 1D kernels.
        Parameters:
        deriv - 1D convolution kernel for computing derivative along x and y axises.
        inputType - The type of input image.
        derivType - Derivative image type
      • AnyImageDerivative

        public AnyImageDerivative​(boofcv.struct.convolve.Kernel2D derivX,
                                  java.lang.Class<I> inputType,
                                  java.lang.Class<D> derivType)
        Constructor for 2D kernels.
        Parameters:
        derivX - 2D convolution kernel for computing derivative along x axis
        inputType - The type of input image.
        derivType - Derivative image type
      • AnyImageDerivative

        public AnyImageDerivative​(ConvolveInterface<I,​D> derivX,
                                  ConvolveInterface<I,​D> derivY,
                                  ConvolveInterface<D,​D> derivXX,
                                  ConvolveInterface<D,​D> derivYY,
                                  java.lang.Class<I> inputType,
                                  java.lang.Class<D> derivType)
        Constructor for when all derivative filters are specified
        Parameters:
        derivX - Filter for computing derivative along x axis from input image.
        derivY - Filter for computing derivative along y axis from input image.
        derivXX - Filter for computing derivative along x axis from input image.
        derivYY - Filter for computing derivative along y axis from input image.
        inputType - The type of input image.
    • Method Detail

      • setInput

        public void setInput​(I input)
        Sets the new input image from which the image derivatives are computed from.
        Parameters:
        input - Input image.
      • getDerivative

        public D getDerivative​(boolean... isX)
        Computes derivative images using previously computed lower level derivatives. Only computes/declares images as needed.