Xmipp
v3.23.11-Nereus
|
#include <ctf_estimate_from_psd.h>
Public Member Functions | |
ProgCTFEstimateFromPSD () | |
ProgCTFEstimateFromPSD (const ProgCTFEstimateFromPSDFast *copy) | |
void | readBasicParams (XmippProgram *program) |
Read parameters. More... | |
void | readParams () |
void | defineParams () |
Define Parameters. More... | |
void | produceSideInfo () |
Produce side information. More... | |
void | generate_model_halfplane (int Ydim, int Xdim, MultidimArray< double > &model) |
void | generate_model_quadrant (int Ydim, int Xdim, MultidimArray< double > &model) |
void | run () |
void | assignCTFfromParameters (double *p, CTFDescription &ctfmodel, int ia, int l, int modelSimplification) |
void | assignParametersFromCTF (const CTFDescription &ctfmodel, double *p, int ia, int l, int modelSimplification) |
void | center_optimization_focus (bool adjust_freq, bool adjust_th, double margin) |
void | generateModelSoFar (Image< double > &I, bool apply_log) |
void | compute_central_region (double &w1, double &w2, double ang) |
void | saveIntermediateResults (const FileName &fn_root, bool generate_profiles) |
double | CTF_fitness_object (double *p) |
void | estimate_background_sqrt_parameters () |
void | estimate_background_gauss_parameters () |
void | estimate_background_gauss_parameters2 () |
void | estimate_envelope_parameters () |
void | showFirstDefoci () |
void | estimate_defoci () |
void | estimate_defoci_Zernike (const MultidimArray< double > &psdToModelFullSize, double min_freq, double max_freq, double Tm, double kV, double lambdaPhase, int sizeWindowPhase, double &defocusU, double &defocusV, double &ellipseAngle, int verbose) |
void | estimate_defoci_Zernike () |
Public Member Functions inherited from ProgCTFBasicParams | |
ProgCTFBasicParams () | |
void | readParams () |
Read parameters. More... | |
void | readBasicParams (XmippProgram *program) |
Read parameters. More... | |
void | show () |
Show parameters. More... | |
void | defineParams () |
Define Parameters. More... | |
void | produceSideInfo () |
Produce side information. More... | |
void | generate_model_halfplane (int Ydim, int Xdim, MultidimArray< double > &model) |
void | generate_model_quadrant (int Ydim, int Xdim, MultidimArray< double > &model) |
Public Member Functions inherited from XmippProgram | |
const char * | getParam (const char *param, int arg=0) |
const char * | getParam (const char *param, const char *subparam, int arg=0) |
int | getIntParam (const char *param, int arg=0) |
int | getIntParam (const char *param, const char *subparam, int arg=0) |
double | getDoubleParam (const char *param, int arg=0) |
double | getDoubleParam (const char *param, const char *subparam, int arg=0) |
float | getFloatParam (const char *param, int arg=0) |
float | getFloatParam (const char *param, const char *subparam, int arg=0) |
void | getListParam (const char *param, StringVector &list) |
int | getCountParam (const char *param) |
bool | checkParam (const char *param) |
bool | existsParam (const char *param) |
void | addParamsLine (const String &line) |
void | addParamsLine (const char *line) |
ParamDef * | getParamDef (const char *param) const |
virtual void | quit (int exit_code=0) const |
virtual int | tryRun () |
void | initProgress (size_t total, size_t stepBin=60) |
void | setProgress (size_t value=0) |
void | endProgress () |
void | processDefaultComment (const char *param, const char *left) |
void | setDefaultComment (const char *param, const char *comment) |
virtual void | initComments () |
void | setProgramName (const char *name) |
void | addUsageLine (const char *line, bool verbatim=false) |
void | clearUsage () |
void | addExampleLine (const char *example, bool verbatim=true) |
void | addSeeAlsoLine (const char *seeAlso) |
void | addKeywords (const char *keywords) |
const char * | name () const |
virtual void | usage (int verb=0) const |
virtual void | usage (const String ¶m, int verb=2) |
int | version () const |
virtual void | show () const |
virtual void | read (int argc, const char **argv, bool reportErrors=true) |
virtual void | read (int argc, char **argv, bool reportErrors=true) |
void | read (const String &argumentsLine) |
XmippProgram () | |
XmippProgram (int argc, const char **argv) | |
virtual | ~XmippProgram () |
Static Public Member Functions | |
static void | defineBasicParams (XmippProgram *program) |
Define basic parameters. More... | |
Static Public Member Functions inherited from ProgCTFBasicParams | |
static void | defineBasicParams (XmippProgram *program) |
Define basic parameters. More... | |
Public Attributes | |
CTFDescription | initial_ctfmodel |
CTF model. More... | |
CTFDescription | current_ctfmodel |
CTFDescription | ctfmodel_defoci |
Public Attributes inherited from ProgCTFBasicParams | |
FileName | fn_psd |
CTF filename. More... | |
double | downsampleFactor |
Downsample performed. More... | |
Image< double > | ctftomodel |
CTF amplitude to model. More... | |
Image< double > | enhanced_ctftomodel |
CTF amplitude to model. More... | |
Image< double > | enhanced_ctftomodel_fullsize |
CTF amplitude to model. More... | |
bool | show_optimization |
Show convergence values. More... | |
bool | selfEstimation |
int | ctfmodelSize |
X dimension of particle projections (-1=the same as the psd) More... | |
bool | bootstrap |
Bootstrap estimation. More... | |
bool | refineAmplitudeContrast |
Refine amplitude contrast. More... | |
bool | fastDefocusEstimate |
Fast defocus estimate. More... | |
bool | noDefocusEstimate |
No defocus estimate. More... | |
double | lambdaPhase |
Regularization factor for the phase direction and unwrapping estimates (used in Zernike estimate) More... | |
int | sizeWindowPhase |
Size of the average window used during phase direction and unwrapping estimates (used in Zernike estimate) More... | |
double | min_freq |
Minimum frequency to adjust. More... | |
double | max_freq |
Maximum frequency to adjust. More... | |
double | Tm |
Sampling rate. More... | |
double | defocus_range |
Defocus range. More... | |
double | f1 |
Enhancement filter low freq. More... | |
double | f2 |
Enhancement filter high freq. More... | |
double | enhanced_weight |
Weight of the enhanced image. More... | |
Matrix1D< double > | adjust |
Set of parameters for the complete adjustment of the CTF. More... | |
int | modelSimplification |
Model simplification. More... | |
MultidimArray< double > | x_contfreq |
Frequencies in axes. More... | |
MultidimArray< double > | y_contfreq |
MultidimArray< double > | w_contfreq |
MultidimArray< double > | x_digfreq |
MultidimArray< double > | y_digfreq |
MultidimArray< double > | w_digfreq |
MultidimArray< double > | psd_exp_radial |
PSD data. More... | |
MultidimArray< double > | psd_exp_enhanced_radial |
MultidimArray< double > | psd_exp_enhanced_radial_2 |
MultidimArray< double > | psd_exp_enhanced_radial_derivative |
MultidimArray< double > | psd_theo_radial_derivative |
MultidimArray< double > | psd_exp_radial_derivative |
MultidimArray< double > | psd_theo_radial |
MultidimArray< double > | w_digfreq_r_iN |
MultidimArray< double > | w_digfreq_r |
MultidimArray< std::complex< double > > | psd_fft |
std::vector< double > | amplitud |
MultidimArray< double > | mask |
Masks. More... | |
MultidimArray< double > | mask_between_zeroes |
MultidimArray< double > | w_count |
double | value_th |
double | min_freq_psd |
double | max_freq_psd |
double | max_gauss_freq |
int | show_inf |
int | action |
double | corr13 |
bool | penalize |
int | evaluation_reduction |
double | heavy_penalization |
double | current_penalty |
MultidimArray< double > * | f |
Matrix1D< double > * | adjust_params |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Additional Inherited Members | |
Static Public Attributes inherited from ProgCTFBasicParams | |
static constexpr double | penalty = 32.0 |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Attributes inherited from XmippProgram | |
int | errorCode |
ProgramDef * | progDef |
Program definition and arguments parser. More... | |
std::map< String, CommentList > | defaultComments |
int | argc |
Original command line arguments. More... | |
const char ** | argv |
Adjust CTF parameters.
Definition at line 39 of file ctf_estimate_from_psd.h.
|
inline |
Definition at line 46 of file ctf_estimate_from_psd.h.
ProgCTFEstimateFromPSD::ProgCTFEstimateFromPSD | ( | const ProgCTFEstimateFromPSDFast * | copy | ) |
PSD data
Masks
Definition at line 2484 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::assignCTFfromParameters | ( | double * | p, |
CTFDescription & | ctfmodel, | ||
int | ia, | ||
int | l, | ||
int | modelSimplification | ||
) |
Definition at line 81 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::assignParametersFromCTF | ( | const CTFDescription & | ctfmodel, |
double * | p, | ||
int | ia, | ||
int | l, | ||
int | modelSimplification | ||
) |
Definition at line 176 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::center_optimization_focus | ( | bool | adjust_freq, |
bool | adjust_th, | ||
double | margin = 1 |
||
) |
Definition at line 1027 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::compute_central_region | ( | double & | w1, |
double & | w2, | ||
double | ang | ||
) |
Definition at line 986 of file ctf_estimate_from_psd.cpp.
double ProgCTFEstimateFromPSD::CTF_fitness_object | ( | double * | p | ) |
CTF fitness
Definition at line 601 of file ctf_estimate_from_psd.cpp.
|
static |
Define basic parameters.
Definition at line 289 of file ctf_estimate_from_psd.cpp.
|
virtual |
Define Parameters.
Reimplemented from XmippProgram.
Definition at line 296 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_background_gauss_parameters | ( | ) |
Definition at line 1184 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_background_gauss_parameters2 | ( | ) |
Definition at line 1379 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_background_sqrt_parameters | ( | ) |
Definition at line 1072 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_defoci | ( | ) |
Definition at line 1681 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_defoci_Zernike | ( | const MultidimArray< double > & | psdToModelFullSize, |
double | min_freq, | ||
double | max_freq, | ||
double | Tm, | ||
double | kV, | ||
double | lambdaPhase, | ||
int | sizeWindowPhase, | ||
double & | defocusU, | ||
double & | defocusV, | ||
double & | ellipseAngle, | ||
int | verbose | ||
) |
Definition at line 1937 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_defoci_Zernike | ( | ) |
Definition at line 2184 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::estimate_envelope_parameters | ( | ) |
Definition at line 1576 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::generate_model_halfplane | ( | int | Ydim, |
int | Xdim, | ||
MultidimArray< double > & | model | ||
) |
Generate half-plane model at a given size. It is assumed that ROUT_Adjust_CTF has been already run
Definition at line 536 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::generate_model_quadrant | ( | int | Ydim, |
int | Xdim, | ||
MultidimArray< double > & | model | ||
) |
Generate quadrant model at a given size. It is assumed that ROUT_Adjust_CTF has been already run
Definition at line 472 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::generateModelSoFar | ( | Image< double > & | I, |
bool | apply_log = false |
||
) |
Definition at line 322 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::produceSideInfo | ( | ) |
Produce side information.
Definition at line 303 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::readBasicParams | ( | XmippProgram * | program | ) |
Read parameters.
Definition at line 270 of file ctf_estimate_from_psd.cpp.
|
virtual |
Function in which each program will read parameters that it need. If some error occurs the usage will be printed out.
Reimplemented from XmippProgram.
Definition at line 282 of file ctf_estimate_from_psd.cpp.
|
virtual |
Run
Reimplemented from XmippProgram.
Definition at line 2478 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::saveIntermediateResults | ( | const FileName & | fn_root, |
bool | generate_profiles = true |
||
) |
Definition at line 369 of file ctf_estimate_from_psd.cpp.
void ProgCTFEstimateFromPSD::showFirstDefoci | ( | ) |
Definition at line 1651 of file ctf_estimate_from_psd.cpp.
CTFDescription ProgCTFEstimateFromPSD::ctfmodel_defoci |
Definition at line 44 of file ctf_estimate_from_psd.h.
CTFDescription ProgCTFEstimateFromPSD::current_ctfmodel |
Definition at line 44 of file ctf_estimate_from_psd.h.
CTFDescription ProgCTFEstimateFromPSD::initial_ctfmodel |
CTF model.
Definition at line 44 of file ctf_estimate_from_psd.h.