Class ScaleLevel

java.lang.Object
imagingbook.common.sift.scalespace.ScaleLevel

public class ScaleLevel extends Object

Represents a single scale level in a generic hierarchical scale space. See Secs. 25.1.4 for more details. Pixel data are represented as one-dimensional float arrays. This class defines no public constructor.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

Version:
2022/11/20 removed FloatProcessor as superclass
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the absolute scale assigned to this scale level.
    float[]
    Returns a reference to the internal (one-dimensional) data array of this scale level.
    void
    getGradientPolar(int u, int v, double[] grad)
    Calculates the gradient at the specified scale level position in polar form.
    int
    Returns the height of this scale level.
    float
    getValue(int u, int v)
    Returns the element value at the specified position of this scale level.
    int
    Returns the width of this scale level.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getWidth

      public int getWidth()
      Returns the width of this scale level.
      Returns:
      the width of this scale level
    • getHeight

      public int getHeight()
      Returns the height of this scale level.
      Returns:
      the height of this scale level
    • getData

      public float[] getData()
      Returns a reference to the internal (one-dimensional) data array of this scale level.
      Returns:
      to the internal data array
    • getAbsoluteScale

      public double getAbsoluteScale()
      Returns the absolute scale assigned to this scale level.
      Returns:
      the absolute scale
    • getValue

      public float getValue(int u, int v)
      Returns the element value at the specified position of this scale level. An exception is thrown if the position is outside the scale level's boundaries.
      Parameters:
      u - horizontal position
      v - vertical position
      Returns:
      the element value
    • getGradientPolar

      public void getGradientPolar(int u, int v, double[] grad)
      Calculates the gradient at the specified scale level position in polar form. The results (gradient magnitude and direction) are placed in the supplied 2-element array.
      Parameters:
      u - horizontal position
      v - vertical position
      grad - a 2-element array for gradient magnitude and direction
    • toString

      public String toString()
      Overrides:
      toString in class Object