Xmipp
v3.23.11-Nereus
|
#include <subtract_projection.h>
Classes | |
struct | Angles |
Public Member Functions | |
void | readParticle (const MDRow &rowIn) |
Read and write methods. More... | |
void | writeParticle (MDRow &rowOut, FileName, Image< double > &, double, double, double) |
void | createMask (const FileName &, Image< double > &, Image< double > &) |
Processing methods. More... | |
Image< double > | binarizeMask (Projection &) const |
Image< double > | invertMask (const Image< double > &) |
Image< double > | applyCTF (const MDRow &, Projection &) |
void | processParticle (const MDRow &rowIn, int, FourierTransformer &, FourierTransformer &) |
MultidimArray< std::complex< double > > | computeEstimationImage (const MultidimArray< double > &, const MultidimArray< double > &, FourierTransformer &) |
double | evaluateFitting (const MultidimArray< std::complex< double > > &, const MultidimArray< std::complex< double > > &) const |
Matrix1D< double > | checkBestModel (MultidimArray< std::complex< double > > &, const MultidimArray< std::complex< double > > &, const MultidimArray< std::complex< double > > &, const MultidimArray< std::complex< double > > &) const |
ProgSubtractProjection () | |
Empty constructor. More... | |
~ProgSubtractProjection () | |
Destructor. More... | |
void | readParams () override |
Read argument from command line. More... | |
void | show () const override |
Show. More... | |
void | defineParams () override |
Define parameters. More... | |
void | preProcess () override |
void | processImage (const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut) override |
void | postProcess () override |
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... | |
virtual void | run () |
Run over all images. 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 bool | getImageToProcess (size_t &objId, size_t &objIndex) |
void | show () const override |
virtual void | startProcessing () |
virtual void | finishProcessing () |
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 |
Subtract projections from particles
Definition at line 41 of file subtract_projection.h.
ProgSubtractProjection::ProgSubtractProjection | ( | ) |
Empty constructor.
Definition at line 51 of file subtract_projection.cpp.
ProgSubtractProjection::~ProgSubtractProjection | ( | ) |
Destructor.
Definition at line 63 of file subtract_projection.cpp.
Image< double > ProgSubtractProjection::applyCTF | ( | const MDRow & | r, |
Projection & | proj | ||
) |
Definition at line 188 of file subtract_projection.cpp.
Image< double > ProgSubtractProjection::binarizeMask | ( | Projection & | m | ) | const |
Definition at line 170 of file subtract_projection.cpp.
Matrix1D< double > ProgSubtractProjection::checkBestModel | ( | MultidimArray< std::complex< double > > & | PFourierf, |
const MultidimArray< std::complex< double > > & | PFourierf0, | ||
const MultidimArray< std::complex< double > > & | PFourierf1, | ||
const MultidimArray< std::complex< double > > & | IFourierf | ||
) | const |
Definition at line 259 of file subtract_projection.cpp.
MultidimArray< std::complex< double > > ProgSubtractProjection::computeEstimationImage | ( | const MultidimArray< double > & | Img, |
const MultidimArray< double > & | InvM, | ||
FourierTransformer & | transformerImgiM | ||
) |
Definition at line 229 of file subtract_projection.cpp.
void ProgSubtractProjection::createMask | ( | const FileName & | fnM, |
Image< double > & | m, | ||
Image< double > & | im | ||
) |
Processing methods.
Definition at line 149 of file subtract_projection.cpp.
|
overridevirtual |
Define parameters.
Reimplemented from XmippMetadataProgram.
Definition at line 104 of file subtract_projection.cpp.
double ProgSubtractProjection::evaluateFitting | ( | const MultidimArray< std::complex< double > > & | y, |
const MultidimArray< std::complex< double > > & | yp | ||
) | const |
Definition at line 239 of file subtract_projection.cpp.
Definition at line 180 of file subtract_projection.cpp.
|
overridevirtual |
Reimplemented from XmippMetadataProgram.
Definition at line 474 of file subtract_projection.cpp.
|
overridevirtual |
Reimplemented from XmippMetadataProgram.
Definition at line 281 of file subtract_projection.cpp.
|
overridevirtual |
Implements XmippMetadataProgram.
Definition at line 345 of file subtract_projection.cpp.
void ProgSubtractProjection::processParticle | ( | const MDRow & | rowIn, |
int | sizeImg, | ||
FourierTransformer & | transformerPf, | ||
FourierTransformer & | transformerIf | ||
) |
Definition at line 210 of file subtract_projection.cpp.
|
overridevirtual |
Read argument from command line.
Reimplemented from XmippMetadataProgram.
Definition at line 70 of file subtract_projection.cpp.
void ProgSubtractProjection::readParticle | ( | const MDRow & | rowIn | ) |
Read and write methods.
Definition at line 131 of file subtract_projection.cpp.
|
overridevirtual |
void ProgSubtractProjection::writeParticle | ( | MDRow & | rowOut, |
FileName | fnImgOut, | ||
Image< double > & | img, | ||
double | R2a, | ||
double | b0save, | ||
double | b1save | ||
) |
Definition at line 137 of file subtract_projection.cpp.
bool ProgSubtractProjection::boost |
Definition at line 60 of file subtract_projection.h.
Image<double> ProgSubtractProjection::cirmask |
Definition at line 75 of file subtract_projection.h.
double ProgSubtractProjection::cirmaskrad |
Definition at line 55 of file subtract_projection.h.
CTFDescription ProgSubtractProjection::ctf |
Definition at line 97 of file subtract_projection.h.
const MultidimArray<double>* ProgSubtractProjection::ctfImage = nullptr |
Definition at line 82 of file subtract_projection.h.
bool ProgSubtractProjection::disable |
Definition at line 116 of file subtract_projection.h.
FourierFilter ProgSubtractProjection::FilterCTF |
Definition at line 98 of file subtract_projection.h.
FourierFilter ProgSubtractProjection::FilterG |
Definition at line 80 of file subtract_projection.h.
FileName ProgSubtractProjection::fnImgI |
Definition at line 47 of file subtract_projection.h.
FileName ProgSubtractProjection::fnMask |
Definition at line 50 of file subtract_projection.h.
FileName ProgSubtractProjection::fnMaskVol |
Definition at line 49 of file subtract_projection.h.
FileName ProgSubtractProjection::fnOut |
Definition at line 48 of file subtract_projection.h.
FileName ProgSubtractProjection::fnParticles |
Definition at line 46 of file subtract_projection.h.
FileName ProgSubtractProjection::fnProj |
Definition at line 51 of file subtract_projection.h.
FileName ProgSubtractProjection::fnVolR |
Definition at line 45 of file subtract_projection.h.
Image<double> ProgSubtractProjection::I |
Definition at line 70 of file subtract_projection.h.
Image<double> ProgSubtractProjection::Idiff |
Definition at line 74 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::IFourier |
Definition at line 86 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::IiMFourier |
Definition at line 90 of file subtract_projection.h.
Image<double> ProgSubtractProjection::iM |
Definition at line 72 of file subtract_projection.h.
Image<double> ProgSubtractProjection::ImgiM |
Definition at line 101 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::ImgiMFourier |
Definition at line 102 of file subtract_projection.h.
Image<double> ProgSubtractProjection::ivM |
Definition at line 67 of file subtract_projection.h.
int ProgSubtractProjection::limitfreq |
Definition at line 57 of file subtract_projection.h.
Image<double> ProgSubtractProjection::M |
Definition at line 69 of file subtract_projection.h.
double ProgSubtractProjection::maxResol |
Definition at line 54 of file subtract_projection.h.
int ProgSubtractProjection::maxwiIdx |
Definition at line 58 of file subtract_projection.h.
MetaDataVec ProgSubtractProjection::mdParticles |
Definition at line 105 of file subtract_projection.h.
Image<double> ProgSubtractProjection::Mfinal |
Definition at line 73 of file subtract_projection.h.
bool ProgSubtractProjection::nonNegative |
Definition at line 59 of file subtract_projection.h.
Projection ProgSubtractProjection::P |
Definition at line 77 of file subtract_projection.h.
double ProgSubtractProjection::padFourier |
Definition at line 53 of file subtract_projection.h.
Image<double> ProgSubtractProjection::padp |
Definition at line 99 of file subtract_projection.h.
struct Angles ProgSubtractProjection::part_angles |
Definition at line 114 of file subtract_projection.h.
Image<double> ProgSubtractProjection::Pctf |
Definition at line 71 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::PFourier |
Definition at line 87 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::PFourier0 |
Definition at line 88 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::PFourier1 |
Definition at line 89 of file subtract_projection.h.
MultidimArray< std::complex<double> > ProgSubtractProjection::PiMFourier |
Definition at line 91 of file subtract_projection.h.
Projection ProgSubtractProjection::Pmask |
Definition at line 78 of file subtract_projection.h.
Image<double> ProgSubtractProjection::PmaskI |
Definition at line 100 of file subtract_projection.h.
Projection ProgSubtractProjection::PmaskVol |
Definition at line 79 of file subtract_projection.h.
FourierProjector* ProgSubtractProjection::projector |
Definition at line 133 of file subtract_projection.h.
FourierProjector* ProgSubtractProjection::projectorMask |
Definition at line 134 of file subtract_projection.h.
int ProgSubtractProjection::rank |
Definition at line 132 of file subtract_projection.h.
Matrix1D<double> ProgSubtractProjection::roffset |
Definition at line 107 of file subtract_projection.h.
MDRowVec ProgSubtractProjection::row |
Definition at line 106 of file subtract_projection.h.
double ProgSubtractProjection::sampling |
Definition at line 52 of file subtract_projection.h.
int ProgSubtractProjection::sigma |
Definition at line 56 of file subtract_projection.h.
bool ProgSubtractProjection::subtract |
Definition at line 61 of file subtract_projection.h.
FourierTransformer ProgSubtractProjection::transformerI |
Definition at line 84 of file subtract_projection.h.
FourierTransformer ProgSubtractProjection::transformerIiM |
Definition at line 94 of file subtract_projection.h.
FourierTransformer ProgSubtractProjection::transformerP |
Definition at line 83 of file subtract_projection.h.
FourierTransformer ProgSubtractProjection::transformerPiM |
Definition at line 95 of file subtract_projection.h.
Image<double> ProgSubtractProjection::V |
Definition at line 65 of file subtract_projection.h.
Image<double> ProgSubtractProjection::vM |
Definition at line 66 of file subtract_projection.h.
MultidimArray<int> ProgSubtractProjection::wi |
Definition at line 62 of file subtract_projection.h.