public class GImageDerivativeOps
extends java.lang.Object
| Constructor and Description |
|---|
GImageDerivativeOps() |
| Modifier and Type | Method and Description |
|---|---|
static <I extends ImageSingleBand,D extends ImageSingleBand> |
createAnyDerivatives(DerivativeType type,
java.lang.Class<I> inputType,
java.lang.Class<D> derivType)
Convenience function for creating an instance of
AnyImageDerivative. |
static <I extends ImageSingleBand,D extends ImageSingleBand> |
derivativeForScaleSpace(java.lang.Class<I> inputType,
java.lang.Class<D> derivType)
Creates an instance of
AnyImageDerivative which is intended for use of calculating scale-spaces. |
static <I extends ImageSingleBand,D extends ImageSingleBand> |
getDerivativeType(java.lang.Class<I> imageType)
Returns the type of image the derivative should be for the specified input type.
|
static <I extends ImageSingleBand,D extends ImageSingleBand> |
gradient(DerivativeType type,
I input,
D derivX,
D derivY,
BorderType borderType)
Computes the gradient using the specified image type.
|
static <D extends ImageSingleBand> |
hessian(DerivativeType type,
D derivX,
D derivY,
D derivXX,
D derivYY,
D derivXY,
BorderType borderType)
Computes the hessian from the gradient.
|
static <I extends ImageSingleBand,D extends ImageSingleBand> |
hessian(DerivativeType type,
I input,
D derivXX,
D derivYY,
D derivXY,
BorderType borderType)
Computes the hessian from the original input image.
|
static <I extends ImageSingleBand,D extends ImageSingleBand> |
laplace(I input,
D output) |
static KernelBase |
lookupKernelX(DerivativeType type,
boolean isInteger)
Returns the kernel for finding the X derivative.
|
public static <I extends ImageSingleBand,D extends ImageSingleBand> void laplace(I input, D output)
public static <I extends ImageSingleBand,D extends ImageSingleBand> java.lang.Class<D> getDerivativeType(java.lang.Class<I> imageType)
imageType - Input image type.public static <I extends ImageSingleBand,D extends ImageSingleBand> void gradient(DerivativeType type, I input, D derivX, D derivY, BorderType borderType)
I - Input image typeD - Output image typetype - Type of gradient to computeinput - Input imagederivX - Output. Derivative XderivY - Output. Derivative YborderType - How it should handle borders. null == skip borderpublic static <I extends ImageSingleBand,D extends ImageSingleBand> void hessian(DerivativeType type, I input, D derivXX, D derivYY, D derivXY, BorderType borderType)
I - Input image typeD - Output image typetype - Type of gradient to computeinput - Input imagederivXX - Output. Derivative XXderivYY - Output. Derivative YYderivXY - Output. Derivative XYborderType - How it should handle borders. null == skip borderpublic static <D extends ImageSingleBand> void hessian(DerivativeType type, D derivX, D derivY, D derivXX, D derivYY, D derivXY, BorderType borderType)
type - Type of gradient to computederivX - Input derivative XderivY - Input derivative YderivXX - Output. Derivative XXderivYY - Output. Derivative YYderivXY - Output. Derivative XYborderType - How it should handle borders. null == skip borderpublic static KernelBase lookupKernelX(DerivativeType type, boolean isInteger)
type - Type of gradientisInteger - integer or floating point kernelspublic static <I extends ImageSingleBand,D extends ImageSingleBand> AnyImageDerivative<I,D> createAnyDerivatives(DerivativeType type, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
Convenience function for creating an instance of AnyImageDerivative.
This class is an any way to compute any derivative of any order using the specified kernel. It might
use more memory or be more expensive the specialized code but is easy to use.
I - Image type.D - Image derivative type.type - Type of gradient to useinputType - Type of input image.derivType - Type of derivative imagepublic static <I extends ImageSingleBand,D extends ImageSingleBand> AnyImageDerivative<I,D> derivativeForScaleSpace(java.lang.Class<I> inputType, java.lang.Class<D> derivType)
AnyImageDerivative which is intended for use of calculating scale-spaces.
It uses DerivativeType.THREE since it does not blur the image. More typical operators, such as Sobel and
Prewitt, blur the image.I - Image type.D - Image derivative type.inputType - Type of input image.derivType - Type of derivative image