Go to the source code of this file.
|
bool | containsCTFBasicLabels (const MetaData &md) |
|
void | groupCTFMetaData (const MetaDataDb &imgMd, MetaDataDb &ctfMd, std::vector< MDLabel > &groupbyLabels) |
|
void | generateCTFImageWith2CTFs (const MetaData &MD1, const MetaData &MD2, int Xdim, MultidimArray< double > &imgOut) |
|
double | errorBetween2CTFs (MetaData &MD1, MetaData &MD2, size_t Xdim, double minFreq, double maxFreq) |
|
double | errorMaxFreqCTFs (MetaData &MD1, double phaseRad) |
|
double | errorMaxFreqCTFs2D (MetaData &MD1, MetaData &MD2, size_t Xdim, double phaseRad) |
|
void | generatePSDCTFImage (MultidimArray< double > &img, const MetaData &MD) |
|
std::ostream & | operator<< (std::ostream &out, const CTFDescription1D &ctf) |
|
std::ostream & | operator<< (std::ostream &out, const CTFDescription &ctf) |
|
◆ DEBUG
◆ containsCTFBasicLabels()
bool containsCTFBasicLabels |
( |
const MetaData & |
md | ) |
|
Check that a metadata contains ALL CTF_BASIC_LABELS labels
Definition at line 33 of file ctf.cpp.
const MDLabel CTF_BASIC_LABELS[]
const int CTF_BASIC_LABELS_SIZE
◆ groupCTFMetaData()
From a give images metadata, group by CTF_BASIC_LABELS and fill a ctfs metadata. Params: imgMd: input images metadata. ctfMd: the ctfs metadata that will be filled.
Raise error if neither CTF_MODEL or ALL CTF_BASIC_LABELS are found in input images metadata.
Definition at line 41 of file ctf.cpp.
51 groupbyLabels.clear();
const MDLabel CTF_ALL_LABELS[]
#define REPORT_ERROR(nerr, ErrormMsg)
bool containsCTFBasicLabels(const MetaData &md)
const int CTF_ALL_LABELS_SIZE
◆ operator<<() [1/2]
Definition at line 564 of file ctf.cpp.
569 <<
"sampling_rate= " << ctf.
Tm << std::endl
570 <<
"voltage= " << ctf.
kV << std::endl
571 <<
"defocusU= " << ctf.
Defocus << std::endl
572 <<
"spherical_aberration= " << ctf.
Cs << std::endl
573 <<
"chromatic_aberration= " << ctf.
Ca << std::endl
574 <<
"energy_loss= " << ctf.
espr << std::endl
575 <<
"lens_stability= " << ctf.
ispr << std::endl
576 <<
"convergence_cone= " << ctf.
alpha << std::endl
577 <<
"longitudinal_displace=" << ctf.
DeltaF << std::endl
578 <<
"transversal_displace= " << ctf.
DeltaR << std::endl
579 <<
"envR0= " << ctf.
envR0 << std::endl
580 <<
"envR1= " << ctf.
envR1 << std::endl
581 <<
"envR2= " << ctf.
envR2 << std::endl
582 <<
"Q0= " << ctf.
Q0 << std::endl
583 <<
"K= " << ctf.
K << std::endl
589 <<
"gaussian_K= " << ctf.
gaussian_K << std::endl
590 <<
"sigma1= " << ctf.
sigma1 << std::endl
591 <<
"Gc1= " << ctf.
Gc1 << std::endl
592 <<
"sqrt_K= " << ctf.
sqrt_K << std::endl
593 <<
"sq= " << ctf.
sq << std::endl
594 <<
"bg1= " << ctf.
bgR1 << std::endl
595 <<
"bg2= " << ctf.
bgR2 << std::endl
596 <<
"bg3= " << ctf.
bgR3 << std::endl
597 <<
"base_line= " << ctf.
base_line << std::endl
599 <<
"sigma2= " << ctf.
sigma2 << std::endl
600 <<
"Gc2= " << ctf.
Gc2 << std::endl
602 <<
"VPP_radius= " << ctf.
VPP_radius << std::endl
double gaussian_K
Gain for the gaussian term.
double DeltaF
Longitudinal mechanical displacement (ansgtrom). Typical value 100.
bool enable_CTF
Enable CTF part.
double Gc2
Second Gaussian center.
double sigma2
Second Gaussian width.
double base_line
Global base_line.
double Gc1
Gaussian center.
double gaussian_K2
Gain for the second Gaussian term.
double ispr
Objective lens stability (deltaI/I) (ppm). Typical value 1.
double Tm
Sampling rate (A/pixel)
double Cs
Spherical aberration (in milimeters). Typical value 5.6.
double DeltaR
Transversal mechanical displacement (ansgtrom). Typical value 3.
double Defocus
Defocus (in Angstroms). Negative values are underfocused.
double K
Global gain. By default, 1.
double Ca
Chromatic aberration (in milimeters). Typical value 2.
double alpha
Convergence cone semiangle (in mrad). Typical value 0.5.
double Q0
Factor for the importance of the Amplitude contrast.
double kV
Accelerating Voltage (in KiloVolts)
bool enable_CTFnoise
Enable CTFnoise part.
double sigma1
Gaussian width.
double sqrt_K
Gain for the square root term.
◆ operator<<() [2/2]
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const CTFDescription & |
ctf |
|
) |
| |
Definition at line 1310 of file ctf.cpp.
1315 <<
"sampling_rate= " << ctf.
Tm << std::endl
1316 <<
"voltage= " << ctf.
kV << std::endl
1317 <<
"defocusU= " << ctf.
DeltafU << std::endl
1318 <<
"defocusV= " << ctf.
DeltafV << std::endl
1320 <<
"spherical_aberration= " << ctf.
Cs << std::endl
1321 <<
"chromatic_aberration= " << ctf.
Ca << std::endl
1322 <<
"energy_loss= " << ctf.
espr << std::endl
1323 <<
"lens_stability= " << ctf.
ispr << std::endl
1324 <<
"convergence_cone= " << ctf.
alpha << std::endl
1325 <<
"longitudinal_displace=" << ctf.
DeltaF << std::endl
1326 <<
"transversal_displace= " << ctf.
DeltaR << std::endl
1327 <<
"envR0= " << ctf.
envR0 << std::endl
1328 <<
"envR1= " << ctf.
envR1 << std::endl
1329 <<
"envR2= " << ctf.
envR2 << std::endl
1330 <<
"Q0= " << ctf.
Q0 << std::endl
1331 <<
"K= " << ctf.
K << std::endl
1337 <<
"gaussian_K= " << ctf.
gaussian_K << std::endl
1338 <<
"sigmaU= " << ctf.
sigmaU << std::endl
1339 <<
"sigmaV= " << ctf.
sigmaV << std::endl
1340 <<
"cU= " << ctf.
cU << std::endl
1341 <<
"cV= " << ctf.
cV << std::endl
1343 <<
"sqrt_K= " << ctf.
sqrt_K << std::endl
1344 <<
"sqU= " << ctf.
sqU << std::endl
1345 <<
"sqV= " << ctf.
sqV << std::endl
1346 <<
"sqrt_angle= " << ctf.
sqrt_angle << std::endl
1347 <<
"bg1= " << ctf.
bgR1 << std::endl
1348 <<
"bg2= " << ctf.
bgR2 << std::endl
1349 <<
"bg3= " << ctf.
bgR3 << std::endl
1350 <<
"base_line= " << ctf.
base_line << std::endl
1351 <<
"gaussian_K2= " << ctf.
gaussian_K2 << std::endl
1352 <<
"sigmaU2= " << ctf.
sigmaU2 << std::endl
1353 <<
"sigmaV2= " << ctf.
sigmaV2 << std::endl
1354 <<
"cU2= " << ctf.
cU2 << std::endl
1355 <<
"cV2= " << ctf.
cV2 << std::endl
1357 <<
"phase_shift= " << ctf.
phase_shift << std::endl
1358 <<
"VPP_radius= " << ctf.
VPP_radius << std::endl
double sigmaU
Spherical aberration (in milimeters). Typical value 5.6.
double gaussian_angle2
Second Gaussian angle.
double DeltafV
Defocus in V (in Angstroms). Negative values are underfocused.
double cU2
Second Gaussian center for U.
double cU
Gaussian center for U.
double gaussian_K
Gain for the gaussian term.
double DeltaF
Longitudinal mechanical displacement (ansgtrom). Typical value 100.
double sqrt_angle
Sqrt angle.
double DeltafU
Global gain. By default, 1.
bool enable_CTF
Enable CTF part.
double azimuthal_angle
Azimuthal angle (between X and U) in degrees.
double base_line
Global base_line.
double sqU
Gain for the square root term.
double gaussian_K2
Gain for the second Gaussian term.
double ispr
Objective lens stability (deltaI/I) (ppm). Typical value 1.
double Tm
Sampling rate (A/pixel)
double Cs
Spherical aberration (in milimeters). Typical value 5.6.
double DeltaR
Transversal mechanical displacement (ansgtrom). Typical value 3.
double sigmaV
Gaussian width V.
double K
Global gain. By default, 1.
double gaussian_angle
Gaussian angle.
double Ca
Chromatic aberration (in milimeters). Typical value 2.
double alpha
Convergence cone semiangle (in mrad). Typical value 0.5.
double Q0
Factor for the importance of the Amplitude contrast.
double kV
Accelerating Voltage (in KiloVolts)
double cV2
Second Gaussian center for V.
bool enable_CTFnoise
Enable CTFnoise part.
double sqrt_K
Gain for the square root term.
double sigmaU2
Second Gaussian width U.
double sigmaV2
Second Gaussian width V.
double cV
Gaussian center for V.