public abstract class WeightPixelKernel_F32 extends java.lang.Object implements WeightPixel_F32
Kernel2D_F32. For performance reasons no checks are
done to see if a request has been made outside the kernel's radius. Those values should be zero.| Modifier and Type | Field and Description |
|---|---|
protected Kernel2D_F32 |
kernel |
| Constructor and Description |
|---|
WeightPixelKernel_F32() |
| Modifier and Type | Method and Description |
|---|---|
int |
getRadiusX()
Returns the kernel's radius along the x-axis
|
int |
getRadiusY()
Returns the kernel's radius along the y-axis
|
float |
weight(int x,
int y)
Access the weight using coordinates.
|
float |
weightIndex(int index)
Faster way to access the weight.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRadiusprotected Kernel2D_F32 kernel
public float weightIndex(int index)
WeightPixel_F32
Faster way to access the weight. Refers to the index in a row major matrix.
x = (index % widthX) - radiusX
y = (index / widthX) - radiusY
weightIndex in interface WeightPixel_F32index - index of grid elementpublic float weight(int x,
int y)
WeightPixel_F32weight in interface WeightPixel_F32x - x-coordinate: range = -radius to radius, inclusivey - y-coordinate: range = -radius to radius, inclusivepublic int getRadiusX()
WeightPixel_F32getRadiusX in interface WeightPixel_F32public int getRadiusY()
WeightPixel_F32getRadiusY in interface WeightPixel_F32