Xmipp
v3.23.11-Nereus
|
#include <tomo_align_tilt_series.h>
Public Member Functions | |
~ProgTomographAlignment () | |
Destructor. More... | |
void | defineParams () |
Usage. More... | |
void | readParams () |
Read parameters from argument line. More... | |
void | show () |
Show parameters. More... | |
void | produceSideInfo () |
Produce side info. More... | |
void | computeAffineTransformations (bool globalAffineToUse) |
Compute affine transformations. More... | |
void | identifyOutliers (bool mark) |
Identify outliers. More... | |
void | produceInformationFromLandmarks () |
Produce information from landmarks. More... | |
bool | refineLandmark (int ii, int jj, const Matrix1D< double > &rii, Matrix1D< double > &rjj, double &maxCorr, bool tryFourier) const |
bool | refineLandmark (const MultidimArray< double > &pieceii, int jj, Matrix1D< double > &rjj, double actualCorrThreshold, bool reversed, double &maxCorr) const |
bool | refineChain (LandmarkChain &chain, double &corrChain) |
void | generateLandmarkSet () |
Generate landmark set using a grid. More... | |
void | writeLandmarkSet (const FileName &fnLandmark) const |
Write landmark set. More... | |
void | writeTransformations (const FileName &fnTransformations) const |
Write affine transformations. More... | |
void | readLandmarkSet (const FileName &fnLandmark) |
Read landmark set. More... | |
void | removeOutlierLandmarks (const Alignment &alignment) |
Remove Outliers. More... | |
void | alignImages (const Alignment &alignment) |
Align images. More... | |
void | run () |
Run: do the real work. 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) |
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 () |
Public Attributes | |
FileName | fnSel |
MetaData File with all images. More... | |
FileName | fnSelOrig |
MetaData File with all images at the original scale. More... | |
FileName | fnRoot |
Output root. More... | |
int | numThreads |
Number of threads to use for parallel computing. More... | |
bool | globalAffine |
Look for local affine transformation. More... | |
bool | useCriticalPoints |
Use critical points. More... | |
size_t | Ncritical |
Number of critical points. More... | |
size_t | seqLength |
Sequence Length. More... | |
size_t | blindSeqLength |
int | gridSamples |
Grid samples. More... | |
double | maxShiftPercentage |
Maxshift percentage. More... | |
int | maxIterDE |
Maximum number of iterations in Differential Evolution. More... | |
double | psiMax |
Maximum rotation. More... | |
int | maxStep |
Maximum Step for chain refinement. More... | |
double | deltaRot |
Delta rot. More... | |
double | localSize |
Local refinement size. More... | |
bool | optimizeTiltAngle |
Optimize tilt angle of tilt axis. More... | |
bool | isCapillar |
This tilt series comes from a capillar. More... | |
bool | dontNormalize |
Don't normalize the corrected images. More... | |
bool | difficult |
Difficult. More... | |
double | corrThreshold |
Correlation threshold for a good landmark. More... | |
bool | showAffine |
Show affine transformations. More... | |
double | thresholdAffine |
Threshold affine. More... | |
double | identifyOutliersZ |
Identify outlier micrographs. More... | |
bool | doNotIdentifyOutliers |
Do not identify outlier micrographs. More... | |
int | pyramidLevel |
Pyramid. More... | |
int | lastStep |
Last step to run (-1=run them all) More... | |
int | iteration |
MetaDataVec | SF |
MetaDataVec | SForig |
std::vector< MultidimArray< unsigned char > * > | img |
std::vector< MultidimArray< unsigned char > * > | maskImg |
int | iMinTilt |
std::vector< double > | tiltList |
std::vector< std::string > | name_list |
Matrix1D< double > | avgForwardPatchCorr |
Matrix1D< double > | avgBackwardPatchCorr |
Matrix1D< int > | isOutlier |
int | Nimg |
std::vector< std::vector< Matrix2D< double > > > | affineTransformations |
std::vector< double > | correlationList |
Matrix2D< double > | allLandmarksX |
Matrix2D< double > | allLandmarksY |
std::vector< std::vector< int > > | Vseti |
std::vector< std::vector< int > > | Vsetj |
std::vector< Matrix1D< double > > | barpi |
Matrix1D< int > | ni |
Alignment * | bestPreviousAlignment |
bool | showRefinement |
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 |
This is the main class
Definition at line 76 of file tomo_align_tilt_series.h.
ProgTomographAlignment::~ProgTomographAlignment | ( | ) |
Destructor.
Definition at line 1621 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::alignImages | ( | const Alignment & | alignment | ) |
Align images.
Definition at line 2245 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::computeAffineTransformations | ( | bool | globalAffineToUse | ) |
Compute affine transformations.
Definition at line 674 of file tomo_align_tilt_series.cpp.
|
virtual |
Usage.
Reimplemented from XmippProgram.
Definition at line 522 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::generateLandmarkSet | ( | ) |
Generate landmark set using a grid.
Definition at line 1639 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::identifyOutliers | ( | bool | mark | ) |
Identify outliers.
Definition at line 701 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::produceInformationFromLandmarks | ( | ) |
Produce information from landmarks.
Definition at line 2414 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::produceSideInfo | ( | ) |
Produce side info.
Definition at line 742 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::readLandmarkSet | ( | const FileName & | fnLandmark | ) |
Read landmark set.
Definition at line 2170 of file tomo_align_tilt_series.cpp.
|
virtual |
Read parameters from argument line.
Reimplemented from XmippProgram.
Definition at line 452 of file tomo_align_tilt_series.cpp.
bool ProgTomographAlignment::refineChain | ( | LandmarkChain & | chain, |
double & | corrChain | ||
) |
Refine chain.
Definition at line 1997 of file tomo_align_tilt_series.cpp.
bool ProgTomographAlignment::refineLandmark | ( | int | ii, |
int | jj, | ||
const Matrix1D< double > & | rii, | ||
Matrix1D< double > & | rjj, | ||
double & | maxCorr, | ||
bool | tryFourier | ||
) | const |
Refine landmark. ii is the index of the original image, jj is the index in the image at which the landmark is being refined. rii and rjj are the corresponding landmark positions in both images.
The function returns whether the landmark is accepted or not.
Definition at line 1735 of file tomo_align_tilt_series.cpp.
bool ProgTomographAlignment::refineLandmark | ( | const MultidimArray< double > & | pieceii, |
int | jj, | ||
Matrix1D< double > & | rjj, | ||
double | actualCorrThreshold, | ||
bool | reversed, | ||
double & | maxCorr | ||
) | const |
Refine landmark. The same as the previous function but an image is provided as pattern (ii) instead of an index and a position.
Definition at line 1854 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::removeOutlierLandmarks | ( | const Alignment & | alignment | ) |
Remove Outliers.
Definition at line 2455 of file tomo_align_tilt_series.cpp.
|
virtual |
Run: do the real work.
Reimplemented from XmippProgram.
Definition at line 2518 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::show | ( | ) |
Show parameters.
Definition at line 490 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::writeLandmarkSet | ( | const FileName & | fnLandmark | ) | const |
Write landmark set.
Definition at line 2146 of file tomo_align_tilt_series.cpp.
void ProgTomographAlignment::writeTransformations | ( | const FileName & | fnTransformations | ) | const |
Write affine transformations.
Definition at line 2210 of file tomo_align_tilt_series.cpp.
std::vector< std::vector< Matrix2D<double> > > ProgTomographAlignment::affineTransformations |
Definition at line 265 of file tomo_align_tilt_series.h.
Matrix2D<double> ProgTomographAlignment::allLandmarksX |
Definition at line 271 of file tomo_align_tilt_series.h.
Matrix2D<double> ProgTomographAlignment::allLandmarksY |
Definition at line 274 of file tomo_align_tilt_series.h.
Matrix1D<double> ProgTomographAlignment::avgBackwardPatchCorr |
Definition at line 255 of file tomo_align_tilt_series.h.
Matrix1D<double> ProgTomographAlignment::avgForwardPatchCorr |
Definition at line 252 of file tomo_align_tilt_series.h.
std::vector< Matrix1D<double> > ProgTomographAlignment::barpi |
Definition at line 283 of file tomo_align_tilt_series.h.
Alignment* ProgTomographAlignment::bestPreviousAlignment |
Definition at line 289 of file tomo_align_tilt_series.h.
size_t ProgTomographAlignment::blindSeqLength |
Add blind landmarks. Set to -1 for no blind landmarks
Definition at line 105 of file tomo_align_tilt_series.h.
std::vector< double > ProgTomographAlignment::correlationList |
Definition at line 268 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::corrThreshold |
Correlation threshold for a good landmark.
Definition at line 141 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::deltaRot |
Delta rot.
Definition at line 123 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::difficult |
Difficult.
Definition at line 138 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::doNotIdentifyOutliers |
Do not identify outlier micrographs.
Definition at line 153 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::dontNormalize |
Don't normalize the corrected images.
Definition at line 135 of file tomo_align_tilt_series.h.
FileName ProgTomographAlignment::fnRoot |
Output root.
Definition at line 86 of file tomo_align_tilt_series.h.
FileName ProgTomographAlignment::fnSel |
MetaData File with all images.
Definition at line 80 of file tomo_align_tilt_series.h.
FileName ProgTomographAlignment::fnSelOrig |
MetaData File with all images at the original scale.
Definition at line 83 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::globalAffine |
Look for local affine transformation.
Definition at line 92 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::gridSamples |
Grid samples.
Definition at line 108 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::identifyOutliersZ |
Identify outlier micrographs.
Definition at line 150 of file tomo_align_tilt_series.h.
std::vector< MultidimArray<unsigned char> *> ProgTomographAlignment::img |
Definition at line 237 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::iMinTilt |
Definition at line 243 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::isCapillar |
This tilt series comes from a capillar.
Definition at line 132 of file tomo_align_tilt_series.h.
Matrix1D<int> ProgTomographAlignment::isOutlier |
Definition at line 258 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::iteration |
Definition at line 162 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::lastStep |
Last step to run (-1=run them all)
Definition at line 159 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::localSize |
Local refinement size.
Definition at line 126 of file tomo_align_tilt_series.h.
std::vector< MultidimArray<unsigned char> *> ProgTomographAlignment::maskImg |
Definition at line 240 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::maxIterDE |
Maximum number of iterations in Differential Evolution.
Definition at line 114 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::maxShiftPercentage |
Maxshift percentage.
Definition at line 111 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::maxStep |
Maximum Step for chain refinement.
Definition at line 120 of file tomo_align_tilt_series.h.
std::vector< std::string > ProgTomographAlignment::name_list |
Definition at line 249 of file tomo_align_tilt_series.h.
size_t ProgTomographAlignment::Ncritical |
Number of critical points.
Definition at line 98 of file tomo_align_tilt_series.h.
Matrix1D<int> ProgTomographAlignment::ni |
Definition at line 286 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::Nimg |
Definition at line 261 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::numThreads |
Number of threads to use for parallel computing.
Definition at line 89 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::optimizeTiltAngle |
Optimize tilt angle of tilt axis.
Definition at line 129 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::psiMax |
Maximum rotation.
Definition at line 117 of file tomo_align_tilt_series.h.
int ProgTomographAlignment::pyramidLevel |
Pyramid.
Definition at line 156 of file tomo_align_tilt_series.h.
size_t ProgTomographAlignment::seqLength |
Sequence Length.
Definition at line 101 of file tomo_align_tilt_series.h.
MetaDataVec ProgTomographAlignment::SF |
Definition at line 231 of file tomo_align_tilt_series.h.
MetaDataVec ProgTomographAlignment::SForig |
Definition at line 234 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::showAffine |
Show affine transformations.
Definition at line 144 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::showRefinement |
Definition at line 292 of file tomo_align_tilt_series.h.
double ProgTomographAlignment::thresholdAffine |
Threshold affine.
Definition at line 147 of file tomo_align_tilt_series.h.
std::vector< double > ProgTomographAlignment::tiltList |
Definition at line 246 of file tomo_align_tilt_series.h.
bool ProgTomographAlignment::useCriticalPoints |
Use critical points.
Definition at line 95 of file tomo_align_tilt_series.h.
std::vector< std::vector<int> > ProgTomographAlignment::Vseti |
Definition at line 277 of file tomo_align_tilt_series.h.
std::vector< std::vector<int> > ProgTomographAlignment::Vsetj |
Definition at line 280 of file tomo_align_tilt_series.h.