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
ConstructorsConstructorDescriptionSparseIntegralGradientKernel(IntegralKernel kernelX, IntegralKernel kernelY) -
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
-
SparseIntegralGradientKernel
-
-
Method Details
-
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<T extends ImageGray<T>>
-
setImage
Description copied from interface:SparseImageOperatorSpecifies the image being processed.- Specified by:
setImagein interfaceSparseImageOperator<T extends ImageGray<T>>- Parameters:
integralImage- Image being processed
-
compute
Description copied from interface:SparseImageGradientComputes the gradient at the specified point.- Specified by:
computein 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:
getGradientTypein interfaceSparseImageGradient<T extends ImageGray<T>,GradientValue_F64>
-