53 std::cerr <<
"precompute_sampling\n" 54 <<
" -o root_file_name : Root for output files\n" 55 <<
" [-sym cn] :One of the 17 possible symmetries in\n" 56 <<
" single particle electronmicroscopy\n" 57 <<
" i.e. ci, cs, cn, cnv, cnh, sn, dn, dnv, dnh, t, td, th, o, oh, i, ih\n" 58 <<
" : where n may change from 1 to 99\n" 59 <<
" [-sampling_rate 5] : Distance in degrees between sampling points\n" 60 <<
" [-neighborhood 1] : A sampling point is neighbor if closer than this value in degrees\n" 61 <<
" [-max_tilt_angle <t=0>] : maximum tilt angle in degrees\n" 62 <<
" [-min_tilt_angle <t=-180>] : minimum tilt angle in degrees\n" 64 <<
"Example of use: Sample at 2degres and compute neighboor at " 65 <<
" 5 degrees for c6 symmetry\n" 66 <<
" xmipp_precompute_sampling -o out -sym c6 " 67 <<
" -sampling_rate 2 -neighborhood 5 -max_tilt_angle 70 " 68 <<
" -min_tilt_angle 50 \n" 76 <<
"Sampling rate: " <<
sampling << std::endl
78 <<
"symmetry group: " <<
fn_sym << std::endl
114 double rot, tilt,
psi;
115 double rotp, tiltp, psip;
126 std::cerr << 1 <<
" " << 3 <<
" " << rot <<
" " << tilt <<
" " << psi << std::endl;
129 for (
int isym = 0; isym <
mysampling.
SL.SymsNo(); isym++)
135 std::cout << row.
transpose() <<
" 1 " << isym + 2 << std::endl;
143 std::cerr << isym + 2 <<
" " << 3 <<
" " << rotp <<
" " << tiltp <<
" " << psip << std::endl;
166 <<
" 1.1 2 " << std::endl;
void setSampling(double sampling)
void removeRedundantPoints(const int symmetry, int sym_order)
std::string sampling_file_root
void Euler_direction(double alpha, double beta, double gamma, Matrix1D< double > &v)
void createAsymUnitFile(const FileName &docfilename)
Prog_Sampling_Parameters()
void setNeighborhoodRadius(double neighborhood)
bool isSymmetryGroup(FileName fn_sym, int &pgGroup, int &pgOrder)
std::vector< Matrix1D< double > > no_redundant_sampling_points_vector
void Euler_apply_transf(const Matrix2D< double > &L, const Matrix2D< double > &R, double rot, double tilt, double psi, double &newrot, double &newtilt, double &newpsi)
Matrix1D< T > transpose() const
void computeSamplingPoints(bool only_half_sphere=true, double max_tilt=180, double min_tilt=0)
const char * getParameter(int argc, const char **argv, const char *param, const char *option)
float textToFloat(const char *str)
void resize(size_t Xdim, bool copy=true)
std::vector< std::vector< size_t > > my_neighbors
void read(int argc, const char **argv)
std::vector< Matrix1D< double > > no_redundant_sampling_points_angles
double psi(const double x)
std::vector< Matrix1D< double > > sampling_points_vector
void resize(size_t Ydim, size_t Xdim, bool noCopy=false)