Xmipp
v3.23.11-Nereus
|
Classes | |
class | ProgNormalize |
Image normalization procedures | |
This functions implement the normalization of a single image. They should be called with all images in the corresponding SelFile. In the following documentation m(x) is the mean of x, v(x) is the variance, bg(x) is its background. The original image is X and is supposed to be related to each single projection by I=a*(X+n)+b where a and b are different for every projection. Noise is assumed to follow a gaussian distribution N(0,sqrt(v(n))) In general the background mask is used only to compute statistics, while the mask is the one which is really applied to the image. Supply NULL if you don't want any mask to be applied When b is used it is measured as the mean in the background, while a*sqrt(v(n)) is the standard deviation in the same area. | |
void | normalize_OldXmipp (MultidimArray< double > &I) |
void | normalize_Near_OldXmipp (MultidimArray< double > &I, const MultidimArray< int > &bg_mask) |
void | normalize_OldXmipp_decomposition (MultidimArray< double > &I, const MultidimArray< int > &bg_mask, const MultidimArray< double > *mask=nullptr) |
void | normalize_tomography (MultidimArray< double > &I, double tilt, double &mui, double &sigmai, bool tiltMask, bool tomography0=false, double mu0=0, double sigma0=1) |
void | normalize_Michael (MultidimArray< double > &I, const MultidimArray< int > &bg_mask) |
void | normalize_NewXmipp (MultidimArray< double > &I, const MultidimArray< int > &bg_mask) |
void | normalize_NewXmipp2 (MultidimArray< double > &I, const MultidimArray< int > &bg_mask) |
void | normalize_Robust (MultidimArray< double > &I, const MultidimArray< int > &bg_mask, bool clip) |
void | normalize_ramp (MultidimArray< double > &I, MultidimArray< int > *bg_mask=nullptr) |
void | normalize_remove_neighbours (MultidimArray< double > &I, const MultidimArray< int > &bg_mask, const double &threshold) |
void normalize_Michael | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask | ||
) |
Michael's normalization.
Formula:
Properties:
Comments: it's not bad but positivity constraints cannot be imposed and the statistical properties are not so good.
Definition at line 230 of file normalize.cpp.
void normalize_Near_OldXmipp | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask | ||
) |
Near_OldXmipp normalization.
Formula:
Properties:
Comments: it's not bad but positivity constraints cannot be imposed
Definition at line 43 of file normalize.cpp.
void normalize_NewXmipp | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask | ||
) |
NewXmipp's normalization.
Formula:
Properties:
Comments: In general, we cannot assure that mass projects into positive numbers, so the "denoising" capability directly on the images is disabled. However, a positivity constraint can be applied on the 3D volume.
Definition at line 255 of file normalize.cpp.
void normalize_NewXmipp2 | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask | ||
) |
NewXmipp 2's normalization.
Formula:
Properties:
Comments: In general, we cannot assure that mass projects into positive numbers, so the "denoising" capability directly on the images is disabled. However, a positivity constraint can be applied on the 3D volume.
Definition at line 315 of file normalize.cpp.
void normalize_OldXmipp | ( | MultidimArray< double > & | I | ) |
OldXmipp normalization.
Formula:
Properties:
Comments: it's not bad but positivity constraints cannot be imposed
Definition at line 33 of file normalize.cpp.
void normalize_OldXmipp_decomposition | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask, | ||
const MultidimArray< double > * | mask = nullptr |
||
) |
OldXmipp decomposition.
Formula:
Properties:
Comments: it's not bad but positivity constraints cannot be imposed. If no mask is applied, then this formula is a beautiful decomposition of the OldXmipp method in two steps.
Definition at line 60 of file normalize.cpp.
void normalize_ramp | ( | MultidimArray< double > & | I, |
MultidimArray< int > * | bg_mask = nullptr |
||
) |
Removal of inclined background densities (ramps).
fitting of a least squares plane through the pixels in the bg_mask, then subtraction of the plane, and division by the standard deviation of the pixels in the bg_mask
Definition at line 333 of file normalize.cpp.
void normalize_remove_neighbours | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask, | ||
const double & | threshold | ||
) |
Removal of neighbouring particles.
....
Definition at line 427 of file normalize.cpp.
void normalize_Robust | ( | MultidimArray< double > & | I, |
const MultidimArray< int > & | bg_mask, | ||
bool | clip | ||
) |
Definition at line 265 of file normalize.cpp.
void normalize_tomography | ( | MultidimArray< double > & | I, |
double | tilt, | ||
double & | mui, | ||
double & | sigmai, | ||
bool | tiltMask, | ||
bool | tomography0 = false , |
||
double | mu0 = 0 , |
||
double | sigma0 = 1 |
||
) |
Tomography normalization.
This is similar to the OldXmipp normalization, but the mean and standard deviation of the images are computed only within a region determined by the tilt angle. Formula for tomography:
Formula for tomography0:
The estimated mean of the image and the local variance are returned in sigmai and mui.
Definition at line 77 of file normalize.cpp.