Documentation of 'boofcv.struct.pyramid.PyramidDiscrete' Java class
PyramidDiscrete
boofcv.struct.pyramid

Class PyramidDiscrete<T extends ImageGray>

  • 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 Detail

      • scale

        public int[] scale
    • 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 in setScaleFactors(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: ImagePyramid
        Returns 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: ImagePyramid
        Returns the number of layers in the pyramid.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.