Xmipp
v3.23.11-Nereus
|
#include <reconstruct_wbp.h>
Public Member Functions | |
void | readParams () |
Read arguments from command line. More... | |
void | show () |
Show. More... | |
void | defineParams () |
Define parameters. More... | |
void | run () |
virtual void | showProgress () |
virtual void | finishProcessing () |
void | setIO (const FileName &fn_in, const FileName &fn_out) |
virtual void | produceSideInfo () |
Fill arrays with relevant transformation matrices. More... | |
virtual bool | getImageToProcess (size_t &objId) |
Get 1 image to process. More... | |
void | getAnglesForImage (size_t id, double &rot, double &tilt, double &psi, double &xoff, double &yoff, bool &flip, double &weight) |
Get angles (either from reading the header or from a docfile) More... | |
void | getAllMatrices (MetaData &SF) |
Fill array with transformation matrices needed for arbitrary geometry filter. More... | |
void | getSampledMatrices (MetaData &SF) |
void | simpleBackprojection (Projection &img, MultidimArray< double > &vol, int diameter) |
void | filterOneImage (Projection &proj, Tabsinc &TSINC) |
void | apply2DFilterArbitraryGeometry () |
Public Member Functions inherited from ProgReconsBase | |
virtual | ~ProgReconsBase () |
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_out |
FileName | fn_sym |
FileName | fn_sel |
MetaDataVec | SF |
double | threshold |
int | count_thr |
int | diameter |
size_t | dim |
int | no_mats |
WBPInfo * | mat_g |
WBPInfo * | mat_f |
double | sampling |
bool | do_all_matrices |
bool | do_weights |
SymList | SL |
size_t | time_bar_step |
Time bar variables. More... | |
size_t | time_bar_size |
size_t | time_bar_done |
std::unique_ptr< MetaDataVec::id_iterator > | iter |
Iterator over input metadata. More... | |
Image< double > | reconstructedVolume |
Reconstructed volume. More... | |
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 |
WBP parameters.
Definition at line 47 of file reconstruct_wbp.h.
void ProgRecWbp::apply2DFilterArbitraryGeometry | ( | ) |
Definition at line 517 of file reconstruct_wbp.cpp.
|
virtual |
Define parameters.
Reimplemented from XmippProgram.
Definition at line 90 of file reconstruct_wbp.cpp.
void ProgRecWbp::filterOneImage | ( | Projection & | proj, |
Tabsinc & | TSINC | ||
) |
Definition at line 437 of file reconstruct_wbp.cpp.
|
virtual |
Finish processing
Reimplemented in ProgMPIRecWbp.
Definition at line 170 of file reconstruct_wbp.cpp.
void ProgRecWbp::getAllMatrices | ( | MetaData & | SF | ) |
Fill array with transformation matrices needed for arbitrary geometry filter.
Definition at line 308 of file reconstruct_wbp.cpp.
void ProgRecWbp::getAnglesForImage | ( | size_t | id, |
double & | rot, | ||
double & | tilt, | ||
double & | psi, | ||
double & | xoff, | ||
double & | yoff, | ||
bool & | flip, | ||
double & | weight | ||
) |
Get angles (either from reading the header or from a docfile)
Definition at line 217 of file reconstruct_wbp.cpp.
|
virtual |
Get 1 image to process.
Reimplemented in ProgMPIRecWbp.
Definition at line 494 of file reconstruct_wbp.cpp.
void ProgRecWbp::getSampledMatrices | ( | MetaData & | SF | ) |
Fill array with transformation matrices for representative evenly sampled projection directions
Definition at line 231 of file reconstruct_wbp.cpp.
|
virtual |
Fill arrays with relevant transformation matrices.
Reimplemented in ProgMPIRecWbp.
Definition at line 187 of file reconstruct_wbp.cpp.
|
virtual |
Read arguments from command line.
Reimplemented from XmippProgram.
Definition at line 38 of file reconstruct_wbp.cpp.
|
virtual |
Do the job
Reimplemented from XmippProgram.
Definition at line 162 of file reconstruct_wbp.cpp.
Set IO for a new reconstruction
Implements ProgReconsBase.
Definition at line 181 of file reconstruct_wbp.cpp.
void ProgRecWbp::show | ( | ) |
|
virtual |
void ProgRecWbp::simpleBackprojection | ( | Projection & | img, |
MultidimArray< double > & | vol, | ||
int | diameter | ||
) |
Definition at line 362 of file reconstruct_wbp.cpp.
int ProgRecWbp::count_thr |
Counter for how many times the threshold was not reached
Definition at line 57 of file reconstruct_wbp.h.
int ProgRecWbp::diameter |
Diameter for reconstruction
Definition at line 59 of file reconstruct_wbp.h.
size_t ProgRecWbp::dim |
verbosity flag dimensions of the images
Definition at line 63 of file reconstruct_wbp.h.
bool ProgRecWbp::do_all_matrices |
Flag whether to use all experimental projection directions instead of sampled projection directions for arbitrary geometry filter
Definition at line 72 of file reconstruct_wbp.h.
bool ProgRecWbp::do_weights |
Flag whether to use the weights in the image headers
Definition at line 74 of file reconstruct_wbp.h.
FileName ProgRecWbp::fn_out |
Filenames
Definition at line 51 of file reconstruct_wbp.h.
FileName ProgRecWbp::fn_sel |
Definition at line 51 of file reconstruct_wbp.h.
FileName ProgRecWbp::fn_sym |
Definition at line 51 of file reconstruct_wbp.h.
std::unique_ptr<MetaDataVec::id_iterator> ProgRecWbp::iter |
Iterator over input metadata.
Definition at line 80 of file reconstruct_wbp.h.
WBPInfo * ProgRecWbp::mat_f |
Definition at line 67 of file reconstruct_wbp.h.
WBPInfo* ProgRecWbp::mat_g |
columns of matrices
Definition at line 67 of file reconstruct_wbp.h.
int ProgRecWbp::no_mats |
Number of elements in matrix array
Definition at line 65 of file reconstruct_wbp.h.
Image<double> ProgRecWbp::reconstructedVolume |
Reconstructed volume.
Definition at line 82 of file reconstruct_wbp.h.
double ProgRecWbp::sampling |
Angular sampling for projection directions of arbitrary geometry filter
Definition at line 69 of file reconstruct_wbp.h.
MetaDataVec ProgRecWbp::SF |
SelFile containing all projections and angles
Definition at line 53 of file reconstruct_wbp.h.
SymList ProgRecWbp::SL |
Symmetry list for symmetric volumes
Definition at line 76 of file reconstruct_wbp.h.
double ProgRecWbp::threshold |
Lower threshold for the filter
Definition at line 55 of file reconstruct_wbp.h.
size_t ProgRecWbp::time_bar_done |
Definition at line 78 of file reconstruct_wbp.h.
size_t ProgRecWbp::time_bar_size |
Definition at line 78 of file reconstruct_wbp.h.
size_t ProgRecWbp::time_bar_step |
Time bar variables.
Definition at line 78 of file reconstruct_wbp.h.