public class AnyImageDerivative<I extends ImageSingleBand,D extends ImageSingleBand>
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.
| 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 specified
|
AnyImageDerivative(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.
|
| Modifier and Type | Method and 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.
|
public AnyImageDerivative(Kernel1D deriv, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
deriv - 1D convolution kernel for computing derivative along x and y axises.inputType - The type of input image.derivType - Derivative image typepublic AnyImageDerivative(Kernel2D derivX, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
derivX - 2D convolution kernel for computing derivative along x axisinputType - The type of input image.derivType - Derivative image typepublic 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)
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.public void setInput(I input)
input - Input image.public D getDerivative(boolean... isX)