Xmipp
v3.23.11-Nereus
|
#include <mpi_reconstruct_fourier.h>
Public Member Functions | |
ProgMPIRecFourier () | |
ProgMPIRecFourier (int argc, char *argv[]) | |
ProgMPIRecFourier (const std::shared_ptr< MpiNode > &node) | |
void | read (int argc, char **argv) |
void | readParams () |
void | defineParams () |
void | preRun () |
void | run () |
int | sendDataInChunks (double *pointer, int dest, int totalSize, int buffSize, MPI_Comm comm) |
Public Member Functions inherited from ProgRecFourier | |
void | readParams () |
Read arguments from command line. More... | |
void | defineParams () |
Read arguments from command line. More... | |
void | show () |
void | run () |
void | produceSideinfo () |
Produce side info: fill arrays with relevant transformation matrices. More... | |
void | finishComputations (const FileName &out_name) |
void | processImages (int firstImageIndex, int lastImageIndex, bool saveFSC=false, bool reprocessFlag=false) |
Process one image. More... | |
void | correctWeight () |
Method for the correction of the fourier coefficients. More... | |
void | forceWeightSymmetry (MultidimArray< double > &FourierWeights) |
Force the weights to be symmetrized. More... | |
virtual void | setIO (const FileName &fn_in, const FileName &fn_out) |
Functions of common reconstruction interface. More... | |
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 |
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 Member Functions inherited from XmippMpiProgram | |
void | read (int argc, char **argv) |
virtual int | tryRun () |
Public Attributes | |
long int | sizeout |
int | mpi_job_size |
Public Attributes inherited from ProgRecFourier | |
FileName | fn_out |
FileName | fn_sym |
FileName | fn_sel |
FileName | fn_doc |
FileName | fn_fsc |
MetaDataVec | SF |
bool | do_weights |
bool | useCTF |
bool | phaseFlipped |
double | minCTF |
double | Ts |
double | padding_factor_proj |
double | padding_factor_vol |
double | sampling_rate |
double | maxResolution |
Max resolution in Angstroms. More... | |
int | NiterWeight |
Number of iterations for the weight. More... | |
int | numThreads |
Number of threads to use in parallel to process a single image. More... | |
pthread_t * | th_ids |
IDs for the threads. More... | |
ImageThreadParams * | th_args |
Contains parameters passed to each thread. More... | |
int | threadOpCode |
Tells the threads what to do next. More... | |
size_t | rowsProcessed |
Number of rows already processed on an image. More... | |
pthread_mutex_t | workLoadMutex |
Controls mutual exclusion on critical zones of code. More... | |
barrier_t | barrier |
To create a barrier synchronization for threads. More... | |
int * | statusArray |
A status array for each row in an image (processing, processed,etc..) More... | |
int | thrWidth |
How many image rows are processed at a time by a single thread. More... | |
int | imgSize |
int | volPadSizeX |
int | volPadSizeY |
int | volPadSizeZ |
Matrix1D< double > | Fourier_blob_table |
Matrix1D< double > | blobTableSqrt |
Matrix1D< double > | fourierBlobTableSqrt |
double | iDeltaFourier |
double | iDeltaSqrt |
double | maxResolution2 |
struct blobtype | blob |
std::vector< Matrix2D< double > > | R_repository |
FourierTransformer | transformerVol |
FourierTransformer | transformerImg |
MultidimArray< std::complex< double > > | VoutFourier |
MultidimArray< std::complex< double > > | VoutFourierTmp |
MultidimArray< double > | FourierWeights |
MultidimArray< double > | paddedImg |
Image< double > | Vout |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Additional Inherited Members | |
Static Public Member Functions inherited from ProgRecFourier | |
static void * | processImageThread (void *threadArgs) |
Defines what a thread should do. More... | |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Member Functions inherited from XmippMpiProgram | |
void | setNode (const std::shared_ptr< MpiNode > &node) |
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 |
Protected Attributes inherited from XmippMpiProgram | |
std::shared_ptr< MpiNode > | node |
size_t | nProcs |
size_t | numberOfJobs |
MPI_Status | status |
Definition at line 59 of file mpi_reconstruct_fourier.h.
|
inline |
ProgMPIRecFourier::ProgMPIRecFourier | ( | int | argc, |
char * | argv[] | ||
) |
ProgMPIRecFourier::ProgMPIRecFourier | ( | const std::shared_ptr< MpiNode > & | node | ) |
Definition at line 44 of file mpi_reconstruct_fourier.cpp.
|
virtual |
destructor
Reimplemented from XmippProgram.
Definition at line 57 of file mpi_reconstruct_fourier.cpp.
void ProgMPIRecFourier::preRun | ( | ) |
Definition at line 74 of file mpi_reconstruct_fourier.cpp.
void ProgMPIRecFourier::read | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 50 of file mpi_reconstruct_fourier.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 67 of file mpi_reconstruct_fourier.cpp.
|
virtual |
This function will be start running the program. it also should be implemented by derived classes.
Reimplemented from XmippProgram.
Definition at line 120 of file mpi_reconstruct_fourier.cpp.
int ProgMPIRecFourier::sendDataInChunks | ( | double * | pointer, |
int | dest, | ||
int | totalSize, | ||
int | buffSize, | ||
MPI_Comm | comm | ||
) |
Definition at line 667 of file mpi_reconstruct_fourier.cpp.
int ProgMPIRecFourier::mpi_job_size |
Dvide the job in this number block with this number of images
Definition at line 67 of file mpi_reconstruct_fourier.h.
long int ProgMPIRecFourier::sizeout |
Fourier transform size for volumes
Definition at line 64 of file mpi_reconstruct_fourier.h.