Package gov.nih.mipav.model.algorithms
Class AlgorithmMSER
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmMSER
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
- Author:
- Andrea Vedaldi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classExtremal regions (ER) are extracted from the region forest.private classprivate classExtremal regions and maximally stable extremal regions are instances of image regions.private classNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate short[]private doubleprivate int[]private static final intprivate doubleprivate doubleprivate doubleprivate doubleprivate intprivate intprivate static final intprivate static final intprivate intprivate static final intprivate static final intFields 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
ConstructorsConstructorDescriptionAlgorithmMSER(ModelImage srcImage, double delta, double max_area, double min_area, double max_variation, double min_diversity, boolean bright_on_dark, boolean dark_on_bright, int outputVOIType) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadv(int ndims, int[] dims, int[] subs) Advance N-dimensional subscriptprivate intclimb(AlgorithmMSER.VlMserReg[] r, int idx) Climb the region forest to reach a root The function climbs the regions' forest r[] starting from the node idx to the corresponding root.voidStart algorithm.private voidDelete MSER filter This function releases the MSER filter and all its resourcesprivate voidprivate AlgorithmMSER.VlMserFiltvl_mser_new(int ndims, int[] dims) private voidvl_mser_process(AlgorithmMSER.VlMserFilt f, short[] im) 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
-
VL_MSER_PIX_MAXVAL
private static final int VL_MSER_PIX_MAXVAL- See Also:
-
VL_MSER_VOID_NODE
private static final int VL_MSER_VOID_NODE- See Also:
-
POINTS_ONLY
private static final int POINTS_ONLY- See Also:
-
ELLIPSES_ONLY
private static final int ELLIPSES_ONLY- See Also:
-
POINTS_AND_ELLIPSES
private static final int POINTS_AND_ELLIPSES- See Also:
-
delta
private double delta -
max_area
private double max_area -
min_area
private double min_area -
max_variation
private double max_variation -
min_diversity
private double min_diversity -
bright_on_dark
private boolean bright_on_dark -
dark_on_bright
private boolean dark_on_bright -
outputVOIType
private int outputVOIType -
ndims
private int ndims -
dims
private int[] dims -
data
private short[] data -
sliceSize
private int sliceSize
-
-
Constructor Details
-
AlgorithmMSER
public AlgorithmMSER(ModelImage srcImage, double delta, double max_area, double min_area, double max_variation, double min_diversity, boolean bright_on_dark, boolean dark_on_bright, int outputVOIType)
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()Start algorithm.- Specified by:
runAlgorithmin classAlgorithmBase
-
vl_mser_ell_fit
-
vl_mser_delete
Delete MSER filter This function releases the MSER filter and all its resources- Parameters:
f- MSER filter to be deleted
-
adv
private void adv(int ndims, int[] dims, int[] subs) Advance N-dimensional subscript- Parameters:
ndims-dims-subs- subscript to advance
-
vl_mser_process
-
climb
Climb the region forest to reach a root The function climbs the regions' forest r[] starting from the node idx to the corresponding root. To speed-up the operation, the function uses the VlMserReg::shortcut field to quickly jump to the root. After the root is reached, all the used shortcuts are updated.- Parameters:
r- regions' forestidx- starting node- Returns:
- index of the reached root.
-
vl_mser_new
-