public interface WeightPixel_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
|
void |
setRadius(int radiusX,
int radiusY)
Change the kernel's size
|
float |
weight(int x,
int y)
Access the weight using coordinates.
|
float |
weightIndex(int index)
Faster way to access the weight.
|
float weightIndex(int index)
Faster way to access the weight. Refers to the index in a row major matrix.
x = (index % widthX) - radiusX
y = (index / widthX) - radiusY
index - index of grid elementfloat weight(int x,
int y)
x - x-coordinate: range = -radius to radius, inclusivey - y-coordinate: range = -radius to radius, inclusivevoid setRadius(int radiusX,
int radiusY)
radiusX - Radius along x-axisradiusY - Radius along y-axisint getRadiusX()
int getRadiusY()