public abstract class PyramidDiscrete<T extends ImageSingleBand> extends ImagePyramidBase<T>
In this implementation the scale factor between each layer is limited to being a positive integer that is evenly divisible by the previous layer. This added constraint allows further optimization to be performed.
| Modifier and Type | Field and Description |
|---|---|
int[] |
scale |
bottomHeight, bottomWidth, generator, layers, saveOriginalReference| Constructor and Description |
|---|
PyramidDiscrete(java.lang.Class<T> imageType,
boolean saveOriginalReference,
int... scaleFactors)
Specifies input image size and behavior of top most layer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumLayers()
Returns the number of layers in the pyramid.
|
double |
getScale(int layer)
Returns the scale of the specified layer in the pyramid.
|
int[] |
getScales() |
void |
setScaleFactors(int... scaleFactors)
Specifies the pyramid's structure.
|
checkScales, getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isSaveOriginalReference, setFirstLayer, setToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSampleOffset, getSigma, processpublic PyramidDiscrete(java.lang.Class<T> imageType, boolean saveOriginalReference, int... scaleFactors)
imageType - Type of image.saveOriginalReference - If a reference to the full resolution image should be saved instead of copied.
Set to false if you don't know what you are doing.scaleFactors - (optional) Specifies the scale of each layer in the pyramid. See restrictions
on scaleFactor in setScaleFactors(int...).public void setScaleFactors(int... scaleFactors)
scaleFactors - Change in scale factor for each layer in the pyramid.public int[] getScales()
public double getScale(int layer)
ImagePyramidlayer - Which layer is being inspected.public int getNumLayers()
ImagePyramid