public abstract class SparseScaleGradient<T extends ImageGray,G extends GradientValue> extends java.lang.Object implements SparseImageGradient<T,G>
SparseImageGradient whose size can be scaled up and down.| Modifier and Type | Field and Description |
|---|---|
protected T |
input |
protected int |
x0 |
protected int |
x1 |
protected int |
y0 |
protected int |
y1 |
| Constructor and Description |
|---|
SparseScaleGradient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInBounds(int x,
int y)
Checks to see if the entire sample region is contained inside the image or not.
|
void |
setImage(T input)
Specifies the image being processed.
|
abstract void |
setWidth(double width)
Sets how wide the gradient operator is in pixels
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, getGradientTypepublic abstract void setWidth(double width)
width - width in pixelspublic void setImage(T input)
SparseImageOperatorsetImage in interface SparseImageOperator<T extends ImageGray>input - Image being processedpublic boolean isInBounds(int x,
int y)
SparseImageOperatorisInBounds in interface SparseImageOperator<T extends ImageGray>