Xmipp
v3.23.11-Nereus
|
#include <fstream>
#include "recons_misc.h"
#include "basic_art.h"
#include "core/metadata_vec.h"
#include "core/symmetries.h"
#include "data/mask.h"
#include "data/projection.h"
#include "data/wavelet.h"
#include "symmetrize.h"
Go to the source code of this file.
Macros | |
#define | MODE8 |
#define | NFEATURES 8 |
#define | GET_RESULTS(fh, fn, avg, cov, N, idx) |
#define | POCS_N_measure 8 |
#define | POCS_N_use 2 |
Functions | |
void | buildReconsInfo (MetaDataVec &selfile, const FileName &fn_ctf, const SymList &SL, ReconsInfo *&IMG_Inf, bool do_not_use_symproj) |
void | sortPerpendicular (int numIMG, ReconsInfo *IMG_Inf, MultidimArray< int > &ordered_list, int N) |
void | noSort (int numIMG, MultidimArray< int > &ordered_list) |
void | sortRandomly (int numIMG, MultidimArray< int > &ordered_list) |
void | updateResidualVector (BasicARTParameters &prm, GridVolume &vol_basis, double &kappa, double &pow_residual_vol, double &pow_residual_imgs) |
#define GET_RESULTS | ( | fh, | |
fn, | |||
avg, | |||
cov, | |||
N, | |||
idx | |||
) |
#define MODE8 |
Definition at line 412 of file recons_misc.cpp.
#define NFEATURES 8 |
#define POCS_N_measure 8 |
Definition at line 696 of file recons_misc.cpp.
#define POCS_N_use 2 |
Definition at line 697 of file recons_misc.cpp.
void buildReconsInfo | ( | MetaDataVec & | selfile, |
const FileName & | fn_ctf, | ||
const SymList & | SL, | ||
ReconsInfo *& | IMG_Inf, | ||
bool | do_not_use_symproj | ||
) |
Build from a Selection File and a Symmetry List. The result is stored in the Recons_info array which should point to NULL when it is not initialized.
Definition at line 37 of file recons_misc.cpp.
void noSort | ( | int | numIMG, |
MultidimArray< int > & | ordered_list | ||
) |
No projection sorting at all. This function directly returns the same order as in the selection file
Definition at line 222 of file recons_misc.cpp.
void sortPerpendicular | ( | int | numIMG, |
ReconsInfo * | IMG_Inf, | ||
MultidimArray< int > & | ordered_list, | ||
int | N = 2 |
||
) |
Sort projections orthogonally. This function sorts a number of images given by numIMG, whose information about their Euler angles are in IMG_inf, into an ordered list which gives the indexes. First an image is chosen randomly from the whole set. Then all images are compared to the first one, and the most perpendicular one is chosen. The remaining set of images are compared to this two images and the most perpendicular one to the former two is chosen, and so on until no image is left in the set.
If the result in ordered list is 4, 70, 54, 203, 1, 0, ... it means that the first image is the number 4, then goes the 70, then the 54, ...
If N!=-1 then the product is done only with the last N images. A very useful value is N=2
Definition at line 145 of file recons_misc.cpp.
void sortRandomly | ( | int | numIMG, |
MultidimArray< int > & | ordered_list | ||
) |
Randomize the projections. This function sorts randomly a number of images given by numIMG.
Definition at line 230 of file recons_misc.cpp.
void updateResidualVector | ( | BasicARTParameters & | prm, |
GridVolume & | vol_basis, | ||
double & | kappa, | ||
double & | pow_residual_vol, | ||
double & | pow_residual_imgs | ||
) |
Update residual vector for WLS ART
Definition at line 275 of file recons_misc.cpp.