- java.lang.Object
-
- boofcv.abst.filter.derivative.AnyImageDerivative<I,D>
-
public class AnyImageDerivative<I extends ImageGray,D extends ImageGray> extends java.lang.ObjectA 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.
-
-
Constructor Summary
Constructors Constructor and Description 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 specifiedAnyImageDerivative(Kernel1D deriv, java.lang.Class<I> inputType, java.lang.Class<D> derivType)Constructor for 1D kernels.AnyImageDerivative(Kernel2D derivX, java.lang.Class<I> inputType, java.lang.Class<D> derivType)Constructor for 2D kernels.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DgetDerivative(boolean... isX)Computes derivative images using previously computed lower level derivatives.voidsetInput(I input)Sets the new input image from which the image derivatives are computed from.
-
-
-
Constructor Detail
-
AnyImageDerivative
public AnyImageDerivative(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(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 axisinputType- 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG