public class Kernel2D_F32 extends Kernel2D
| Modifier and Type | Field and Description |
|---|---|
float[] |
data |
width| Modifier | Constructor and Description |
|---|---|
protected |
Kernel2D_F32() |
|
Kernel2D_F32(int width)
Create a kernel whose elements are all equal to zero.
|
|
Kernel2D_F32(int width,
float... data)
Creates a new kernel whose initial values are specified by data and width.
|
| Modifier and Type | Method and Description |
|---|---|
float |
computeSum() |
float |
get(int x,
int y) |
float[] |
getData() |
boolean |
isInteger() |
void |
print() |
void |
set(int x,
int y,
float value) |
static Kernel2D_F32 |
wrap(float[] data,
int width)
Creates a kernel whose elements are the specified data array and has
the specified width.
|
getDimensiongetRadius, getWidthpublic Kernel2D_F32(int width,
float... data)
width - The kernels width. Must be odd.data - The value of the kernel. Not modified. Reference is not saved.public Kernel2D_F32(int width)
width - How wide the kernel is. Must be odd.protected Kernel2D_F32()
public static Kernel2D_F32 wrap(float[] data, int width)
data - The array who will be the kernel's data. Reference is saved.width - The kernel's width.public float get(int x,
int y)
public void set(int x,
int y,
float value)
public boolean isInteger()
isInteger in class KernelBasepublic float[] getData()
public float computeSum()
public void print()
Copyright © 2013. All Rights Reserved.