32 addUsageLine(
"Generate projections as if it were a single axis tomographic series.");
37 addExampleLine(
"Generating a set of projections using a projection parameter:",
false);
38 addExampleLine(
"Generating a single projection at 45 degrees around X axis:",
false);
39 addExampleLine(
"Generating a single projection at 45 degrees around Y axis:",
false);
41 addExampleLine(
"In the following link you can find an example of projection parameter file:",
false);
43 addExampleLine(
"https://sourceforge.net/p/testxmipp/code/ci/master/tree/input/tomoProjection.param?format=raw",
false);
66 std::cerr <<
"Projecting ...\n";
70 projMD.
setComment(
"True rot, tilt and psi; rot, tilt, psi, X and Y shifts applied");
71 double tRot,tTilt,tPsi,rot,tilt,
psi;
77 for (
int iangle=0; iangle<=iterAngle; iangle++)
127 std::cout << idx <<
"\t" << tRot <<
"\t" 128 << tTilt <<
"\t" << tPsi << std::endl;
129 else if ((expectedNumProjs %
XMIPP_MAX(1, numProjs / 60))
141 projMD.
setComment(
"Angles rot,tilt and psi contain noisy projection angles and rot2,tilt2 and psi2 contain actual projection angles");
153 phantomVol().setXmippOrigin();
bool only_create_angles
Only create angles, do not project.
void init_progress_bar(long total)
void defineParams(XmippProgram *program)
double Npixel_dev
Standard deviation of the noise to be added to each pixel grey value.
FileName fnOut
Output filename (used for a singleProjection)
virtual void defineParams()
double tilt0
Minimum tilt around this axis.
void write(const FileName &name="", size_t select_img=ALL_IMAGES, bool isStack=false, int mode=WRITE_OVERWRITE, CastWriteMode castMode=CW_CAST, int _swapWrite=0)
void compose(const String &str, const size_t no, const String &ext="")
void readParams(XmippProgram *program)
double tiltF
Maximum tilt around this axis.
void addSeeAlsoLine(const char *seeAlso)
double Npixel_avg
Bias to be applied to each pixel grey value */.
int proj_Ydim
Projection Ydim.
void produceSideInfo(const ParametersProjectionTomography &prm)
double Ncenter_avg
Bias to apply to the image center.
double Ncenter_dev
Standard deviation of the image center.
void progress_bar(long rlen)
void getEulerAngles(double &rot, double &tilt, double &psi, const size_t n=0) const
void addExampleLine(const char *example, bool verbatim=true)
double Nangle_dev
Standard deviation of the angles.
int proj_Xdim
Projection Xdim.
void calculateProjectionAngles(Projection &P, double angle, double inplaneRot, const Matrix1D< double > &sinplane)
FileName fnRoot
Root filename (used for a stack)
void setEulerAngles(double rot, double tilt, double psi, const size_t n=0)
bool singleProjection
Only project a single image.
virtual void readParams()
double psi(const double x)
#define VECTOR_R3(v, x, y, z)
ParametersProjectionTomography projParam
Projection parameters.
double tiltStep
Step in tilt.
void projectVolumeOffCentered(MultidimArray< double > &V, Projection &P, int Ydim, int Xdim)
void addUsageLine(const char *line, bool verbatim=false)
unsigned int randomize_random_generator()
Image< double > phantomVol
Phantom Xmipp volume.
double Nangle_avg
Bias to apply to the angles.