Package gov.nih.mipav.model.algorithms
Class AlgorithmPointArea
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmPointArea
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
DOCUMENT ME!
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float[]DOCUMENT ME!private booleanDOCUMENT ME!private ModelImagesource image.private booleanif x is an even number, use the extra space on left half (otherwise right).private float[][]DOCUMENT ME!private floatDOCUMENT ME!private booleanif y is an even number, use the extra space on the top half (otherwise bottom).private booleanDOCUMENT ME!private intx value of the origin.private intnumber of pixels in x direction.private inty value of the origin.private intnumber of pixels in y direction.Fields 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
ConstructorsConstructorDescriptionAlgorithmPointArea(ModelImage srcImage, int xLoc, int yLoc, int xSpace, int ySpace, boolean leftSpace, boolean topSpace, boolean useThreshold, float threshold) Creates a new AlgorithmPointArea object. -
Method Summary
Modifier and TypeMethodDescriptionvoidDOCUMENT ME!float[]DOCUMENT ME!float[][]DOCUMENT ME!voidDOCUMENT ME!Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, finalize, 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
-
averageIntensities
private float[] averageIntensitiesDOCUMENT ME! -
doColor
private boolean doColorDOCUMENT ME! -
image
source image. -
leftSpace
private boolean leftSpaceif x is an even number, use the extra space on left half (otherwise right). -
rgbAverageIntensities
private float[][] rgbAverageIntensitiesDOCUMENT ME! -
threshold
private float thresholdDOCUMENT ME! -
topSpace
private boolean topSpaceif y is an even number, use the extra space on the top half (otherwise bottom). -
useThreshold
private boolean useThresholdDOCUMENT ME! -
xLocation
private int xLocationx value of the origin. -
xSpace
private int xSpacenumber of pixels in x direction. -
yLocation
private int yLocationy value of the origin. -
ySpace
private int ySpacenumber of pixels in y direction.
-
-
Constructor Details
-
AlgorithmPointArea
public AlgorithmPointArea(ModelImage srcImage, int xLoc, int yLoc, int xSpace, int ySpace, boolean leftSpace, boolean topSpace, boolean useThreshold, float threshold) Creates a new AlgorithmPointArea object.- Parameters:
srcImage- DOCUMENT ME!xLoc- DOCUMENT ME!yLoc- DOCUMENT ME!xSpace- DOCUMENT ME!ySpace- DOCUMENT ME!leftSpace- DOCUMENT ME!topSpace- DOCUMENT ME!useThreshold- DOCUMENT ME!threshold- DOCUMENT ME!
-
-
Method Details
-
disposeLocal
public void disposeLocal()DOCUMENT ME! -
getAverageIntensities
public float[] getAverageIntensities()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRGBAverageIntensities
public float[][] getRGBAverageIntensities()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
runAlgorithm
public void runAlgorithm()DOCUMENT ME!- Specified by:
runAlgorithmin classAlgorithmBase
-