public class Kernel2D_F32 extends Kernel2D
WARNING: Do not modify. Automatically generated by boofcv.struct.convolve.GenerateKernel2D.
| Modifier and Type | Field and Description |
|---|---|
float[] |
data |
offset, width| Modifier | Constructor and Description |
|---|---|
protected |
Kernel2D_F32() |
|
Kernel2D_F32(int width)
Create a kernel with elements initialized to zero with the specified 'width' and offset equal to
width/2
|
|
Kernel2D_F32(int width,
float[] data)
Creates a new kernel whose initial values are specified by 'data' and 'width'.
|
|
Kernel2D_F32(int width,
int offset)
Create a kernel with elements initialized to zero with the specified 'width' and 'offset'.
|
| Modifier and Type | Method and Description |
|---|---|
float |
computeSum() |
Kernel2D_F32 |
copy() |
float |
get(int x,
int y) |
float[] |
getData() |
double |
getDouble(int x,
int y) |
boolean |
isInteger() |
void |
print() |
void |
set(int x,
int y,
float value) |
static Kernel2D_F32 |
wrap(float[] data,
int width,
int offset)
Creates a kernel whose elements are the specified data array and has
the specified width.
|
getDimensiongetOffset, getRadius, getWidthpublic Kernel2D_F32(int width,
float[] data)
width - The kernels width. Must be odd.data - The value of the kernel. Not modified. Reference is not saved.public Kernel2D_F32(int width)
width - How wide the kernel is.public Kernel2D_F32(int width,
int offset)
width - How wide the kernel is.protected Kernel2D_F32()
public static Kernel2D_F32 wrap(float[] data, int width, int offset)
data - The array who will be the kernel's data. Reference is saved.width - The kernel's width.offset - Kernel origin's offset from element 0.public float get(int x,
int y)
public void set(int x,
int y,
float value)
public boolean isInteger()
isInteger in class KernelBasepublic float[] getData()
public float computeSum()
public void print()
public Kernel2D_F32 copy()
copy in class KernelBase