Xmipp
v3.23.11-Nereus
|
#include <xray_import.h>
Public Types | |
enum | DataSource { NONE, GENERIC, MISTRAL, BESSY } |
Xray microscopy data origin;. More... | |
Public Member Functions | |
void | init () |
Constructor. More... | |
void | readParams () |
Read argument from command line. More... | |
void | defineParams () |
Define params. More... | |
void | show () const |
Show. More... | |
void | run () |
void | readAndCrop (const FileName &fn, Image< double > &I, int xSize, int ySize) const |
Read an image and crop. More... | |
void | readGeoInfo (const FileName &fn, MDRow &rowGeo) const |
Read geometrical info. More... | |
void | readCorrectionInfo (const FileName &fn, double ¤tBeam, double &expTime, double &slitWidth) const |
Read related data to normalize the tomogram. More... | |
void | getDarkfield (const FileName &fnDir, Image< double > &IavgDark) |
void | getFlatfield (const FileName &fnDir, Image< double > &Iavg) |
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 | 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 Attributes | |
FileName | fnInput |
Input directory. More... | |
FileName | fnFlat |
Input Flatfield directory. More... | |
FileName | fnRoot |
Output directory. More... | |
FileName | fnOut |
Output Stack file. More... | |
ImageInfo | imgInfo |
Input image size. More... | |
int | cropSizeX |
Number of pixels to crop from each side. Set to 0 for no cropping. More... | |
int | cropSizeY |
int | cropSizeXi |
int | cropSizeYi |
int | cropSizeXe |
int | cropSizeYe |
int | thrNum |
Number of threads. More... | |
double | BPFactor |
Bad pixel factor. More... | |
FileName | fnBPMask |
bad Pixel filter Mask More... | |
bool | extFlat |
Flag to apply external flat field correction. More... | |
bool | darkFix |
Flag to apply dark field correction. More... | |
bool | logFix |
Flag to apply log corrections. More... | |
bool | selfAttFix |
Flag to apply self-attenuation corrections. More... | |
enum ProgXrayImport::DataSource | dSource |
size_t | tIni |
Index number used in Bessy tomograms and flatfield images. More... | |
size_t | tEnd |
size_t | fIni |
size_t | fEnd |
XmippH5File | H5File |
hdf5 file handler More... | |
double * | vCBeam |
double | vExpTime |
double | vslitWidth |
Matrix1D< double > | expTimeArray |
Matrix1D< double > | cBeamArray |
Matrix1D< double > | slitWidthArray |
Matrix1D< double > | anglesArray |
MetaDataDb | inMD |
List of input images. More... | |
MetaDataDb | outMD |
List of output images. More... | |
MetaDataDb | fMD |
List of flatfield images. More... | |
Image< double > | IavgFlat |
Image< double > | IavgDark |
Image< char > | bpMask |
std::vector< FileName > | filenames |
std::vector< size_t > | objIds |
ParallelTaskDistributor * | td |
ThreadManager * | tm |
Mutex | mutex |
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 |
Xray import parameters.
Definition at line 40 of file xray_import.h.
Xray microscopy data origin;.
Enumerator | |
---|---|
NONE | |
GENERIC | |
MISTRAL | |
BESSY |
Definition at line 70 of file xray_import.h.
|
virtual |
Define params.
Reimplemented from XmippProgram.
Definition at line 34 of file xray_import.cpp.
Get the darkfield for a directory. In case there is no darkfield a message is shown and the output image is empty.
Definition at line 292 of file xray_import.cpp.
Get the corrected average of a directory. If there is a darkfield, a file called fnRoot+"_"+fnDir+"_darkfield.xmp" is saved.
Definition at line 327 of file xray_import.cpp.
void ProgXrayImport::init | ( | void | ) |
Constructor.
Definition at line 119 of file xray_import.cpp.
void ProgXrayImport::readAndCrop | ( | const FileName & | fn, |
Image< double > & | I, | ||
int | xSize, | ||
int | ySize | ||
) | const |
Read an image and crop.
Definition at line 197 of file xray_import.cpp.
void ProgXrayImport::readCorrectionInfo | ( | const FileName & | fn, |
double & | currentBeam, | ||
double & | expTime, | ||
double & | slitWidth | ||
) | const |
Read related data to normalize the tomogram.
Definition at line 250 of file xray_import.cpp.
Read geometrical info.
Definition at line 207 of file xray_import.cpp.
|
virtual |
Read argument from command line.
Reimplemented from XmippProgram.
Definition at line 128 of file xray_import.cpp.
|
virtual |
Really import
Reimplemented from XmippProgram.
Definition at line 609 of file xray_import.cpp.
|
virtual |
Show.
Reimplemented from XmippProgram.
Definition at line 183 of file xray_import.cpp.
Matrix1D<double> ProgXrayImport::anglesArray |
Definition at line 82 of file xray_import.h.
double ProgXrayImport::BPFactor |
Bad pixel factor.
Definition at line 58 of file xray_import.h.
Image<char> ProgXrayImport::bpMask |
Definition at line 94 of file xray_import.h.
Matrix1D<double> ProgXrayImport::cBeamArray |
Definition at line 82 of file xray_import.h.
int ProgXrayImport::cropSizeX |
Number of pixels to crop from each side. Set to 0 for no cropping.
Definition at line 54 of file xray_import.h.
int ProgXrayImport::cropSizeXe |
Definition at line 54 of file xray_import.h.
int ProgXrayImport::cropSizeXi |
Definition at line 54 of file xray_import.h.
int ProgXrayImport::cropSizeY |
Definition at line 54 of file xray_import.h.
int ProgXrayImport::cropSizeYe |
Definition at line 54 of file xray_import.h.
int ProgXrayImport::cropSizeYi |
Definition at line 54 of file xray_import.h.
bool ProgXrayImport::darkFix |
Flag to apply dark field correction.
Definition at line 64 of file xray_import.h.
enum ProgXrayImport::DataSource ProgXrayImport::dSource |
Matrix1D<double> ProgXrayImport::expTimeArray |
Definition at line 82 of file xray_import.h.
bool ProgXrayImport::extFlat |
Flag to apply external flat field correction.
Definition at line 62 of file xray_import.h.
size_t ProgXrayImport::fEnd |
Definition at line 78 of file xray_import.h.
std::vector<FileName> ProgXrayImport::filenames |
Definition at line 95 of file xray_import.h.
size_t ProgXrayImport::fIni |
Definition at line 78 of file xray_import.h.
MetaDataDb ProgXrayImport::fMD |
List of flatfield images.
Definition at line 89 of file xray_import.h.
FileName ProgXrayImport::fnBPMask |
bad Pixel filter Mask
Definition at line 60 of file xray_import.h.
FileName ProgXrayImport::fnFlat |
Input Flatfield directory.
Definition at line 46 of file xray_import.h.
FileName ProgXrayImport::fnInput |
Input directory.
Definition at line 44 of file xray_import.h.
FileName ProgXrayImport::fnOut |
Output Stack file.
Definition at line 50 of file xray_import.h.
FileName ProgXrayImport::fnRoot |
Output directory.
Definition at line 48 of file xray_import.h.
XmippH5File ProgXrayImport::H5File |
hdf5 file handler
Definition at line 80 of file xray_import.h.
Image<double> ProgXrayImport::IavgDark |
Definition at line 93 of file xray_import.h.
Image<double> ProgXrayImport::IavgFlat |
Definition at line 92 of file xray_import.h.
ImageInfo ProgXrayImport::imgInfo |
Input image size.
Definition at line 52 of file xray_import.h.
MetaDataDb ProgXrayImport::inMD |
List of input images.
Definition at line 85 of file xray_import.h.
bool ProgXrayImport::logFix |
Flag to apply log corrections.
Definition at line 66 of file xray_import.h.
Mutex ProgXrayImport::mutex |
Definition at line 102 of file xray_import.h.
std::vector<size_t> ProgXrayImport::objIds |
Definition at line 96 of file xray_import.h.
MetaDataDb ProgXrayImport::outMD |
List of output images.
Definition at line 87 of file xray_import.h.
bool ProgXrayImport::selfAttFix |
Flag to apply self-attenuation corrections.
Definition at line 68 of file xray_import.h.
Matrix1D<double> ProgXrayImport::slitWidthArray |
Definition at line 82 of file xray_import.h.
ParallelTaskDistributor* ProgXrayImport::td |
Definition at line 100 of file xray_import.h.
size_t ProgXrayImport::tEnd |
Definition at line 78 of file xray_import.h.
int ProgXrayImport::thrNum |
Number of threads.
Definition at line 56 of file xray_import.h.
size_t ProgXrayImport::tIni |
Index number used in Bessy tomograms and flatfield images.
Definition at line 78 of file xray_import.h.
ThreadManager* ProgXrayImport::tm |
Definition at line 101 of file xray_import.h.
double* ProgXrayImport::vCBeam |
Definition at line 81 of file xray_import.h.
double ProgXrayImport::vExpTime |
Definition at line 81 of file xray_import.h.
double ProgXrayImport::vslitWidth |
Definition at line 81 of file xray_import.h.