Class LogPolarMapping1

java.lang.Object
imagingbook.common.geometry.mappings.nonlinear.LogPolarMapping1
All Implemented Interfaces:
Inversion, Mapping2D, Cloneable

public class LogPolarMapping1 extends Object implements Mapping2D, Inversion

This class implements a 2D log-polar mapping transformation. Simple version (Version 1), maps radius [0,rmax] to [0,nr]). See Sec. 21.1.6 (Eq. 21.65 - 21.70) of [1] for additional details and examples.

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

Version:
2022/11/16
  • Constructor Details

    • LogPolarMapping1

      public LogPolarMapping1(double xc, double yc, int P, int Q, double rmax)
      Constructor.
      Parameters:
      xc - x-coordinate of center point in source image
      yc - y-coordinate of center point in source image
      P - number of radial steps
      Q - number of angular steps
      rmax - maximum radius
  • Method Details

    • applyTo

      public Pnt2d applyTo(Pnt2d xy)
      Description copied from interface: Mapping2D
      Applies this mapping to a single 2D point.
      Specified by:
      applyTo in interface Mapping2D
      Parameters:
      xy - the original point
      Returns:
      the transformed point
    • getInverse

      Description copied from interface: Inversion
      Returns the inverse of this mapping.
      Specified by:
      getInverse in interface Inversion
      Returns:
      the inverse mapping