boofcv.struct.convolve
Class Kernel1D_F64
- java.lang.Object
-
- boofcv.struct.convolve.KernelBase
-
- boofcv.struct.convolve.Kernel1D
-
- boofcv.struct.convolve.Kernel1D_F64
-
-
Field Summary
Fields Modifier and Type Field and Description double[]data-
Fields inherited from class boofcv.struct.convolve.KernelBase
offset, width
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeSum()Kernel1D_F64copy()doubleget(int i)double[]getData()doublegetDouble(int index)booleanisInteger()voidprint()voidsetD(int index, double value)static Kernel1D_F64wrap(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
getOffset, getRadius, getWidth
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
wrap
public 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.- 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
public Kernel1D_F64 copy()
- Specified by:
copyin classKernelBase
-
isInteger
public boolean isInteger()
- Specified by:
isIntegerin classKernelBase
-
get
public double get(int i)
-
computeSum
public double computeSum()
-
getData
public double[] getData()
-
print
public void print()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG