Xmipp
v3.23.11-Nereus
|
#include <parallel_forward_art_zernike3d.h>
Public Types | |
enum | Mode { Mode::Proj, Mode::Vol } |
Public Member Functions | |
ProgParallelForwardArtZernike3D () | |
Empty constructor. More... | |
~ProgParallelForwardArtZernike3D () | |
Destructor. More... | |
void | readParams () |
Read argument from command line. More... | |
void | show () |
Show. More... | |
void | defineParams () |
Define parameters. More... | |
void | preProcess () |
void | processImage (const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut) |
void | numCoefficients (int l1, int l2, int &vecSize) |
Length of coefficients vector. More... | |
void | fillVectorTerms (int l1, int l2, Matrix1D< int > &vL1, Matrix1D< int > &vN, Matrix1D< int > &vL2, Matrix1D< int > &vM) |
Zernike and SPH coefficients allocation. More... | |
void | deformVol (MultidimArray< double > &mP, MultidimArray< double > &mW, const MultidimArray< double > &mV, double rot, double tilt, double psi) |
Deform a volumen using Zernike-Spherical harmonic basis. More... | |
void | recoverVol () |
virtual void | finishProcessing () |
Public Member Functions inherited from XmippMetadataProgram | |
MetaData * | getInputMd () |
MetaDataVec & | getOutputMd () |
XmippMetadataProgram () | |
Empty constructor. More... | |
virtual int | tryRead (int argc, const char **argv, bool reportErrors=true) |
virtual void | init () |
virtual void | setup (MetaData *md, const FileName &o="", const FileName &oroot="", bool applyGeo=false, MDLabel label=MDL_IMAGE) |
virtual | ~XmippMetadataProgram () |
void | setMode (WriteModeMetaData _mode) |
void | setupRowOut (const FileName &fnImgIn, const MDRow &rowIn, const FileName &fnImgOut, MDRow &rowOut) const |
Prepare rowout. More... | |
virtual void | wait () |
Wait for the distributor to finish. More... | |
virtual void | checkPoint () |
For very long programs, it may be needed to write checkpoints. More... | |
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) |
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 | 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 () |
Additional Inherited Members | |
Protected Member Functions inherited from XmippMetadataProgram | |
virtual void | initComments () |
virtual void | postProcess () |
virtual bool | getImageToProcess (size_t &objId, size_t &objIndex) |
void | show () const override |
virtual void | startProcessing () |
virtual void | writeOutput () |
virtual void | showProgress () |
virtual void | defineLabelParam () |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Attributes inherited from XmippMetadataProgram | |
WriteModeMetaData | mode |
Metadata writing mode: OVERWRITE, APPEND. More... | |
FileName | oext |
Output extension and root. More... | |
FileName | oroot |
MDLabel | image_label |
MDLabel to be used to read/write images, usually will be MDL_IMAGE. More... | |
bool | produces_an_output |
Indicate that a unique final output is produced. More... | |
bool | produces_a_metadata |
Indicate that the unique final output file is a Metadata. More... | |
bool | each_image_produces_an_output |
Indicate that an output is produced for each image in the input. More... | |
bool | allow_apply_geo |
bool | decompose_stacks |
Input Metadata will treat a stack file as a set of images instead of a unique file. More... | |
bool | delete_output_stack |
Delete previous output stack file prior to process images. More... | |
bool | get_image_info |
Get the input image file dimensions to further operations. More... | |
bool | save_metadata_stack |
Save the associated output metadata when output file is a stack. More... | |
bool | track_origin |
Include the original input image filename in the output stack. More... | |
bool | keep_input_columns |
Keep input metadata columns. More... | |
bool | remove_disabled |
Remove disabled images from the input selfile. More... | |
bool | allow_time_bar |
Show process time bar. More... | |
bool | input_is_metadata |
Input is a metadata. More... | |
bool | single_image |
Input is a single image. More... | |
bool | input_is_stack |
Input is a stack. More... | |
bool | output_is_stack |
Output is a stack. More... | |
bool | create_empty_stackfile |
bool | delete_mdIn |
size_t | time_bar_step |
Some time bar related counters. More... | |
size_t | time_bar_size |
size_t | time_bar_done |
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 |
Predict Continuous Parameters.
Definition at line 42 of file parallel_forward_art_zernike3d.h.
|
strong |
Enumerator | |
---|---|
Proj | |
Vol |
Definition at line 148 of file parallel_forward_art_zernike3d.h.
ProgParallelForwardArtZernike3D::ProgParallelForwardArtZernike3D | ( | ) |
Empty constructor.
Definition at line 38 of file parallel_forward_art_zernike3d.cpp.
|
default |
Destructor.
|
virtual |
Define parameters.
Reimplemented from XmippMetadataProgram.
Definition at line 120 of file parallel_forward_art_zernike3d.cpp.
void ProgParallelForwardArtZernike3D::deformVol | ( | MultidimArray< double > & | mP, |
MultidimArray< double > & | mW, | ||
const MultidimArray< double > & | mV, | ||
double | rot, | ||
double | tilt, | ||
double | psi | ||
) |
Deform a volumen using Zernike-Spherical harmonic basis.
void ProgParallelForwardArtZernike3D::fillVectorTerms | ( | int | l1, |
int | l2, | ||
Matrix1D< int > & | vL1, | ||
Matrix1D< int > & | vN, | ||
Matrix1D< int > & | vL2, | ||
Matrix1D< int > & | vM | ||
) |
Zernike and SPH coefficients allocation.
Definition at line 386 of file parallel_forward_art_zernike3d.cpp.
|
virtual |
Reimplemented from XmippMetadataProgram.
Definition at line 310 of file parallel_forward_art_zernike3d.cpp.
void ProgParallelForwardArtZernike3D::numCoefficients | ( | int | l1, |
int | l2, | ||
int & | vecSize | ||
) |
|
virtual |
Produce side info. An exception is thrown if any of the files is not found
Reimplemented from XmippMetadataProgram.
Definition at line 155 of file parallel_forward_art_zernike3d.cpp.
|
virtual |
Predict angles and shift. At the input the pose parameters must have an initial guess of the parameters. At the output they have the estimated pose.
Implements XmippMetadataProgram.
Definition at line 317 of file parallel_forward_art_zernike3d.cpp.
|
virtual |
Read argument from command line.
Reimplemented from XmippMetadataProgram.
Definition at line 49 of file parallel_forward_art_zernike3d.cpp.
void ProgParallelForwardArtZernike3D::recoverVol | ( | ) |
Definition at line 433 of file parallel_forward_art_zernike3d.cpp.
void ProgParallelForwardArtZernike3D::show | ( | ) |
Show.
Definition at line 96 of file parallel_forward_art_zernike3d.cpp.
Matrix2D<double> ProgParallelForwardArtZernike3D::A |
Definition at line 104 of file parallel_forward_art_zernike3d.h.
std::vector<double> ProgParallelForwardArtZernike3D::clnm |
Definition at line 122 of file parallel_forward_art_zernike3d.h.
CTFDescription ProgParallelForwardArtZernike3D::ctf |
Definition at line 116 of file parallel_forward_art_zernike3d.h.
size_t ProgParallelForwardArtZernike3D::current_image |
Definition at line 130 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::current_iter |
Definition at line 132 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::current_save_iter |
Definition at line 128 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::defocusAngle |
Definition at line 114 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::defocusU |
Definition at line 114 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::defocusV |
Definition at line 114 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::endX |
Definition at line 134 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::endY |
Definition at line 134 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::endZ |
Definition at line 134 of file parallel_forward_art_zernike3d.h.
FourierFilter ProgParallelForwardArtZernike3D::filter |
Definition at line 141 of file parallel_forward_art_zernike3d.h.
FourierFilter ProgParallelForwardArtZernike3D::filter2 |
Definition at line 141 of file parallel_forward_art_zernike3d.h.
FourierFilter ProgParallelForwardArtZernike3D::FilterCTF |
Definition at line 118 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::flagEnabled |
Definition at line 74 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::flip |
Definition at line 110 of file parallel_forward_art_zernike3d.h.
FileName ProgParallelForwardArtZernike3D::fnMaskRB |
Definition at line 48 of file parallel_forward_art_zernike3d.h.
FileName ProgParallelForwardArtZernike3D::fnMaskRF |
Filename of the reference volume mask
Definition at line 48 of file parallel_forward_art_zernike3d.h.
FileName ProgParallelForwardArtZernike3D::fnOutDir |
Output directory.
Definition at line 52 of file parallel_forward_art_zernike3d.h.
FileName ProgParallelForwardArtZernike3D::fnVolO |
Filename of the refined volume
Definition at line 50 of file parallel_forward_art_zernike3d.h.
FileName ProgParallelForwardArtZernike3D::fnVolR |
Filename of the reference volume
Definition at line 46 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::hasCTF |
Definition at line 112 of file parallel_forward_art_zernike3d.h.
Image<double> ProgParallelForwardArtZernike3D::I |
Definition at line 90 of file parallel_forward_art_zernike3d.h.
Image<double> ProgParallelForwardArtZernike3D::Idiff |
Definition at line 102 of file parallel_forward_art_zernike3d.h.
Image<double> ProgParallelForwardArtZernike3D::Ifilteredp |
Definition at line 88 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::ignoreCTF |
Definition at line 64 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::initX |
Definition at line 134 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::initY |
Definition at line 134 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::initZ |
Definition at line 134 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::L1 |
Degrees of Zernike polynomials and spherical harmonics
Definition at line 54 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::L2 |
Definition at line 54 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::lambda |
Definition at line 66 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::loop_step |
Definition at line 136 of file parallel_forward_art_zernike3d.h.
ctpl::thread_pool ProgParallelForwardArtZernike3D::m_threadPool |
Definition at line 144 of file parallel_forward_art_zernike3d.h.
MultidimArray<int> ProgParallelForwardArtZernike3D::mask2D |
Definition at line 84 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::niter |
Definition at line 80 of file parallel_forward_art_zernike3d.h.
size_t ProgParallelForwardArtZernike3D::num_images |
Definition at line 130 of file parallel_forward_art_zernike3d.h.
MultidimArray<size_t> ProgParallelForwardArtZernike3D::ordered_list |
Definition at line 126 of file parallel_forward_art_zernike3d.h.
std::vector<Image<double> > ProgParallelForwardArtZernike3D::P |
Definition at line 94 of file parallel_forward_art_zernike3d.h.
std::vector<std::unique_ptr<std::atomic<double*> > > ProgParallelForwardArtZernike3D::p_busy_elem |
Definition at line 98 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::phaseFlipped |
Definition at line 62 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::psi |
Definition at line 106 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::resume |
Resume computations
Definition at line 78 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::RmaxDef |
Maximum radius
Definition at line 60 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::rot |
Definition at line 106 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::save_iter |
Definition at line 68 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::shiftX |
Definition at line 108 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::shiftY |
Definition at line 108 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::showOptimization |
Definition at line 124 of file parallel_forward_art_zernike3d.h.
std::vector<double> ProgParallelForwardArtZernike3D::sigma |
Definition at line 138 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::sort_last_N |
Definition at line 82 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::threads |
Definition at line 145 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::tilt |
Definition at line 106 of file parallel_forward_art_zernike3d.h.
double ProgParallelForwardArtZernike3D::Ts |
Sampling rate
Definition at line 58 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::useCTF |
Definition at line 70 of file parallel_forward_art_zernike3d.h.
bool ProgParallelForwardArtZernike3D::useZernike |
Definition at line 72 of file parallel_forward_art_zernike3d.h.
Image<double> ProgParallelForwardArtZernike3D::V |
Definition at line 88 of file parallel_forward_art_zernike3d.h.
int ProgParallelForwardArtZernike3D::vecSize |
Definition at line 120 of file parallel_forward_art_zernike3d.h.
Matrix1D<int> ProgParallelForwardArtZernike3D::vL1 |
Zernike and SPH coefficients vectors
Definition at line 56 of file parallel_forward_art_zernike3d.h.
Matrix1D<int> ProgParallelForwardArtZernike3D::vL2 |
Definition at line 56 of file parallel_forward_art_zernike3d.h.
Matrix1D<int> ProgParallelForwardArtZernike3D::vM |
Definition at line 56 of file parallel_forward_art_zernike3d.h.
Matrix1D<int> ProgParallelForwardArtZernike3D::vN |
Definition at line 56 of file parallel_forward_art_zernike3d.h.
Image<double> ProgParallelForwardArtZernike3D::Vout |
Definition at line 88 of file parallel_forward_art_zernike3d.h.
MultidimArray<int> ProgParallelForwardArtZernike3D::VRecMaskB |
Definition at line 92 of file parallel_forward_art_zernike3d.h.
MultidimArray<int> ProgParallelForwardArtZernike3D::VRecMaskF |
Definition at line 92 of file parallel_forward_art_zernike3d.h.
Image<double> ProgParallelForwardArtZernike3D::Vrefined |
Definition at line 88 of file parallel_forward_art_zernike3d.h.
std::vector<Image<double> > ProgParallelForwardArtZernike3D::W |
Definition at line 96 of file parallel_forward_art_zernike3d.h.
std::vector<std::unique_ptr<std::atomic<double*> > > ProgParallelForwardArtZernike3D::w_busy_elem |
Definition at line 99 of file parallel_forward_art_zernike3d.h.
size_t ProgParallelForwardArtZernike3D::Xdim |
Definition at line 86 of file parallel_forward_art_zernike3d.h.