| Modifier and Type | Field and Description |
|---|---|
float[] |
data |
width| Modifier | Constructor and Description |
|---|---|
protected |
Kernel1D_F32() |
|
Kernel1D_F32(float[] data,
int width)
Creates a new kernel whose initial values are specified by data and width.
|
|
Kernel1D_F32(int width)
Create a kernel whose elements are all equal to zero.
|
|
Kernel1D_F32(int width,
float... value)
Create a kernel with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
float |
computeSum() |
float |
get(int i) |
float[] |
getData() |
boolean |
isInteger() |
void |
print() |
static Kernel1D_F32 |
wrap(float[] data,
int width)
Creates a kernel whose elements are the specified data array and has
the specified width.
|
getDimensiongetRadius, getWidthpublic Kernel1D_F32(float[] data,
int width)
data - The value of the kernel. Not modified. Reference is not saved.width - The kernels width. Must be odd.public Kernel1D_F32(int width)
width - How wide the kernel is. Must be odd.public Kernel1D_F32(int width,
float... value)
width - How wide the kernel is. Must be odd.value - The kernelprotected Kernel1D_F32()
public static Kernel1D_F32 wrap(float[] data, int width)
data - The array who will be the kernel's data. Reference is saved.width - The kernel's width.public boolean isInteger()
isInteger in class KernelBasepublic float get(int i)
public float computeSum()
public float[] getData()
public void print()
Copyright © 2013. All Rights Reserved.