Class PhasePreservingDenoising
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.filters.PhasePreservingDenoising
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class PhasePreservingDenoising extends AlgorithmBase
-
-
Field Summary
Fields Modifier and Type Field Description private double
dthetaonsigma
private double
k
private double
minwavelength
private double
mult
private int
norient
private int
nscale
Phase preserving wavelet image denoising MIT License Copyright (c) 2018 Peter Kovesi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.private double
sigmaonf
private double
softness
private ModelImage
targetImage
private boolean
useProgressBar
-
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 PhasePreservingDenoising()
PhasePreservingDenoising(ModelImage srcImg, int nscale, int norient, double mult, double minwavelength, double sigmaonf, double dthetaonsigma, double k, double softness, boolean useProgressBar)
PhasePreservingDenoising(ModelImage destImg, ModelImage srcImg, int nscale, int norient, double mult, double minwavelength, double sigmaonf, double dthetaonsigma, double k, double softness, boolean useProgressBar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private double[][]
gaussianangularfilter(double angl, double thetaSigma, double[][] sintheta, double[][] costheta)
private double[][]
ifftshift(double[][] in)
private double
loggabor(double f, double fo, double sigmaOnf)
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, 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, 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
-
nscale
private int nscale
Phase preserving wavelet image denoising MIT License Copyright (c) 2018 Peter Kovesi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## Documentation [The main documentation page](https://peterkovesi.github.io/ImagePhaseCongruency.jl/dev/index.html) [Examples](https://peterkovesi.github.io/ImagePhaseCongruency.jl/dev/examples/) [Function reference](https://peterkovesi.github.io/ImagePhaseCongruency.jl/dev/functions/) "Phase Preserving Denoising of Images" by Peter Kovesi The Australia Pattern Recognition Society Conference: DICTA'99. December, 1999. Perth WA, pp.212-217. http://www.peterkovesi.com/papers/denoise.pdf
-
norient
private int norient
-
mult
private double mult
-
minwavelength
private double minwavelength
-
sigmaonf
private double sigmaonf
-
dthetaonsigma
private double dthetaonsigma
-
k
private double k
-
softness
private double softness
-
useProgressBar
private boolean useProgressBar
-
targetImage
private ModelImage targetImage
-
-
Constructor Detail
-
PhasePreservingDenoising
public PhasePreservingDenoising()
-
PhasePreservingDenoising
public PhasePreservingDenoising(ModelImage srcImg, int nscale, int norient, double mult, double minwavelength, double sigmaonf, double dthetaonsigma, double k, double softness, boolean useProgressBar)
-
PhasePreservingDenoising
public PhasePreservingDenoising(ModelImage destImg, ModelImage srcImg, int nscale, int norient, double mult, double minwavelength, double sigmaonf, double dthetaonsigma, double k, double softness, boolean useProgressBar)
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in classAlgorithmBase
-
loggabor
private double loggabor(double f, double fo, double sigmaOnf)
-
gaussianangularfilter
private double[][] gaussianangularfilter(double angl, double thetaSigma, double[][] sintheta, double[][] costheta)
-
ifftshift
private double[][] ifftshift(double[][] in)
-
-