Package boofcv.alg.transform.ii
Class SparseIntegralGradientKernel<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.transform.ii.SparseIntegralGradientKernel<T>
- All Implemented Interfaces:
SparseImageGradient<T,
,GradientValue_F64> SparseImageOperator<T>
public class SparseIntegralGradientKernel<T extends ImageGray<T>>
extends Object
implements SparseImageGradient<T,GradientValue_F64>
Computes the gradient from an integral image. Does not check for border conditions.
-
Constructor Summary
ConstructorDescriptionSparseIntegralGradientKernel
(IntegralKernel kernelX, IntegralKernel kernelY) -
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
-
SparseIntegralGradientKernel
-
-
Method Details
-
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<T extends ImageGray<T>>
-
setImage
Description copied from interface:SparseImageOperator
Specifies the image being processed.- Specified by:
setImage
in interfaceSparseImageOperator<T extends ImageGray<T>>
- Parameters:
integralImage
- Image being processed
-
compute
Description copied from interface:SparseImageGradient
Computes the gradient at the specified point.- Specified by:
compute
in interfaceSparseImageGradient<T extends ImageGray<T>,
GradientValue_F64> - Parameters:
x
- x-axis pixel coordinatey
- y-axis pixel coordinate- Returns:
- Gradient at that point.
-
getGradientType
- Specified by:
getGradientType
in interfaceSparseImageGradient<T extends ImageGray<T>,
GradientValue_F64>
-