Xmipp
v3.23.11-Nereus
|
#include <tomo_extract_subtomograms.h>
Public Member Functions | |
void | defineParams () |
void | readParams () |
void | createSphere (int halfboxsize) |
void | normalizeSubtomo (MultidimArray< double > &subtomo, int halfboxsize) |
void | extractSubtomoFixedSize (MultidimArray< double > &subtomoExtraction) |
void | writeSubtomo (int idx, int xcoor, int ycoor, int zcoor, size_t particleid) |
void | run () |
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 | upsample (const MultidimArray< std::complex< double >> &from, MultidimArray< std::complex< double >> &to) |
static void | downsample (const MultidimArray< std::complex< double >> &from, MultidimArray< std::complex< double >> &to) |
Public Attributes | |
FileName | fnOut |
FileName | fnTom |
FileName | fnCoor |
size_t | Xdim |
size_t | Ydim |
size_t | Zdim |
MetaDataVec | md |
MetaDataVec | mdout |
MDRowVec | rowout |
bool | invertContrast |
bool | normalize |
bool | fixedBoxSize |
double | scaleFactor |
double | downsampleFactor |
std::vector< size_t > | maskIdx |
int | boxsize |
int | nthrs |
Image< double > | subtomoImg |
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 |
Definition at line 44 of file tomo_extract_subtomograms.h.
void ProgTomoExtractSubtomograms::createSphere | ( | int | halfboxsize | ) |
Definition at line 62 of file tomo_extract_subtomograms.cpp.
|
virtual |
Function in which the param of each Program are defined.
Reimplemented from XmippProgram.
Definition at line 47 of file tomo_extract_subtomograms.cpp.
|
static |
Definition at line 334 of file tomo_extract_subtomograms.cpp.
void ProgTomoExtractSubtomograms::extractSubtomoFixedSize | ( | MultidimArray< double > & | subtomoExtraction | ) |
Definition at line 144 of file tomo_extract_subtomograms.cpp.
void ProgTomoExtractSubtomograms::normalizeSubtomo | ( | MultidimArray< double > & | subtomo, |
int | halfboxsize | ||
) |
Definition at line 88 of file tomo_extract_subtomograms.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 33 of file tomo_extract_subtomograms.cpp.
|
virtual |
This function will be start running the program. it also should be implemented by derived classes.
Reimplemented from XmippProgram.
Definition at line 180 of file tomo_extract_subtomograms.cpp.
|
static |
Definition at line 307 of file tomo_extract_subtomograms.cpp.
void ProgTomoExtractSubtomograms::writeSubtomo | ( | int | idx, |
int | xcoor, | ||
int | ycoor, | ||
int | zcoor, | ||
size_t | particleid | ||
) |
Definition at line 116 of file tomo_extract_subtomograms.cpp.
int ProgTomoExtractSubtomograms::boxsize |
Is the volume previously masked?
Definition at line 69 of file tomo_extract_subtomograms.h.
double ProgTomoExtractSubtomograms::downsampleFactor |
Definition at line 65 of file tomo_extract_subtomograms.h.
bool ProgTomoExtractSubtomograms::fixedBoxSize |
Definition at line 62 of file tomo_extract_subtomograms.h.
FileName ProgTomoExtractSubtomograms::fnCoor |
Definition at line 50 of file tomo_extract_subtomograms.h.
FileName ProgTomoExtractSubtomograms::fnOut |
Filenames
Definition at line 48 of file tomo_extract_subtomograms.h.
FileName ProgTomoExtractSubtomograms::fnTom |
Definition at line 49 of file tomo_extract_subtomograms.h.
bool ProgTomoExtractSubtomograms::invertContrast |
Definition at line 60 of file tomo_extract_subtomograms.h.
std::vector<size_t> ProgTomoExtractSubtomograms::maskIdx |
Definition at line 66 of file tomo_extract_subtomograms.h.
MetaDataVec ProgTomoExtractSubtomograms::md |
Definition at line 56 of file tomo_extract_subtomograms.h.
MetaDataVec ProgTomoExtractSubtomograms::mdout |
Definition at line 57 of file tomo_extract_subtomograms.h.
bool ProgTomoExtractSubtomograms::normalize |
Definition at line 61 of file tomo_extract_subtomograms.h.
int ProgTomoExtractSubtomograms::nthrs |
Definition at line 70 of file tomo_extract_subtomograms.h.
MDRowVec ProgTomoExtractSubtomograms::rowout |
Definition at line 58 of file tomo_extract_subtomograms.h.
double ProgTomoExtractSubtomograms::scaleFactor |
Definition at line 64 of file tomo_extract_subtomograms.h.
Image<double> ProgTomoExtractSubtomograms::subtomoImg |
Definition at line 72 of file tomo_extract_subtomograms.h.
size_t ProgTomoExtractSubtomograms::Xdim |
Definition at line 52 of file tomo_extract_subtomograms.h.
size_t ProgTomoExtractSubtomograms::Ydim |
Definition at line 53 of file tomo_extract_subtomograms.h.
size_t ProgTomoExtractSubtomograms::Zdim |
Definition at line 54 of file tomo_extract_subtomograms.h.