boofcv.alg.transform.ii
Class SparseIntegralGradientKernel<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.transform.ii.SparseIntegralGradientKernel<T>
-
- All Implemented Interfaces:
- SparseImageGradient<T,GradientValue_F64>, SparseImageOperator<T>
public class SparseIntegralGradientKernel<T extends ImageGray> extends java.lang.Object implements SparseImageGradient<T,GradientValue_F64>
Computes the gradient from an integral image. Does not check for border conditions.
-
-
Constructor Summary
Constructors Constructor and Description SparseIntegralGradientKernel(IntegralKernel kernelX, IntegralKernel kernelY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GradientValue_F64compute(int x, int y)Computes the gradient at the specified point.java.lang.Class<GradientValue_F64>getGradientType()booleanisInBounds(int x, int y)Checks to see if the entire sample region is contained inside the image or not.voidsetImage(T integralImage)Specifies the image being processed.
-
-
-
Constructor Detail
-
SparseIntegralGradientKernel
public SparseIntegralGradientKernel(IntegralKernel kernelX, IntegralKernel kernelY)
-
-
Method Detail
-
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>
-
setImage
public void setImage(T integralImage)
Description copied from interface:SparseImageOperatorSpecifies the image being processed.- Specified by:
setImagein interfaceSparseImageOperator<T extends ImageGray>- Parameters:
integralImage- Image being processed
-
compute
public GradientValue_F64 compute(int x, int y)
Description copied from interface:SparseImageGradientComputes the gradient at the specified point.- Specified by:
computein interfaceSparseImageGradient<T extends ImageGray,GradientValue_F64>- Parameters:
x- x-axis pixel coordinatey- y-axis pixel coordinate- Returns:
- Gradient at that point.
-
getGradientType
public java.lang.Class<GradientValue_F64> getGradientType()
- Specified by:
getGradientTypein interfaceSparseImageGradient<T extends ImageGray,GradientValue_F64>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG