public class GradientSparseTwo1_U8 extends java.lang.Object implements SparseImageGradient<GrayU8,GradientValue_I32>
| Constructor and Description |
|---|
GradientSparseTwo1_U8(ImageBorder_S32<GrayU8> border)
Specifies how border pixels are handled.
|
| Modifier and Type | Method and Description |
|---|---|
GradientValue_I32 |
compute(int x,
int y)
Computes the gradient at the specified point.
|
java.lang.Class<GradientValue_I32> |
getGradientType() |
boolean |
isInBounds(int x,
int y)
Checks to see if the entire sample region is contained inside the image or not.
|
void |
setImage(GrayU8 input)
Specifies the image being processed.
|
public GradientSparseTwo1_U8(ImageBorder_S32<GrayU8> border)
border - how borders are handledpublic GradientValue_I32 compute(int x, int y)
SparseImageGradientcompute in interface SparseImageGradient<GrayU8,GradientValue_I32>x - x-axis pixel coordinatey - y-axis pixel coordinatepublic java.lang.Class<GradientValue_I32> getGradientType()
getGradientType in interface SparseImageGradient<GrayU8,GradientValue_I32>public void setImage(GrayU8 input)
SparseImageOperatorsetImage in interface SparseImageOperator<GrayU8>input - Image being processedpublic boolean isInBounds(int x,
int y)
SparseImageOperatorisInBounds in interface SparseImageOperator<GrayU8>