public class DataManipulationOps
extends java.lang.Object
| Constructor and Description |
|---|
DataManipulationOps() |
| Modifier and Type | Method and Description |
|---|---|
static boofcv.struct.convolve.Kernel1D_F32 |
create1D_F32(double[] kernel)
Converts the double array into a 1D float kernel
|
static void |
imageToTensor(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> input,
deepboof.tensors.Tensor_F32 output,
int miniBatch)
Converts an image into a spatial tensor
|
static void |
normalize(boofcv.struct.image.GrayF32 image,
float mean,
float stdev)
Normalizes a gray scale image by first subtracting the mean then dividing by stdev.
|
static boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> |
tensorToImage(deepboof.tensors.Tensor_F32 input,
boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> output,
int miniBatch) |
public static void normalize(boofcv.struct.image.GrayF32 image,
float mean,
float stdev)
image - Image that is to be normalizedmean - Value which is subtracted by itstdev - The divisorpublic static boofcv.struct.convolve.Kernel1D_F32 create1D_F32(double[] kernel)
kernel - Kernel in array formatpublic static void imageToTensor(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> input,
deepboof.tensors.Tensor_F32 output,
int miniBatch)
input - BoofCV planar imageoutput - TensorminiBatch - Which mini-batch in the tensor should the image be written topublic static boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> tensorToImage(deepboof.tensors.Tensor_F32 input,
boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> output,
int miniBatch)