Modifier and Type | Field and Description |
---|---|
int[] |
data |
width
Modifier | Constructor and Description |
---|---|
protected |
Kernel1D_I32() |
|
Kernel1D_I32(int width)
Create a kernel whose elements are all equal to zero.
|
|
Kernel1D_I32(int[] data,
int width)
Creates a new kernel whose initial values are specified by data and width.
|
|
Kernel1D_I32(int width,
int... values)
The kernel is specified using variable arguments
|
Modifier and Type | Method and Description |
---|---|
int |
computeSum() |
int |
get(int i) |
int[] |
getData() |
boolean |
isInteger() |
static Kernel1D_I32 |
wrap(int[] data,
int width)
Creates a kernel whose elements are the specified data array and has
the specified width.
|
getDimension
getRadius, getWidth
public Kernel1D_I32(int[] data, int width)
data
- The value of the kernel. Not modified. Reference is not saved.width
- The kernels width. Must be odd.public Kernel1D_I32(int width)
width
- How wide the kernel is. Must be odd.public Kernel1D_I32(int width, int... values)
width
- How wide the kernel is. Must be odd.protected Kernel1D_I32()
public static Kernel1D_I32 wrap(int[] 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 int[] getData()
public int get(int i)
public int computeSum()
Copyright © 2011-2012 Peter Abeles