Package boofcv.alg.filter.derivative
Class HessianSobel
- java.lang.Object
-
- boofcv.alg.filter.derivative.HessianSobel
-
public class HessianSobel extends java.lang.ObjectComputes the second derivative (Hessian) of an image using. This hessian is derived using the
GradientSobelgradient function.WARNING: It is computationally more expensive to compute the Hessian with this operation than applying the Sobel gradient operator multiple times. However, this does not require the creation additional storage to save intermediate results.
Kernel for ∂ 2f/∂ y2:
2f/∂ x∂y is:1 4 6 4 1 0 0 0 0 0 -2 -8 -12 -8 -2 0 0 0 0 0 1 4 6 4 1
1 2 0 -2 -1 2 4 0 -4 -2 0 0 0 0 0 -2 -4 0 4 2 -1 -2 0 2 1
-
-
Field Summary
Fields Modifier and Type Field Description static boofcv.struct.convolve.Kernel2D_F32kernelXX_F32static boofcv.struct.convolve.Kernel2D_S32kernelXX_I32static boofcv.struct.convolve.Kernel2D_F32kernelXY_F32static boofcv.struct.convolve.Kernel2D_S32kernelXY_I32static boofcv.struct.convolve.Kernel2D_F32kernelYY_F32static boofcv.struct.convolve.Kernel2D_S32kernelYY_I32
-
Constructor Summary
Constructors Constructor Description HessianSobel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprocess(boofcv.struct.image.GrayF32 orig, boofcv.struct.image.GrayF32 derivXX, boofcv.struct.image.GrayF32 derivYY, boofcv.struct.image.GrayF32 derivXY, boofcv.struct.border.ImageBorder_F32 border)Computes the image's second derivatives.static voidprocess(boofcv.struct.image.GrayU8 orig, boofcv.struct.image.GrayS16 derivXX, boofcv.struct.image.GrayS16 derivYY, boofcv.struct.image.GrayS16 derivXY, boofcv.struct.border.ImageBorder_S32 border)Computes the image's second derivatives.static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
voidprocess(I input, D derivXX, D derivYY, D derivXY, boofcv.struct.border.ImageBorder border)
-
-
-
Field Detail
-
kernelYY_I32
public static boofcv.struct.convolve.Kernel2D_S32 kernelYY_I32
-
kernelXX_I32
public static boofcv.struct.convolve.Kernel2D_S32 kernelXX_I32
-
kernelXY_I32
public static boofcv.struct.convolve.Kernel2D_S32 kernelXY_I32
-
kernelYY_F32
public static boofcv.struct.convolve.Kernel2D_F32 kernelYY_F32
-
kernelXX_F32
public static boofcv.struct.convolve.Kernel2D_F32 kernelXX_F32
-
kernelXY_F32
public static boofcv.struct.convolve.Kernel2D_F32 kernelXY_F32
-
-
Method Detail
-
process
public static <I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>> void process(I input, D derivXX, D derivYY, D derivXY, @Nullable boofcv.struct.border.ImageBorder border)
-
process
public static void process(boofcv.struct.image.GrayU8 orig, boofcv.struct.image.GrayS16 derivXX, boofcv.struct.image.GrayS16 derivYY, boofcv.struct.image.GrayS16 derivXY, boofcv.struct.border.ImageBorder_S32 border)Computes the image's second derivatives.- Parameters:
orig- Which which is to be differentiated. Not Modified.derivXX- Second derivative along the x-axis. Modified.derivYY- Second derivative along the y-axis. Modified.derivXY- Second cross derivative. Modified.border- Specifies how the image border is handled. If null the border is not processed.
-
process
public static void process(boofcv.struct.image.GrayF32 orig, boofcv.struct.image.GrayF32 derivXX, boofcv.struct.image.GrayF32 derivYY, boofcv.struct.image.GrayF32 derivXY, boofcv.struct.border.ImageBorder_F32 border)Computes the image's second derivatives.- Parameters:
orig- Which which is to be differentiated. Not Modified.derivXX- Second derivative along the x-axis. Modified.derivYY- Second derivative along the y-axis. Modified.derivXY- Second cross derivative. Modified.border- Specifies how the image border is handled. If null the border is not processed.
-
-