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:
ActionListener,WindowListener,Runnable,EventListener
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmCircleToRectangle - default constructor.AlgorithmCircleToRectangle(ModelImage destImg, ModelImage srcImg, double[] x, double[] y) AlgorithmCircleToRectangle. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()finalize -voidStarts the program.voidStarts the program.voidStarts 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, windowOpenedMethods 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
x
private double[] xDOCUMENT ME! -
y
private double[] yDOCUMENT ME!
-
-
Constructor Details
-
AlgorithmCircleToRectangle
public AlgorithmCircleToRectangle()AlgorithmCircleToRectangle - default constructor. -
AlgorithmCircleToRectangle
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 Details
-
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()
-