Xmipp  v3.23.11-Nereus
Functions
mlf_align2d.cpp File Reference
#include "mlf_align2d.h"
#include "core/metadata_sql.h"
#include "core/transformations.h"
Include dependency graph for mlf_align2d.cpp:

Go to the source code of this file.

Functions

double lcdf_tstudent_mlf1 (double t)
 
double lcdf_tstudent_mlf3 (double t)
 
double lcdf_tstudent_mlf6 (double t)
 
double lcdf_tstudent_mlf9 (double t)
 
double lcdf_tstudent_mlf30 (double t)
 
void writeImage (Image< double > &img, const FileName &fn, MDRow &row)
 

Function Documentation

◆ lcdf_tstudent_mlf1()

double lcdf_tstudent_mlf1 ( double  t)

Definition at line 1565 of file mlf_align2d.cpp.

1566 {
1567  return cdf_tstudent(1,t);
1568 }
double cdf_tstudent(int k, double t)

◆ lcdf_tstudent_mlf3()

double lcdf_tstudent_mlf3 ( double  t)

Definition at line 1569 of file mlf_align2d.cpp.

1570 {
1571  return cdf_tstudent(3,t);
1572 }
double cdf_tstudent(int k, double t)

◆ lcdf_tstudent_mlf30()

double lcdf_tstudent_mlf30 ( double  t)

Definition at line 1581 of file mlf_align2d.cpp.

1582 {
1583  return cdf_tstudent(30,t);
1584 }
double cdf_tstudent(int k, double t)

◆ lcdf_tstudent_mlf6()

double lcdf_tstudent_mlf6 ( double  t)

Definition at line 1573 of file mlf_align2d.cpp.

1574 {
1575  return cdf_tstudent(6,t);
1576 }
double cdf_tstudent(int k, double t)

◆ lcdf_tstudent_mlf9()

double lcdf_tstudent_mlf9 ( double  t)

Definition at line 1577 of file mlf_align2d.cpp.

1578 {
1579  return cdf_tstudent(9,t);
1580 }
double cdf_tstudent(int k, double t)

◆ writeImage()

void writeImage ( Image< double > &  img,
const FileName fn,
MDRow row 
)

Definition at line 2682 of file mlf_align2d.cpp.

2683 {
2684  img.write(fn);
2685  row.setValue(MDL_IMAGE, fn);
2686  row.setValue(MDL_ENABLED, 1);
2687  double weight = img.weight();
2688  double rot = 0., tilt = 0., psi = 0.;
2689  img.getEulerAngles(rot, tilt, psi);
2690  row.setValue(MDL_WEIGHT, weight);
2691  size_t count = ROUND(weight);
2692  row.setValue(MDL_CLASS_COUNT, count);
2693  // row.setValue(MDL_ANGLE_ROT, rot);
2694  // row.setValue(MDL_ANGLE_TILT, tilt);
2695  // row.setValue(MDL_ANGLE_PSI, psi);
2696 }
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)
double weight(const size_t n=0) const
Is this image enabled? (int [-1 or 1])
void getEulerAngles(double &rot, double &tilt, double &psi, const size_t n=0) const
#define ROUND(x)
Definition: xmipp_macros.h:210
void setValue(MDLabel label, const T &d, bool addLabel=true)
Number of images assigned to the same class as this image.
double psi(const double x)
Name of an image (std::string)
< Score 4 for volumes