Class SpeckleNoiseImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.SpeckleNoiseImageFilter
Alter an image with speckle (multiplicative) noise.
The speckle noise follows a gamma distribution of mean 1 and standard
deviation provided by the user. The noise is proportional to the pixel
intensity.
It can be modeled as:
$ I = I_0 \\ast G $
where $ G $ is a is a gamma distributed random variable of mean 1 and variance
proportional to the noise level:
$ G \\sim \\Gamma(\\frac{1}{\\sigma^2}, \\sigma^2) $
Gaetan Lehmann
This code was contributed in the Insight Journal paper "Noise
Simulation". https://doi.org/10.54294/vh6vbw
See:
itk::simple::SpeckleNoise for the procedural interface
itk::SpeckleNoiseImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkSpeckleNoiseImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::SpeckleNoiseImageFilter::SpeckleNoiseImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedSpeckleNoiseImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::SpeckleNoiseImageFilter::~SpeckleNoiseImageFilter() DestructorImage itk::simple::SpeckleNoiseImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected voidfinalize()protected static longgetName()std::string itk::simple::SpeckleNoiseImageFilter::GetName() const Name of this classlonggetSeed()uint32_t itk::simple::SpeckleNoiseImageFilter::GetSeed() constdoubledouble itk::simple::SpeckleNoiseImageFilter::GetStandardDeviation() const Set/Get the standard deviation of the gamma distribution.voidsetSeed(long Seed) Self& itk::simple::SpeckleNoiseImageFilter::SetSeed(uint32_t Seed)voidsetStandardDeviation(double StandardDeviation) Self& itk::simple::SpeckleNoiseImageFilter::SetStandardDeviation(double StandardDeviation) Set/Get the standard deviation of the gamma distribution.protected static longtoString()std::string itk::simple::SpeckleNoiseImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObject
abort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
-
Constructor Details
-
SpeckleNoiseImageFilter
protected SpeckleNoiseImageFilter(long cPtr, boolean cMemoryOwn) -
SpeckleNoiseImageFilter
public SpeckleNoiseImageFilter()itk::simple::SpeckleNoiseImageFilter::SpeckleNoiseImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::SpeckleNoiseImageFilter::~SpeckleNoiseImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setStandardDeviation
public void setStandardDeviation(double StandardDeviation) Self& itk::simple::SpeckleNoiseImageFilter::SetStandardDeviation(double StandardDeviation) Set/Get the standard deviation of the gamma distribution. Defaults to 1.0. -
getStandardDeviation
public double getStandardDeviation()double itk::simple::SpeckleNoiseImageFilter::GetStandardDeviation() const Set/Get the standard deviation of the gamma distribution. Defaults to 1.0. -
setSeed
public void setSeed(long Seed) Self& itk::simple::SpeckleNoiseImageFilter::SetSeed(uint32_t Seed) -
getSeed
public long getSeed()uint32_t itk::simple::SpeckleNoiseImageFilter::GetSeed() const -
getName
std::string itk::simple::SpeckleNoiseImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::SpeckleNoiseImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-