Xmipp
v3.23.11-Nereus
|
#include <mpi_angular_projection_matching.h>
Public Member Functions | |
void | read (int argc, char **argv) |
MpiProgAngularProjectionMatching () | |
~MpiProgAngularProjectionMatching () | |
void | processAllImages () |
void | writeOutputFiles () |
bool | distributeJobs (size_t *imagesToSent, int node) |
bool | requestJobs (std::vector< size_t > &imagesToProcess) |
void | defineParams () |
Define arguments accepted. More... | |
void | readParams () |
Read arguments from command line. More... | |
void | produceSideInfo () |
void | computeChunks () |
void | computeChunkAngularDistance (int symmetry, int sym_order) |
Public Member Functions inherited from ProgAngularProjectionMatching | |
void | show () |
void | run () |
void | rotationallyAlignOneImage (Matrix2D< double > &img, int imgno, int &opt_samplenr, double &opt_psi, bool &opt_flip, double &maxcorr) |
void | translationallyAlignOneImage (MultidimArray< double > &img, const int &samplenr, const double &psi, const bool &opt_flip, double &opt_xoff, double &opt_yoff, double &maxcorr) |
void | scaleAlignOneImage (MultidimArray< double > &img, const int &samplenr, const double &psi, const bool &opt_flip, const double &opt_xoff, const double &opt_yoff, const double &old_scale, double &opt_scale, double &maxcorr) |
void | getCurrentReference (int refno, Polar_fftw_plans &local_plans) |
void | processSomeImages (const std::vector< size_t > &imagesToProcess) |
void | getCurrentImage (size_t imgid, Image< double > &img) |
void | destroyAndClean () |
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 () |
Program to parallelize the ML 2D alignment program
Definition at line 36 of file mpi_angular_projection_matching.h.
MpiProgAngularProjectionMatching::MpiProgAngularProjectionMatching | ( | ) |
Constructor
Definition at line 34 of file mpi_angular_projection_matching.cpp.
MpiProgAngularProjectionMatching::~MpiProgAngularProjectionMatching | ( | ) |
void MpiProgAngularProjectionMatching::computeChunkAngularDistance | ( | int | symmetry, |
int | sym_order | ||
) |
Definition at line 321 of file mpi_angular_projection_matching.cpp.
void MpiProgAngularProjectionMatching::computeChunks | ( | ) |
These two function will be executed only by master
Definition at line 246 of file mpi_angular_projection_matching.cpp.
|
virtual |
Define arguments accepted.
Reimplemented from ProgAngularProjectionMatching.
Definition at line 66 of file mpi_angular_projection_matching.cpp.
bool MpiProgAngularProjectionMatching::distributeJobs | ( | size_t * | imagesToSent, |
int | node | ||
) |
Function to distribute jobs to slaves. will return false if no more images to process. Will try to sent neighbours images to same node.
Definition at line 149 of file mpi_angular_projection_matching.cpp.
|
virtual |
Override virtual function implementations
Reimplemented from ProgAngularProjectionMatching.
Definition at line 102 of file mpi_angular_projection_matching.cpp.
|
virtual |
Redefine produceSideInfo
Reimplemented from ProgAngularProjectionMatching.
Definition at line 237 of file mpi_angular_projection_matching.cpp.
void MpiProgAngularProjectionMatching::read | ( | int | argc, |
char ** | argv | ||
) |
Redefine read
Definition at line 50 of file mpi_angular_projection_matching.cpp.
|
virtual |
Read arguments from command line.
Reimplemented from ProgAngularProjectionMatching.
Definition at line 93 of file mpi_angular_projection_matching.cpp.
bool MpiProgAngularProjectionMatching::requestJobs | ( | std::vector< size_t > & | imagesToProcess | ) |
Function of slaves nodes to ask jobs to master. will return false if no more images to process.
Definition at line 203 of file mpi_angular_projection_matching.cpp.
|
virtual |
Write out results to disk This function should be override in MPI class, only master should write.
Reimplemented from ProgAngularProjectionMatching.
Definition at line 226 of file mpi_angular_projection_matching.cpp.