Package gov.nih.mipav.model.algorithms
Class AlgorithmCircleToRectangle
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.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 Summary
Fields Modifier and Type Field Description private double[]xDOCUMENT ME!private double[]yDOCUMENT ME!-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmCircleToRectangle()AlgorithmCircleToRectangle - default constructor.AlgorithmCircleToRectangle(ModelImage destImg, ModelImage srcImg, double[] x, double[] y)AlgorithmCircleToRectangle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()finalize -voidrunAlgorithm()Starts the program.voidrunAlgorithmPrevious()Starts the program.voidrunTraditionalAlgorithm()Starts the program.private voidselfTest()private voidsqrtc(double zinr, double zini, double[] zsqr, double[] zsqi)Performs square root of complex argument.private doublezabs(double zr, double zi)zabs computes the absolute value or magnitude of a double precision complex variable zr + j*zi.private voidzdiv(double ar, double ai, double br, double bi, double[] cr, double[] ci)complex divide c = a/b.-
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, generateProgressValues, getDestImage, getElapsedTime, getMask, getMaxProgressValue, getMinProgressValue, getNumberOfThreads, getProgress, getProgressChangeListener, getProgressChangeListeners, getProgressModulus, getProgressStep, getProgressValues, getSrcImage, isCompleted, isImage25D, isMultiThreadingEnabled, isRunningInSeparateThread, isThreadStopped, linkProgressToAlgorithm, linkProgressToAlgorithm, makeProgress, notifyListeners, removeListener, removeProgressChangeListener, run, setCompleted, setImage25D, setMask, setMaxProgressValue, setMinProgressValue, setMultiThreadingEnabled, setNumberOfThreads, setProgress, setProgressModulus, setProgressStep, setProgressValues, setProgressValues, setRunningInSeparateThread, setSrcImage, setStartTime, setThreadStopped, startMethod, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
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 radiusy- array with y coordinates of circle center and point on radius
-
-
Method Detail
-
finalize
public void finalize()
finalize -- Overrides:
finalizein classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithmin classAlgorithmBase
-
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- doubleai- doublebr- doublebi- doublecr- 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- doublezi- 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()
-
-