Package gov.nih.mipav.model.algorithms
Class AlgorithmScaleSaliency
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmScaleSaliency
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmScaleSaliency extends AlgorithmBase
Original source code in C and MATLAB is Copyright 1998-2004 by Timor Kadir Version 1.5 Kadir/Brady Feature detector (Scale Saliency) Code For non-commercial use only Ported by to Java by William Gandler References: 1.) Saliency, Scale, and Image Description Timor Kadir and Michael Brady. International Journal of Computer Vision. 45 (2):83-105, November 2001. 2.) Scale, Saliency, and Scene Description Timor Kadir Department of Engineering Science Robotics Research Group, University of Oxford, Trinity Term, 2002. 3.) An affine invariant salient region detector Timor Kadir, Andrew Zisserman, and Michael Brady, European Conference on Computer Vision 2004. Pages 228 - 241.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
AlgorithmScaleSaliency.sixItems
private class
AlgorithmScaleSaliency.sixItemsComparator
-
Field Summary
Fields Modifier and Type Field Description private static int
ANTI_ALIASED_SAMPLING_MODE
private boolean
fastplog
private int
mode
private int
nbins
private static int
NORMAL_MODE
private static int
PARZEN_WINDOW_MODE
private double[]
plogpArray
private static int
plogpres
private double
sigma
private int
sliceSize
private int
startScale
private int
stopScale
private double
wt
private int
xDim
private int
yDim
private double
yt
-
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 AlgorithmScaleSaliency()
AlgorithmScaleSaliency - default constructor.AlgorithmScaleSaliency(ModelImage srcImg, int startScale, int stopScale, int mode, int nbins, double sigma, double wt, double yt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Vector<AlgorithmScaleSaliency.sixItems>
calcSalScale1D(short[] imageBuffer)
private java.util.Vector<AlgorithmScaleSaliency.sixItems>
calcSalScale1DAA(short[] imageBuffer)
private java.util.Vector<AlgorithmScaleSaliency.sixItems>
calcSalScale1DParzen(short[] imageBuffer)
private java.util.Vector<AlgorithmScaleSaliency.sixItems>
calcSalScale2D(short[] imageBuffer, short[] imageBuffer2)
private java.util.Vector<AlgorithmScaleSaliency.sixItems>
calcSalScale3D(short[] imageBuffer, short[] imageBuffer2, short[] imageBuffer3)
void
finalize()
finalize -private java.util.Vector<AlgorithmScaleSaliency.sixItems>
greedyCluster(java.util.Vector<AlgorithmScaleSaliency.sixItems> Y)
private double
plogp(double p)
void
runAlgorithm()
Starts the program.-
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
-
-
-
-
Field Detail
-
NORMAL_MODE
private static final int NORMAL_MODE
- See Also:
- Constant Field Values
-
PARZEN_WINDOW_MODE
private static final int PARZEN_WINDOW_MODE
- See Also:
- Constant Field Values
-
ANTI_ALIASED_SAMPLING_MODE
private static final int ANTI_ALIASED_SAMPLING_MODE
- See Also:
- Constant Field Values
-
mode
private int mode
-
startScale
private int startScale
-
stopScale
private int stopScale
-
nbins
private int nbins
-
sigma
private double sigma
-
wt
private double wt
-
yt
private double yt
-
fastplog
private boolean fastplog
-
plogpres
private static final int plogpres
- See Also:
- Constant Field Values
-
plogpArray
private double[] plogpArray
-
xDim
private int xDim
-
yDim
private int yDim
-
sliceSize
private int sliceSize
-
-
Constructor Detail
-
AlgorithmScaleSaliency
public AlgorithmScaleSaliency()
AlgorithmScaleSaliency - default constructor.
-
AlgorithmScaleSaliency
public AlgorithmScaleSaliency(ModelImage srcImg, int startScale, int stopScale, int mode, int nbins, double sigma, double wt, double yt)
- Parameters:
srcImg
- Source imagestartScale
-stopScale
-mode
-nbins
- Number of bins (has 256 for Parzen window PDF estimation)sigma
- for Parzen windowwt
- Threshold on inter-scale saliency valuesyt
- Fraction of saliency maximum value used as threshold
-
-
Method Detail
-
finalize
public void finalize()
finalize -- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in classAlgorithmBase
-
calcSalScale1D
private java.util.Vector<AlgorithmScaleSaliency.sixItems> calcSalScale1D(short[] imageBuffer)
-
calcSalScale1DAA
private java.util.Vector<AlgorithmScaleSaliency.sixItems> calcSalScale1DAA(short[] imageBuffer)
-
calcSalScale1DParzen
private java.util.Vector<AlgorithmScaleSaliency.sixItems> calcSalScale1DParzen(short[] imageBuffer)
-
calcSalScale2D
private java.util.Vector<AlgorithmScaleSaliency.sixItems> calcSalScale2D(short[] imageBuffer, short[] imageBuffer2)
-
calcSalScale3D
private java.util.Vector<AlgorithmScaleSaliency.sixItems> calcSalScale3D(short[] imageBuffer, short[] imageBuffer2, short[] imageBuffer3)
-
greedyCluster
private java.util.Vector<AlgorithmScaleSaliency.sixItems> greedyCluster(java.util.Vector<AlgorithmScaleSaliency.sixItems> Y)
-
plogp
private double plogp(double p)
-
-