| Modifier and Type | Field and Description |
|---|---|
double[] |
data |
offset, width| Modifier | Constructor and Description |
|---|---|
protected |
Kernel1D_F64() |
|
Kernel1D_F64(double[] data,
int width)
Creates a new kernel whose initial values are specified by data and width.
|
|
Kernel1D_F64(double[] data,
int offset,
int width)
Creates a new kernel whose initial values are specified by data and width.
|
|
Kernel1D_F64(int width)
Create a kernel whose elements are all equal to zero.
|
|
Kernel1D_F64(int offset,
int width)
Create a kernel whose elements are all equal to zero.
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeSum() |
double |
get(int i) |
double[] |
getData() |
double |
getDouble(int index) |
boolean |
isInteger() |
void |
print() |
static Kernel1D_F64 |
wrap(double[] data,
int width)
Creates a kernel whose elements are the specified data array and has
the specified width.
|
getDimensiongetOffset, getRadius, getWidthpublic Kernel1D_F64(double[] data,
int width)
data - The value of the kernel. Not modified. Reference is not saved.width - The kernels width. Must be odd.public Kernel1D_F64(double[] data,
int offset,
int width)
data - The value of the kernel. Not modified. Reference is not saved.width - The kernels width. Must be odd.offset - Location of the origin in the arraypublic Kernel1D_F64(int width)
width - How wide the kernel is. Must be odd.public Kernel1D_F64(int offset,
int width)
width - How wide the kernel is. Must be odd.offset - Location of the origin in the arrayprotected Kernel1D_F64()
public static Kernel1D_F64 wrap(double[] 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 double get(int i)
public double computeSum()
public double[] getData()
public void print()