public class PyramidOps
extends java.lang.Object
| Constructor and Description |
|---|
PyramidOps() |
| Modifier and Type | Method and Description |
|---|---|
static <O extends boofcv.struct.image.ImageGray<O>> |
declareOutput(boofcv.struct.pyramid.ImagePyramid<?> pyramid,
java.lang.Class<O> outputType)
Creates an array of single band images for each layer in the provided pyramid.
|
static <I extends boofcv.struct.image.ImageGray<I>,O extends boofcv.struct.image.ImageGray<O>> |
filter(boofcv.struct.pyramid.ImagePyramid<I> input,
FilterImageInterface<I,O> filter,
O[] output)
Runs an image filter through each layer in the pyramid.
|
static <I extends boofcv.struct.image.ImageGray<I>,O extends boofcv.struct.image.ImageGray<O>> |
gradient(boofcv.struct.pyramid.ImagePyramid<I> input,
ImageGradient<I,O> gradient,
O[] derivX,
O[] derivY)
Computes the gradient for each image the pyramid.
|
static <I extends boofcv.struct.image.ImageGray<I>,O extends boofcv.struct.image.ImageGray<O>> |
hessian(O[] derivX,
O[] derivY,
ImageHessian<O> hessian,
O[] derivXX,
O[] derivYY,
O[] derivXY)
Computes the hessian (2nd order derivative) for each image the pyramid.
|
static <O extends boofcv.struct.image.ImageGray<O>> |
reshapeOutput(boofcv.struct.pyramid.ImagePyramid<?> pyramid,
O[] output)
Reshapes each image in the array to match the layers in the pyramid
|
static <T extends boofcv.struct.image.ImageGray<T>> |
scaleDown2(T input,
T output)
Scales down the input by a factor of 2.
|
static <T extends boofcv.struct.image.ImageGray<T>> |
scaleImageUp(T input,
T output,
int scale,
InterpolatePixelS<T> interp)
Scales an image up using interpolation
|
public static <O extends boofcv.struct.image.ImageGray<O>> O[] declareOutput(boofcv.struct.pyramid.ImagePyramid<?> pyramid,
java.lang.Class<O> outputType)
O - Output image typepyramid - (Input) Image pyramidoutputType - (Input) Output image typepublic static <O extends boofcv.struct.image.ImageGray<O>> void reshapeOutput(boofcv.struct.pyramid.ImagePyramid<?> pyramid,
O[] output)
O - Image typepyramid - (Input) Image pyramidoutput - (Output) List of images which is to be resizedpublic static <I extends boofcv.struct.image.ImageGray<I>,O extends boofcv.struct.image.ImageGray<O>> void filter(boofcv.struct.pyramid.ImagePyramid<I> input,
FilterImageInterface<I,O> filter,
O[] output)
Runs an image filter through each layer in the pyramid.
It is assumed that the output has the same scales as the input. If not initialized then it will be initialized. If already initialized it is assumed to be setup for the same input image size.
input - Input pyramid.filter - Filter being applied to the pyramid.output - Output pyramid where filter results are saved.public static <I extends boofcv.struct.image.ImageGray<I>,O extends boofcv.struct.image.ImageGray<O>> void gradient(boofcv.struct.pyramid.ImagePyramid<I> input,
ImageGradient<I,O> gradient,
O[] derivX,
O[] derivY)
Computes the gradient for each image the pyramid.
It is assumed that the gradient has the same scales as the input. If not initialized then it will be initialized. If already initialized it is assumed to be setup for the same input image size.
input - Input pyramid.gradient - Computes image gradientderivX - Pyramid where x-derivative is stored.derivY - Pyramid where y-derivative is stored.public static <I extends boofcv.struct.image.ImageGray<I>,O extends boofcv.struct.image.ImageGray<O>> void hessian(O[] derivX,
O[] derivY,
ImageHessian<O> hessian,
O[] derivXX,
O[] derivYY,
O[] derivXY)
Computes the hessian (2nd order derivative) for each image the pyramid.
derivX - (Input) Pyramid where x-derivative is stored.derivY - (Input) Pyramid where y-derivative is stored.hessian - (Input) Computes hessian from gradientderivXX - (Output) Second derivative XXderivYY - (Output) Second derivative YYderivXY - (Output) Second derivative XYpublic static <T extends boofcv.struct.image.ImageGray<T>> void scaleDown2(T input,
T output)
public static <T extends boofcv.struct.image.ImageGray<T>> void scaleImageUp(T input,
T output,
int scale,
InterpolatePixelS<T> interp)
scale - How much larger the output image will be.