Xmipp
v3.23.11-Nereus
|
#include <resolution_ssnr.h>
Public Member Functions | |
void | defineParams () |
void | readParams () |
void | show () |
void | produceSideInfo () |
void | run () |
void | estimateSSNR (int dim, Matrix2D< double > &output) |
void | radialAverage (Matrix2D< double > &output) |
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 () |
Public Attributes | |
FileName | fn_S |
Signal reconstructed volume. More... | |
FileName | fn_N |
Noise reconstructed volume. More... | |
FileName | fn_SNsel |
Selfile with all the experimental and noise images. More... | |
FileName | fn_S_sel |
FileName | fn_N_sel |
FileName | fn_VSSNR |
Filename of the Volumetric SSNR, used only for radial averaging. More... | |
bool | fourierProjections |
Fourier projections. More... | |
double | ring_width |
Ringwidth. More... | |
double | Tm |
Sampling rate. More... | |
FileName | fn_out |
FileName | fn_out_images |
String | sym |
bool | generate_VSSNR |
bool | radial_avg |
double | min_power |
int | Nthreads |
Image< double > | S |
Image< double > | N |
MetaDataVec | SF_SN |
MetaDataVec | SF_S |
MetaDataVec | SF_N |
Image< double > | VSSNR |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Additional Inherited Members | |
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 |
SSNR parameters.
Definition at line 40 of file resolution_ssnr.h.
|
virtual |
Function in which the param of each Program are defined.
Reimplemented from XmippProgram.
Definition at line 35 of file resolution_ssnr.cpp.
void ProgSSNR::estimateSSNR | ( | int | dim, |
Matrix2D< double > & | output | ||
) |
Estimate SSNR 2D. Generate images with the particular SSNR. The output filename is used as a rootname
Definition at line 207 of file resolution_ssnr.cpp.
void ProgSSNR::produceSideInfo | ( | ) |
Definition at line 146 of file resolution_ssnr.cpp.
void ProgSSNR::radialAverage | ( | Matrix2D< double > & | output | ) |
Radial average of a Volumetric SSNR. The Volumetric SSNR is stored as 10*log10(VSSNR+1). To perform a radial average that is consistent with the one produced by the 1D estimation the +1 must be properly eliminated.
The columns of output are the following: Column 0: sample number in Fourier Space, Column 1: corresponding frequency in continuous freq (1/A), Column 2: corrected radial_avg
Definition at line 488 of file resolution_ssnr.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 102 of file resolution_ssnr.cpp.
|
virtual |
This function will be start running the program. it also should be implemented by derived classes.
Reimplemented from XmippProgram.
Definition at line 172 of file resolution_ssnr.cpp.
void ProgSSNR::show | ( | ) |
Definition at line 130 of file resolution_ssnr.cpp.
FileName ProgSSNR::fn_N |
Noise reconstructed volume.
Definition at line 46 of file resolution_ssnr.h.
FileName ProgSSNR::fn_N_sel |
Definition at line 49 of file resolution_ssnr.h.
FileName ProgSSNR::fn_out |
Output filename. If empty, SSNR is inserted before the extension in fn_S
Definition at line 60 of file resolution_ssnr.h.
FileName ProgSSNR::fn_out_images |
Output rootname for the individual estimations. If empty, SSNR is inserted before the extension in fn_S
Definition at line 63 of file resolution_ssnr.h.
FileName ProgSSNR::fn_S |
Signal reconstructed volume.
Definition at line 44 of file resolution_ssnr.h.
FileName ProgSSNR::fn_S_sel |
Definition at line 49 of file resolution_ssnr.h.
FileName ProgSSNR::fn_SNsel |
Selfile with all the experimental and noise images.
Definition at line 48 of file resolution_ssnr.h.
FileName ProgSSNR::fn_VSSNR |
Filename of the Volumetric SSNR, used only for radial averaging.
Definition at line 51 of file resolution_ssnr.h.
bool ProgSSNR::fourierProjections |
Fourier projections.
Definition at line 53 of file resolution_ssnr.h.
bool ProgSSNR::generate_VSSNR |
Generate VSSNR.
Definition at line 67 of file resolution_ssnr.h.
double ProgSSNR::min_power |
Min_power: Threshold for not dividing
Definition at line 71 of file resolution_ssnr.h.
Image<double> ProgSSNR::N |
Definition at line 79 of file resolution_ssnr.h.
int ProgSSNR::Nthreads |
Number of threads for ART
Definition at line 73 of file resolution_ssnr.h.
bool ProgSSNR::radial_avg |
Generate radial average.
Definition at line 69 of file resolution_ssnr.h.
double ProgSSNR::ring_width |
Ringwidth.
Definition at line 55 of file resolution_ssnr.h.
Image<double> ProgSSNR::S |
Definition at line 77 of file resolution_ssnr.h.
MetaDataVec ProgSSNR::SF_N |
Definition at line 81 of file resolution_ssnr.h.
MetaDataVec ProgSSNR::SF_S |
Definition at line 81 of file resolution_ssnr.h.
MetaDataVec ProgSSNR::SF_SN |
Definition at line 81 of file resolution_ssnr.h.
String ProgSSNR::sym |
Symmetry
Definition at line 65 of file resolution_ssnr.h.
double ProgSSNR::Tm |
Sampling rate.
Definition at line 57 of file resolution_ssnr.h.
Image<double> ProgSSNR::VSSNR |
Definition at line 83 of file resolution_ssnr.h.