Estimate noise level in data stored in a TypedArray. More...
#include <cmtkTypedArrayNoiseEstimatorBrummer.h>
Public Types | |
typedef TypedArrayNoiseEstimatorBrummer | Self |
This class. | |
typedef TypedArrayNoiseEstimatorNaiveGaussian | Superclass |
Base class. | |
Public Member Functions | |
TypedArrayNoiseEstimatorBrummer (const TypedArray *data, const size_t histogramBins=255) | |
Constructor. | |
Protected Member Functions | |
TypedArrayNoiseEstimatorBrummer () | |
Default constructor; should not be invoked by user code. | |
Static Protected Member Functions | |
static double | SijbersBiasHat (const Histogram< unsigned int >::SmartPtr histogram, const double sigmaHat, const int numBinsToUse) |
Compute bias in an ML noise estimate. | |
static double | SijbersLogLikelihood (const Histogram< unsigned int >::SmartPtr histogram, const double sigma, const int numBinsToUse) |
Compute the log-likelihood for the ML noise estimate. | |
static double | SijbersVarHat (const Histogram< unsigned int >::SmartPtr histogram, const double sigmaHat, const int numBinsToUse) |
Compute variance of an ML noise estimate. | |
static double | EstimateNumBinsToUse (const TypedArray *data, const Histogram< unsigned int >::SmartPtr histogram, const double sigmaHat) |
Figure out how many bins to use in ML noise estimate. |
Estimate noise level in data stored in a TypedArray.
Estimate Rician noise variance using Brummer's method.
Definition at line 45 of file cmtkTypedArrayNoiseEstimatorBrummer.h.
This class.
Reimplemented from cmtk::TypedArrayNoiseEstimatorNaiveGaussian.
Reimplemented in cmtk::TypedArrayNoiseEstimatorMaximumLikelihood.
Definition at line 52 of file cmtkTypedArrayNoiseEstimatorBrummer.h.
Base class.
Reimplemented in cmtk::TypedArrayNoiseEstimatorMaximumLikelihood.
Definition at line 55 of file cmtkTypedArrayNoiseEstimatorBrummer.h.
cmtk::TypedArrayNoiseEstimatorBrummer::TypedArrayNoiseEstimatorBrummer | ( | const TypedArray * | data, |
const size_t | histogramBins = 255 |
||
) |
Constructor.
Definition at line 41 of file cmtkTypedArrayNoiseEstimatorBrummer.cxx.
References cmtk::HistogramBase::BinToValue(), cmtk::TypedArray::GetHistogram(), M_PI, and cmtk::Histogram< T >::SampleCount().
cmtk::TypedArrayNoiseEstimatorBrummer::TypedArrayNoiseEstimatorBrummer | ( | ) | [inline, protected] |
Default constructor; should not be invoked by user code.
Definition at line 62 of file cmtkTypedArrayNoiseEstimatorBrummer.h.
double cmtk::TypedArrayNoiseEstimatorBrummer::EstimateNumBinsToUse | ( | const TypedArray * | data, |
const Histogram< unsigned int >::SmartPtr | histogram, | ||
const double | sigmaHat | ||
) | [static, protected] |
Figure out how many bins to use in ML noise estimate.
Section 2.3.1 from Sijbers et al, 2007
Definition at line 289 of file cmtkTypedArrayNoiseEstimatorBrummer.cxx.
References cmtk::Histogram< T >::GetNumBins().
double cmtk::TypedArrayNoiseEstimatorBrummer::SijbersBiasHat | ( | const Histogram< unsigned int >::SmartPtr | histogram, |
const double | sigmaHat, | ||
const int | numBinsToUse | ||
) | [static, protected] |
Compute bias in an ML noise estimate.
Eq. 26 from Sijbers et al, 2007
Definition at line 147 of file cmtkTypedArrayNoiseEstimatorBrummer.cxx.
References cmtk::HistogramBase::BinToValue(), and cmtk::Histogram< T >::GetNumBins().
double cmtk::TypedArrayNoiseEstimatorBrummer::SijbersLogLikelihood | ( | const Histogram< unsigned int >::SmartPtr | histogram, |
const double | sigma, | ||
const int | numBinsToUse | ||
) | [static, protected] |
Compute the log-likelihood for the ML noise estimate.
Eq. 26 from Sijbers et al, 2007
Definition at line 237 of file cmtkTypedArrayNoiseEstimatorBrummer.cxx.
References cmtk::HistogramBase::BinToValue().
double cmtk::TypedArrayNoiseEstimatorBrummer::SijbersVarHat | ( | const Histogram< unsigned int >::SmartPtr | histogram, |
const double | sigmaHat, | ||
const int | numBinsToUse | ||
) | [static, protected] |
Compute variance of an ML noise estimate.
Eq. 21 from Sijbers et al, 2007
Definition at line 266 of file cmtkTypedArrayNoiseEstimatorBrummer.cxx.