Xmipp
v3.23.11-Nereus
|
Functions | |
void | generate_Spider_count (int imax, DocFile &DF_out) |
void | translate_to_Spider_sel (MetaData &SF_in, DocFile &DF_out, bool new_style) |
void | extract_angles (MetaData &SF_in, DocFile &DF_out, const std::string &ang1="rot", const std::string &ang2="tilt", const std::string &ang3="psi", bool fromMetadata=false) |
void | rename_for_Spider (MetaData &SF_in, MetaData &SF_out, const FileName &fn_root, const FileName &out_ext) |
void extract_angles | ( | MetaData & | SF_in, |
DocFile & | DF_out, | ||
const std::string & | ang1 = "rot" , |
||
const std::string & | ang2 = "tilt" , |
||
const std::string & | ang3 = "psi" , |
||
bool | fromMetadata = false |
||
) |
Extract angles from a SelFile and store them in a DocFile. You can specify the order of the angle extraction by default (rot, tilt, psi). An exception is thrown if the angles are not one of these.
Definition at line 88 of file spider.cpp.
void generate_Spider_count | ( | int | imax, |
DocFile & | DF_out | ||
) |
Generate a Spider "count" file. This function returns a DocFile with (1, 2, 3, ..., imax)
Definition at line 33 of file spider.cpp.
void rename_for_Spider | ( | MetaData & | SF_in, |
MetaData & | SF_out, | ||
const FileName & | fn_root, | ||
const FileName & | out_ext | ||
) |
Rename ACTIVE images in a selfile. The images are renamed with the fn_root given, consecutive numbers starting at 1, and the extension given. If no extension is given the same one as the input one is used. The correspondence between files is shown in stdout. A selFile is returned with the new set of images. The renaming is done by calls to cp in the Operating System, so there is no restriction on th einput names.
Definition at line 146 of file spider.cpp.
From a Xmipp selfile to Spider selfile. Comments are lost. A Spider Selfile is created in which the -1 of the Xmipp Selfiles are translated into 0.
Set new_style to produce the new style of Spider selfiles.
Definition at line 45 of file spider.cpp.