Package boofcv.struct.convolve
Class Kernel1D_F64
java.lang.Object
boofcv.struct.convolve.KernelBase
boofcv.struct.convolve.Kernel1D
boofcv.struct.convolve.Kernel1D_F64
Floating point 1D convolution kernel that extends
Kernel1D
.
WARNING: Do not modify. Automatically generated by boofcv.struct.convolve.GenerateKernel1D
.
-
Field Summary
Fields inherited from class boofcv.struct.convolve.KernelBase
offset, width
-
Constructor Summary
ModifierConstructorDescriptionprotected
Kernel1D_F64
(double[] data, int width) Creates a new kernel whose initial values are specified by "data" and length is "width".Kernel1D_F64
(double[] data, int width, int offset) Creates a kernel with elements equal to 'data' and with the specified 'width' plus 'offset'Kernel1D_F64
(int width) Create a kernel with elements initialized to zero.Kernel1D_F64
(int width, int offset) Create a kernel whose elements initialized to zero. -
Method Summary
Modifier and TypeMethodDescriptiondouble
copy()
double
get
(int i) double[]
getData()
double
getDouble
(int index) boolean
void
print()
void
setD
(int index, double value) static Kernel1D_F64
wrap
(double[] data, int width, int offset) Creates a kernel whose elements are the specified data array and has the specified width.Methods inherited from class boofcv.struct.convolve.Kernel1D
getDimension
Methods inherited from class boofcv.struct.convolve.KernelBase
getRadius
-
Field Details
-
data
public double[] data
-
-
Constructor Details
-
Kernel1D_F64
public Kernel1D_F64(double[] data, int width) Creates a new kernel whose initial values are specified by "data" and length is "width". The offset will be set to width/2- Parameters:
data
- The value of the kernel. Not modified. Reference is not saved.width
- The kernels width.
-
Kernel1D_F64
public Kernel1D_F64(double[] data, int width, int offset) Creates a kernel with elements equal to 'data' and with the specified 'width' plus 'offset'- Parameters:
data
- The value of the kernel. Not modified. Reference is not saved.width
- The kernels width.offset
- Location of the origin in the array
-
Kernel1D_F64
public Kernel1D_F64(int width) Create a kernel with elements initialized to zero. Offset is automatically set to width/2.- Parameters:
width
- How wide the kernel is.
-
Kernel1D_F64
public Kernel1D_F64(int width, int offset) Create a kernel whose elements initialized to zero.- Parameters:
width
- How wide the kernel is.offset
- Location of the origin in the array
-
Kernel1D_F64
protected Kernel1D_F64()
-
-
Method Details
-
getDouble
public double getDouble(int index) -
setD
public void setD(int index, double value) -
wrap
Creates a kernel whose elements are the specified data array and has the specified width.- Parameters:
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 array- Returns:
- A new kernel.
-
copy
- Specified by:
copy
in classKernelBase
-
isInteger
public boolean isInteger()- Specified by:
isInteger
in classKernelBase
-
get
public double get(int i) -
computeSum
public double computeSum() -
getData
public double[] getData() -
print
public void print()
-