Class GradientSparseThree_F32
java.lang.Object
boofcv.alg.filter.derivative.impl.GradientSparseThree_F32
- All Implemented Interfaces:
SparseImageGradient<GrayF32,,GradientValue_F32> SparseImageOperator<GrayF32>
public class GradientSparseThree_F32
extends Object
implements SparseImageGradient<GrayF32,GradientValue_F32>
Sparse computation of the three gradient operator.
-
Constructor Summary
ConstructorsConstructorDescriptionSpecifies how border pixels are handled. -
Method Summary
Modifier and TypeMethodDescriptioncompute(int x, int y) Computes the gradient at the specified point.booleanisInBounds(int x, int y) Checks to see if the entire sample region is contained inside the image or not.voidSpecifies the image being processed.
-
Constructor Details
-
GradientSparseThree_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:SparseImageGradientComputes the gradient at the specified point.- Specified by:
computein interfaceSparseImageGradient<GrayF32,GradientValue_F32> - Parameters:
x- x-axis pixel coordinatey- y-axis pixel coordinate- Returns:
- Gradient at that point.
-
getGradientType
- Specified by:
getGradientTypein interfaceSparseImageGradient<GrayF32,GradientValue_F32>
-
setImage
Description copied from interface:SparseImageOperatorSpecifies the image being processed.- Specified by:
setImagein interfaceSparseImageOperator<GrayF32>- Parameters:
input- Image being processed
-
isInBounds
public boolean isInBounds(int x, int y) Description copied from interface:SparseImageOperatorChecks 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:
isInBoundsin interfaceSparseImageOperator<GrayF32>
-