boofcv.struct.pyramid
Class PyramidDiscrete<T extends ImageGray>
- java.lang.Object
-
- boofcv.struct.pyramid.ImagePyramidBase<T>
-
- boofcv.struct.pyramid.PyramidDiscrete<T>
-
- All Implemented Interfaces:
- ImagePyramid<T>
- Direct Known Subclasses:
- PyramidDiscreteAverage, PyramidDiscreteSampleBlur
public abstract class PyramidDiscrete<T extends ImageGray> 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.
-
-
Field Summary
Fields Modifier and Type Field and Description int[]scale-
Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase
layers
-
-
Constructor Summary
Constructors Constructor and Description PyramidDiscrete(java.lang.Class<T> imageType, boolean saveOriginalReference, int... scaleFactors)Specifies input image size and behavior of top most layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumLayers()Returns the number of layers in the pyramid.doublegetScale(int layer)Returns the scale of the specified layer in the pyramid.int[]getScales()voidsetScaleFactors(int... scaleFactors)Specifies the pyramid's structure.-
Methods inherited from class boofcv.struct.pyramid.ImagePyramidBase
getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isSaveOriginalReference, setFirstLayer, setTo
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.struct.pyramid.ImagePyramid
getSampleOffset, getSigma, process
-
-
-
-
Constructor Detail
-
PyramidDiscrete
public PyramidDiscrete(java.lang.Class<T> imageType, boolean saveOriginalReference, int... scaleFactors)
Specifies input image size and behavior of top most layer.- Parameters:
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 insetScaleFactors(int...).
-
-
Method Detail
-
setScaleFactors
public void setScaleFactors(int... scaleFactors)
Specifies the pyramid's structure. Scale factors are in relative to the input image.- Parameters:
scaleFactors- Change in scale factor for each layer in the pyramid.
-
getScales
public int[] getScales()
-
getScale
public double getScale(int layer)
Description copied from interface:ImagePyramidReturns the scale of the specified layer in the pyramid. Larger the scale smaller the image is relative to the input image.- Parameters:
layer- Which layer is being inspected.- Returns:
- The layer's scale.
-
getNumLayers
public int getNumLayers()
Description copied from interface:ImagePyramidReturns the number of layers in the pyramid.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG