public class PyramidOperations
extends java.lang.Object
Constructor and Description |
---|
PyramidOperations() |
Modifier and Type | Method and Description |
---|---|
static Dataset |
collapse(Dataset input)
Generates the Laplacian Pyramid of an input and blends the levels into a single composite result.
|
static Dataset |
collapse(Dataset input,
GaussianPyramidOperation gaussianPyramidOperation)
Generates the Laplacian Pyramid of an input and blends the levels into a single composite result.
|
static Dataset |
collapse(java.util.List<Dataset> pyramidLevels)
Blends the levels of a Laplacian pyramid into a single composite.
|
static Dataset |
expand(Dataset input)
Returns a Dataset twice as large in each dimension
|
static Dataset |
expand(Dataset input,
UpscaleOperation upscaleOperation)
Returns an upscaled version of the input
|
static java.util.List<Dataset> |
generateLaplacian(Dataset input) |
static java.util.List<Dataset> |
generateLaplacian(Dataset input,
GaussianPyramidOperation gaussianPyramidOperation)
Generates the Laplacian pyramid from an original Dataset and a Gaussian Pyramid operation.
|
static java.util.List<Dataset> |
generateLaplacian(java.util.List<Dataset> steps)
Generates the Laplacian pyramid from a list of Gaussian pyramid steps.
|
static void |
main(java.lang.String[] args) |
static Dataset |
reduce(Dataset input)
Returns a reduction of the specified Dataset, 1/2 the size in each dimension and Gaussian blurred
|
static Dataset |
reduce(Dataset input,
GaussianPyramidOperation gaussianPyramidOperation)
Returns the next step in the specified Gaussian pyramid
|
public static Dataset collapse(java.util.List<Dataset> pyramidLevels)
pyramidLevels
- levels of the pyramidto generate the Laplacian pyramid from a Gaussian pyramid
public static Dataset collapse(Dataset input, GaussianPyramidOperation gaussianPyramidOperation)
input
- original DatasetgaussianPyramidOperation
- pyramid operation to performpublic static Dataset collapse(Dataset input)
input
- original Datasetpublic static java.util.List<Dataset> generateLaplacian(java.util.List<Dataset> steps)
GaussianPyramidOperation = new GaussianPyramidOperation(); Dataset current = new Dataset(imageDataset); do { steps.add(current); } while ((current = gpo.run(current)) != null);
steps
- complete Gaussian pyramidpublic static java.util.List<Dataset> generateLaplacian(Dataset input, GaussianPyramidOperation gaussianPyramidOperation)
input
- original DatasetgaussianPyramidOperation
- pyramid operation to performpublic static Dataset reduce(Dataset input, GaussianPyramidOperation gaussianPyramidOperation)
input
- original inputgaussianPyramidOperation
- pyramid operationpublic static Dataset reduce(Dataset input)
input
- original inputpublic static Dataset expand(Dataset input, UpscaleOperation upscaleOperation)
input
- original inputupscaleOperation
- upscaling operationpublic static Dataset expand(Dataset input)
input
- original inputpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception