Class GradientSparseSobel_F32
java.lang.Object
boofcv.alg.filter.derivative.impl.GradientSparseSobel_F32
- All Implemented Interfaces:
SparseImageGradient<GrayF32,
,GradientValue_F32> SparseImageOperator<GrayF32>
public class GradientSparseSobel_F32
extends Object
implements SparseImageGradient<GrayF32,GradientValue_F32>
Sparse computation of the sobel gradient operator.
-
Constructor Summary
ConstructorDescriptionSpecifies how border pixels are handled. -
Method Summary
Modifier and TypeMethodDescriptioncompute
(int x, int y) Computes the gradient at the specified point.boolean
isInBounds
(int x, int y) Checks to see if the entire sample region is contained inside the image or not.void
Specifies the image being processed.
-
Constructor Details
-
GradientSparseSobel_F32
Specifies how border pixels are handled. If null then the border is not handled.- Parameters:
border
- how borders are handled
-
-
Method Details
-
compute
Description copied from interface:SparseImageGradient
Computes the gradient at the specified point.- Specified by:
compute
in interfaceSparseImageGradient<GrayF32,
GradientValue_F32> - Parameters:
x
- x-axis pixel coordinatey
- y-axis pixel coordinate- Returns:
- Gradient at that point.
-
getGradientType
- Specified by:
getGradientType
in interfaceSparseImageGradient<GrayF32,
GradientValue_F32>
-
setImage
Description copied from interface:SparseImageOperator
Specifies the image being processed.- Specified by:
setImage
in interfaceSparseImageOperator<GrayF32>
- Parameters:
input
- Image being processed
-
isInBounds
public boolean isInBounds(int x, int y) Description copied from interface:SparseImageOperator
Checks to see if the entire sample region is contained inside the image or not. Depending on the implementation it might be able to handle out of bounds pixels or not.- Specified by:
isInBounds
in interfaceSparseImageOperator<GrayF32>
-