| Modifier and Type | Field and Description |
|---|---|
float[] |
data |
offset, 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 length is "width".
|
|
Kernel1D_F32(float[] data,
int width,
int offset)
Creates a kernel with elements equal to 'data' and with the specified 'width' plus 'offset'
|
|
Kernel1D_F32(int width)
Create a kernel with elements initialized to zero.
|
|
Kernel1D_F32(int width,
int offset)
Create a kernel whose elements initialized to zero.
|
| Modifier and Type | Method and Description |
|---|---|
float |
computeSum() |
Kernel1D_F32 |
copy() |
float |
get(int i) |
float[] |
getData() |
double |
getDouble(int index) |
boolean |
isInteger() |
void |
print() |
void |
setD(int index,
double value) |
static Kernel1D_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 Kernel1D_F32(float[] data,
int width)
data - The value of the kernel. Not modified. Reference is not saved.width - The kernels width.public Kernel1D_F32(float[] data,
int width,
int offset)
data - The value of the kernel. Not modified. Reference is not saved.width - The kernels width.offset - Location of the origin in the arraypublic Kernel1D_F32(int width)
width - How wide the kernel is.public Kernel1D_F32(int width,
int offset)
width - How wide the kernel is.offset - Location of the origin in the arrayprotected Kernel1D_F32()
public static Kernel1D_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 - Location of the origin in the arraypublic Kernel1D_F32 copy()
copy in class KernelBasepublic boolean isInteger()
isInteger in class KernelBasepublic float get(int i)
public float computeSum()
public float[] getData()
public void print()