boofcv.alg.filter.derivative
Class GradientThree
- java.lang.Object
-
- boofcv.alg.filter.derivative.GradientThree
-
public class GradientThree extends java.lang.ObjectComputes the image's first derivative along the x and y axises using [-1 0 1] kernel.
Th 1-D kernel allows the image's gradient to be computed efficiently but is more sensitive to local noise.
For example in an integer image:
derivX(x,y) = img(x+1,y) - img(x-1,y)
derivY(x,y) = img(x,y+1) - img(x,y-1)
-
-
Field Summary
Fields Modifier and Type Field and Description static Kernel1D_F32kernelDeriv_F32static Kernel1D_I32kernelDeriv_I32
-
Constructor Summary
Constructors Constructor and Description GradientThree()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Kernel1DgetKernelX(boolean isInteger)Returns the kernel for computing the derivative along the x-axis.static voidprocess(GrayF32 orig, GrayF32 derivX, GrayF32 derivY, ImageBorder_F32 border)Computes the derivative of anGrayF32along the x and y axes.static voidprocess(GrayS16 orig, GrayS16 derivX, GrayS16 derivY, ImageBorder_S32 border)Computes the derivative of anGrayS16along the x and y axes.static voidprocess(GrayU8 orig, GrayS16 derivX, GrayS16 derivY, ImageBorder_S32 border)Computes the derivative of anGrayU8along the x and y axes.static voidprocess(GrayU8 orig, GrayS32 derivX, GrayS32 derivY, ImageBorder_S32 border)Computes the derivative of anGrayU8along the x and y axes.
-
-
-
Field Detail
-
kernelDeriv_I32
public static Kernel1D_I32 kernelDeriv_I32
-
kernelDeriv_F32
public static Kernel1D_F32 kernelDeriv_F32
-
-
Method Detail
-
getKernelX
public static Kernel1D getKernelX(boolean isInteger)
Returns the kernel for computing the derivative along the x-axis.
-
process
public static void process(GrayU8 orig, GrayS16 derivX, GrayS16 derivY, ImageBorder_S32 border)
Computes the derivative of anGrayU8along the x and y axes.- Parameters:
orig- Which which is to be differentiated. Not Modified.derivX- Derivative along the x-axis. Modified.derivY- Derivative along the y-axis. Modified.border- Specifies how the image border is handled. If null the border is not processed.
-
process
public static void process(GrayU8 orig, GrayS32 derivX, GrayS32 derivY, ImageBorder_S32 border)
Computes the derivative of anGrayU8along the x and y axes.- Parameters:
orig- Which which is to be differentiated. Not Modified.derivX- Derivative along the x-axis. Modified.derivY- Derivative along the y-axis. Modified.border- Specifies how the image border is handled. If null the border is not processed.
-
process
public static void process(GrayS16 orig, GrayS16 derivX, GrayS16 derivY, ImageBorder_S32 border)
Computes the derivative of anGrayS16along the x and y axes.- Parameters:
orig- Which which is to be differentiated. Not Modified.derivX- Derivative along the x-axis. Modified.derivY- Derivative along the y-axis. Modified.border- Specifies how the image border is handled. If null the border is not processed.
-
process
public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY, ImageBorder_F32 border)
Computes the derivative of anGrayF32along the x and y axes.- Parameters:
orig- Which which is to be differentiated. Not Modified.derivX- Derivative along the x-axis. Modified.derivY- Derivative along the y-axis. Modified.border- Specifies how the image border is handled. If null the border is not processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG