Class AlgorithmCircleToRectangle

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmCircleToRectangle
    extends AlgorithmBase

    References: 1.) Advanced Calculus For Applications Second Edition by F. B. Hildebrand, Section 10.4 Analytic Functions of a Complex Variable pages 550-554 and Section 11.4 Conformal Mapping pages 628-632, Prentice-Hall, Inc., 1976. 2.) Applied and Computational Complex Analysis Volume I by Peter Henrici, Chapter on Schwarz-Christoffel Mapping Function, pp. 411-412. 3.) 2D-Shape Analysis using Conformal Mapping by E. Sharon and D. Mumford 4.) http://mathworld.wolfram.com/LemniscateFunction.html 5.) Conformal Mapping from Zeev Nehari, Chapter VI, Mapping Properties of Special Functions, Section 3, Elliptic Functions, pp. 280-299.

    • Field Detail

      • x

        private double[] x
        DOCUMENT ME!
      • y

        private double[] y
        DOCUMENT ME!
    • Constructor Detail

      • AlgorithmCircleToRectangle

        public AlgorithmCircleToRectangle()
        AlgorithmCircleToRectangle - default constructor.
      • AlgorithmCircleToRectangle

        public AlgorithmCircleToRectangle​(ModelImage destImg,
                                          ModelImage srcImg,
                                          double[] x,
                                          double[] y)
        AlgorithmCircleToRectangle.
        Parameters:
        destImg - DOCUMENT ME!
        srcImg - DOCUMENT ME!
        x - array with x coordinates of circle center and point on radius
        y - array with y coordinates of circle center and point on radius
    • Method Detail

      • runAlgorithmPrevious

        public void runAlgorithmPrevious()
        Starts the program.
      • runTraditionalAlgorithm

        public void runTraditionalAlgorithm()
        Starts the program.
      • zdiv

        private void zdiv​(double ar,
                          double ai,
                          double br,
                          double bi,
                          double[] cr,
                          double[] ci)
        complex divide c = a/b.
        Parameters:
        ar - double
        ai - double
        br - double
        bi - double
        cr - double[]
        ci - double[]
      • zabs

        private double zabs​(double zr,
                            double zi)
        zabs computes the absolute value or magnitude of a double precision complex variable zr + j*zi.
        Parameters:
        zr - double
        zi - double
        Returns:
        double
      • sqrtc

        private void sqrtc​(double zinr,
                           double zini,
                           double[] zsqr,
                           double[] zsqi)
        Performs square root of complex argument.
        Parameters:
        zinr - DOCUMENT ME!
        zini - DOCUMENT ME!
        zsqr - DOCUMENT ME!
        zsqi - DOCUMENT ME!
      • selfTest

        private void selfTest()