Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | List of all members

#include <common_lines.h>

Collaboration diagram for CommonLineInfo:
Collaboration graph
[legend]

Public Member Functions

 CommonLineInfo (int n, int k1=0, int k2=0)
 
int getImage (int i)
 
int getIndex (int i)
 
void setImages (int k1, int k2)
 
void setIndex (int i, double theta)
 

Public Attributes

size_t nRays
 
int k [2]
 
int idx [2]
 
DVector vector
 

Detailed Description

Class to hold the common lines info between two projection images k1 and k2 It will store the indexes of commonline in k1 and k2 and the vector direction

Definition at line 152 of file common_lines.h.

Constructor & Destructor Documentation

◆ CommonLineInfo()

CommonLineInfo::CommonLineInfo ( int  n,
int  k1 = 0,
int  k2 = 0 
)
inline

Definition at line 160 of file common_lines.h.

161  {
162  nRays = n;
163  setImages(k1, k2);
164  idx[0] = idx[1] = 0;
165  vector.initZeros(3);
166  }
void setImages(int k1, int k2)
Definition: common_lines.h:178
void initZeros()
Definition: matrix1d.h:592
int * n

Member Function Documentation

◆ getImage()

int CommonLineInfo::getImage ( int  i)
inline

Definition at line 168 of file common_lines.h.

169  {
170  return k[i];
171  }
#define i

◆ getIndex()

int CommonLineInfo::getIndex ( int  i)
inline

Definition at line 173 of file common_lines.h.

174  {
175  return idx[i];
176  }
#define i

◆ setImages()

void CommonLineInfo::setImages ( int  k1,
int  k2 
)
inline

Definition at line 178 of file common_lines.h.

179  {
180  k[0] = k1;
181  k[1] = k2;
182  }

◆ setIndex()

void CommonLineInfo::setIndex ( int  i,
double  theta 
)
inline

Definition at line 184 of file common_lines.h.

185  {
186  idx[i] = ROUND(theta/TWOPI * nRays) % nRays;
187  }
#define TWOPI
Definition: xmipp_macros.h:111
#define i
double theta
#define ROUND(x)
Definition: xmipp_macros.h:210

Member Data Documentation

◆ idx

int CommonLineInfo::idx[2]

Definition at line 157 of file common_lines.h.

◆ k

int CommonLineInfo::k[2]

Definition at line 156 of file common_lines.h.

◆ nRays

size_t CommonLineInfo::nRays

Definition at line 155 of file common_lines.h.

◆ vector

DVector CommonLineInfo::vector

Definition at line 158 of file common_lines.h.


The documentation for this class was generated from the following file: