43 addParamsLine(
" -i <input_untilted_micrograph> : From which the untilted images will be cutted");
45 addParamsLine(
" [--orig <original_micrograph>] : unless this parameter is specified");
46 addParamsLine(
" -o <output_stack> : Name for the particle images");
47 addParamsLine(
" :+ Two files will be created: output_stack with the particles in a Spider stack an output_stack.xmd with the list of image names, the micrograph they were taken from, and their coordinates");
49 addParamsLine(
" [--pos <position_file>] : file with particle coordinates");
51 addParamsLine(
" [--extractNoise <n=-1>] : extract noise particles instead of true particles");
52 addParamsLine(
" : n is the number of noise particles to extract");
53 addParamsLine(
" : If n=-1, then the number of noise particles is the number of coordinates in the pos file");
54 addParamsLine(
" : The input posfile WILL be rewritten with the noise coordinates");
58 addParamsLine(
" [--downsampling <float=1.>] : The positions were determined with this downsampling rate");
59 addParamsLine(
" [--Ydim <window_Y_dim>] : If not given Ydim=Xdim");
61 addParamsLine(
" [--log] : Take logarithm (compute transmitance)");
62 addParamsLine(
" [--appendToStack] : The output stack is deleted.");
63 addParamsLine(
" : Use this option to add the new images to the stack");
64 addParamsLine(
" [--fillBorders] : If the box is outside the micrograph, fill the missing pixels");
65 addParamsLine(
" : instead of setting the whole image to blank");
68 addParamsLine(
" [-t <input_tilted_micrograph>] : From which the tilted images will be cutted");
70 addParamsLine(
" [--tiltfn <output_stack>] : Name for tilted images (Stack FileName)");
72 addParamsLine(
" [--tiltAngles <angles_file>] : Name of the estimated tilt angles");
73 addParamsLine(
" : Angle from the Y axis to the tilt axis. Both (tilted and untilted) must be cut with its corresponding angle. Cut images are rotated so that the tilt axis is parallel to Y axis.");
75 addParamsLine(
" [--tiltPos <position_file>] : file with particle coordinates");
77 addParamsLine(
" [--ctfparam <ctfparam>] : metadata with ctf parameters for the micrograph.");
79 addExampleLine (
" xmipp_micrograph_scissor -i g7107.raw --pos g7107.raw.Common.pos --oroot images --Xdim 64");
80 addExampleLine (
" xmipp_micrograph_scissor --untilted Preprocessing/untilt/down1_untilt.raw --tilted Preprocessing/tilt/down1_tilt.raw --untiltfn untilt --tiltfn tilt --Xdim 60 --tiltAngles ParticlePicking/down1_untilt.raw.angles.txt --pos ParticlePicking/down1_untilt.raw.Common.pos --tiltPos ParticlePicking/down1_untilt.raw.tilted.Common.pos");
119 fn_out_tilted =
getParam(
"--tiltfn");
121 fn_angles =
getParam(
"--tiltAngles");
122 fn_tilt_pos =
getParam(
"--tiltPos");
142 if (down_transform != 1.)
155 m.
produce_all_images(0, -1, fn_out, fn_orig, 0., rmStack, fillBorders, extractNoise, Nnoise);
179 double alpha_u, alpha_t, tilt_angle;
180 auxMd.
read(fn_angles);
void set_ctfparams(const MDRowVec &ctf)
double getDoubleParam(const char *param, int arg=0)
void read_coordinates(int label, const FileName &fn_coords)
std::vector< Particle_coords > coords
void produce_all_images(int label, double minCost, const FileName &fn_root, const FileName &fn_image="", double ang=0, bool rmStack=false, bool fillBorders=false, bool extractNoise=false, int Nnoise=-1)
bool containsLabel(MDLabel label) const override
void set_window_size(int _X_window_size, int _Y_window_size)
int add_label(const std::string &label)
void addSeeAlsoLine(const char *seeAlso)
void open_micrograph(const FileName &fn_micrograph)
T & getValue(MDLabel label)
bool compute_transmitance
void scale_coordinates(const double &c)
const char * getParam(const char *param, int arg=0)
void addExampleLine(const char *example, bool verbatim=true)
void set_transmitance_flag(bool flag_value)
bool checkParam(const char *param)
void addUsageLine(const char *line, bool verbatim=false)
unsigned int randomize_random_generator()
void set_inverse_flag(bool flag_value)
int getIntParam(const char *param, int arg=0)
void addParamsLine(const String &line)