java.lang.Object
imagingbook.common.sift.scalespace.ScaleLevel
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 TypeMethodDescriptiondouble
Returns the absolute scale assigned to this scale level.float[]
getData()
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
getWidth()
Returns the width of this scale level.toString()
-
Method Details
-
getWidth
Returns the width of this scale level.- Returns:
- the width of this scale level
-
getHeight
Returns the height of this scale level.- Returns:
- the height of this scale level
-
getData
Returns a reference to the internal (one-dimensional) data array of this scale level.- Returns:
- to the internal data array
-
getAbsoluteScale
Returns the absolute scale assigned to this scale level.- Returns:
- the absolute scale
-
getValue
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 positionv
- vertical position- Returns:
- the element value
-
getGradientPolar
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 positionv
- vertical positiongrad
- a 2-element array for gradient magnitude and direction
-
toString
-