Package boofcv.struct.sparse
Class SparseScaleGradient<T extends ImageGray<T>,G extends GradientValue>
java.lang.Object
boofcv.struct.sparse.SparseScaleGradient<T,G>
- All Implemented Interfaces:
SparseImageGradient<T,
,G> SparseImageOperator<T>
- Direct Known Subclasses:
SparseIntegralGradient_NoBorder
public abstract class SparseScaleGradient<T extends ImageGray<T>,G extends GradientValue>
extends Object
implements SparseImageGradient<T,G>
Interface for
SparseImageGradient
whose size can be scaled up and down.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.abstract void
setWidth
(double width) Sets how wide the gradient operator is in pixelsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.sparse.SparseImageGradient
compute, getGradientType
-
Field Details
-
input
-
x0
protected int x0 -
y0
protected int y0 -
x1
protected int x1 -
y1
protected int y1
-
-
Constructor Details
-
SparseScaleGradient
public SparseScaleGradient()
-
-
Method Details
-
setWidth
public abstract void setWidth(double width) Sets how wide the gradient operator is in pixels- Parameters:
width
- width in pixels
-
setImage
Description copied from interface:SparseImageOperator
Specifies the image being processed.- Specified by:
setImage
in interfaceSparseImageOperator<T extends ImageGray<T>>
- 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<T extends ImageGray<T>>
-