Package gov.nih.mipav.model.algorithms
Class AlgorithmContrastEnhancementUsingExposureFusion
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmContrastEnhancementUsingExposureFusion
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doublefinal intfinal intfinal intfinal intfinal intfinal intprivate doubleprivate doubleFields 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
ConstructorsConstructorDescriptionAlgorithmContrastEnhancementUsingExposureFusion(ModelImage destImg, ModelImage srcImg, double mu, double k, double a, double b) -
Method Summary
Modifier and TypeMethodDescriptionprivate double[][]applyK(double[][] I, double k, double a, double b) private double[][][]applyKColor(double[][][] I, double k, double a, double b) private voidcomputeTextureWeights(double[][] W_h, double[][] W_v, double[][] fin, int sigma, double sharpness) double[][]copyMakeBorder(double[][] src, int top, int bottom, int left, int right, int borderType, double borderValue) private double[][]filter2Same(double[][] img, double[][] win) private doublelog2(double input) private double[][]maxEntropyEnhance(ModelImage IImage, boolean[][] isBad) private double[][][]maxEntropyEnhanceColor(ModelImage IImage, boolean[][] isBad) voidActually runs the algorithm.private double[][]solveLinearEquation(double[][] IN, double[][] wx, double[][] wy, double lambda) private double[][]tsmooth(double[][] I, double lambda, int sigma, double sharpness) 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
-
mu
private double mu -
k
private double k -
a
private double a -
b
private double b -
BORDER_CONSTANT
public final int BORDER_CONSTANT- See Also:
-
BORDER_REPLICATE
public final int BORDER_REPLICATE- See Also:
-
BORDER_REFLECT
public final int BORDER_REFLECT- See Also:
-
BORDER_WRAP
public final int BORDER_WRAP- See Also:
-
BORDER_REFLECT_101
public final int BORDER_REFLECT_101- See Also:
-
BORDER_DEFAULT
public final int BORDER_DEFAULT- See Also:
-
-
Constructor Details
-
AlgorithmContrastEnhancementUsingExposureFusion
public AlgorithmContrastEnhancementUsingExposureFusion() -
AlgorithmContrastEnhancementUsingExposureFusion
public AlgorithmContrastEnhancementUsingExposureFusion(ModelImage destImg, ModelImage srcImg, double mu, double k, double a, double b)
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()Description copied from class:AlgorithmBaseActually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithmin classAlgorithmBase
-
maxEntropyEnhance
-
maxEntropyEnhanceColor
-
applyK
private double[][] applyK(double[][] I, double k, double a, double b) -
applyKColor
private double[][][] applyKColor(double[][][] I, double k, double a, double b) -
log2
private double log2(double input) -
tsmooth
private double[][] tsmooth(double[][] I, double lambda, int sigma, double sharpness) -
computeTextureWeights
private void computeTextureWeights(double[][] W_h, double[][] W_v, double[][] fin, int sigma, double sharpness) -
copyMakeBorder
public double[][] copyMakeBorder(double[][] src, int top, int bottom, int left, int right, int borderType, double borderValue) -
filter2Same
private double[][] filter2Same(double[][] img, double[][] win) -
solveLinearEquation
private double[][] solveLinearEquation(double[][] IN, double[][] wx, double[][] wy, double lambda)
-