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