Modifier and Type | Field and Description |
---|---|
double[] |
data |
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(int width)
Create a kernel whose elements are all equal to zero.
|
|
Kernel1D_F64(int width,
double... value)
Create a kernel with the specified values.
|
Modifier and Type | Method and Description |
---|---|
double |
get(int i) |
double[] |
getData() |
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.
|
getDimension
getRadius, getWidth
public 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(int width)
width
- How wide the kernel is. Must be odd.public Kernel1D_F64(int width, double... value)
width
- How wide the kernel is. Must be odd.value
- The kernelprotected 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 KernelBase
public double get(int i)
public double[] getData()
public void print()
Copyright © 2011-2012 Peter Abeles