Xmipp
v3.23.11-Nereus
|
#include <reconstruct_fourier.h>
Public Member Functions | |
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 |
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 * | processImageThread (void *threadArgs) |
Defines what a thread should do. More... | |
Public Attributes | |
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 | |
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 |
Fourier reconstruction parameters.
Definition at line 76 of file reconstruct_fourier.h.
void ProgRecFourier::correctWeight | ( | ) |
Method for the correction of the fourier coefficients.
Definition at line 1056 of file reconstruct_fourier.cpp.
|
virtual |
Read arguments from command line.
Reimplemented from XmippProgram.
Definition at line 36 of file reconstruct_fourier.cpp.
void ProgRecFourier::finishComputations | ( | const FileName & | out_name | ) |
Definition at line 1103 of file reconstruct_fourier.cpp.
void ProgRecFourier::forceWeightSymmetry | ( | MultidimArray< double > & | FourierWeights | ) |
Force the weights to be symmetrized.
Definition at line 1188 of file reconstruct_fourier.cpp.
void ProgRecFourier::processImages | ( | int | firstImageIndex, |
int | lastImageIndex, | ||
bool | saveFSC = false , |
||
bool | reprocessFlag = false |
||
) |
Process one image.
Definition at line 835 of file reconstruct_fourier.cpp.
|
static |
Defines what a thread should do.
Definition at line 289 of file reconstruct_fourier.cpp.
void ProgRecFourier::produceSideinfo | ( | ) |
Produce side info: fill arrays with relevant transformation matrices.
Definition at line 184 of file reconstruct_fourier.cpp.
|
virtual |
Read arguments from command line.
Reimplemented from XmippProgram.
Definition at line 64 of file reconstruct_fourier.cpp.
|
virtual |
Run.
Reimplemented from XmippProgram.
Definition at line 124 of file reconstruct_fourier.cpp.
Functions of common reconstruction interface.
Implements ProgReconsBase.
Definition at line 1182 of file reconstruct_fourier.cpp.
void ProgRecFourier::show | ( | ) |
Show.
Definition at line 89 of file reconstruct_fourier.cpp.
barrier_t ProgRecFourier::barrier |
To create a barrier synchronization for threads.
Definition at line 139 of file reconstruct_fourier.h.
struct blobtype ProgRecFourier::blob |
Definition at line 170 of file reconstruct_fourier.h.
Matrix1D<double> ProgRecFourier::blobTableSqrt |
Definition at line 160 of file reconstruct_fourier.h.
bool ProgRecFourier::do_weights |
Flag whether to use the weights in the image metadata
Definition at line 86 of file reconstruct_fourier.h.
FileName ProgRecFourier::fn_doc |
Definition at line 80 of file reconstruct_fourier.h.
FileName ProgRecFourier::fn_fsc |
Definition at line 80 of file reconstruct_fourier.h.
FileName ProgRecFourier::fn_out |
Filenames
Definition at line 80 of file reconstruct_fourier.h.
FileName ProgRecFourier::fn_sel |
Definition at line 80 of file reconstruct_fourier.h.
FileName ProgRecFourier::fn_sym |
Definition at line 80 of file reconstruct_fourier.h.
Matrix1D<double> ProgRecFourier::Fourier_blob_table |
Definition at line 157 of file reconstruct_fourier.h.
Matrix1D<double> ProgRecFourier::fourierBlobTableSqrt |
Definition at line 160 of file reconstruct_fourier.h.
MultidimArray<double> ProgRecFourier::FourierWeights |
Definition at line 185 of file reconstruct_fourier.h.
double ProgRecFourier::iDeltaFourier |
Definition at line 164 of file reconstruct_fourier.h.
double ProgRecFourier::iDeltaSqrt |
Definition at line 164 of file reconstruct_fourier.h.
int ProgRecFourier::imgSize |
Definition at line 149 of file reconstruct_fourier.h.
double ProgRecFourier::maxResolution |
Max resolution in Angstroms.
Definition at line 112 of file reconstruct_fourier.h.
double ProgRecFourier::maxResolution2 |
Definition at line 167 of file reconstruct_fourier.h.
double ProgRecFourier::minCTF |
Minimum CTF value to invert
Definition at line 97 of file reconstruct_fourier.h.
int ProgRecFourier::NiterWeight |
Number of iterations for the weight.
Definition at line 115 of file reconstruct_fourier.h.
int ProgRecFourier::numThreads |
Number of threads to use in parallel to process a single image.
Definition at line 118 of file reconstruct_fourier.h.
MultidimArray<double> ProgRecFourier::paddedImg |
Definition at line 188 of file reconstruct_fourier.h.
double ProgRecFourier::padding_factor_proj |
Projection padding Factor
Definition at line 103 of file reconstruct_fourier.h.
double ProgRecFourier::padding_factor_vol |
Volume padding Factor
Definition at line 106 of file reconstruct_fourier.h.
bool ProgRecFourier::phaseFlipped |
Phase flipped. True if the images have been phase flipped before entering.
Definition at line 94 of file reconstruct_fourier.h.
std::vector<Matrix2D<double> > ProgRecFourier::R_repository |
Definition at line 173 of file reconstruct_fourier.h.
size_t ProgRecFourier::rowsProcessed |
Number of rows already processed on an image.
Definition at line 130 of file reconstruct_fourier.h.
double ProgRecFourier::sampling_rate |
Sampling rate in Angstroms/pixel
Definition at line 109 of file reconstruct_fourier.h.
MetaDataVec ProgRecFourier::SF |
SelFile containing all projections
Definition at line 83 of file reconstruct_fourier.h.
int* ProgRecFourier::statusArray |
A status array for each row in an image (processing, processed,etc..)
Definition at line 142 of file reconstruct_fourier.h.
ImageThreadParams* ProgRecFourier::th_args |
Contains parameters passed to each thread.
Definition at line 124 of file reconstruct_fourier.h.
pthread_t* ProgRecFourier::th_ids |
IDs for the threads.
Definition at line 121 of file reconstruct_fourier.h.
int ProgRecFourier::threadOpCode |
Tells the threads what to do next.
Definition at line 127 of file reconstruct_fourier.h.
int ProgRecFourier::thrWidth |
How many image rows are processed at a time by a single thread.
Definition at line 145 of file reconstruct_fourier.h.
FourierTransformer ProgRecFourier::transformerImg |
Definition at line 179 of file reconstruct_fourier.h.
FourierTransformer ProgRecFourier::transformerVol |
Definition at line 176 of file reconstruct_fourier.h.
double ProgRecFourier::Ts |
Sampling rate
Definition at line 100 of file reconstruct_fourier.h.
bool ProgRecFourier::useCTF |
Use CTF
Definition at line 89 of file reconstruct_fourier.h.
int ProgRecFourier::volPadSizeX |
Definition at line 152 of file reconstruct_fourier.h.
int ProgRecFourier::volPadSizeY |
Definition at line 153 of file reconstruct_fourier.h.
int ProgRecFourier::volPadSizeZ |
Definition at line 154 of file reconstruct_fourier.h.
Image<double> ProgRecFourier::Vout |
Definition at line 191 of file reconstruct_fourier.h.
MultidimArray< std::complex<double> > ProgRecFourier::VoutFourier |
Definition at line 182 of file reconstruct_fourier.h.
MultidimArray< std::complex<double> > ProgRecFourier::VoutFourierTmp |
Definition at line 182 of file reconstruct_fourier.h.
pthread_mutex_t ProgRecFourier::workLoadMutex |
Controls mutual exclusion on critical zones of code.
Definition at line 136 of file reconstruct_fourier.h.