Bsoft 2.1.4
Bernard's software package
mg_ctf_sim.cpp File Reference

Functions to simulate tilted micrographs. More...

#include "mg_ctf.h"
#include "utilities.h"

Functions

int img_ttf_simulate_line (Bimage *p, Bimage *pn, long img_num, long i, char ax, CTFparam &ctf, int action, double wiener, double scale, fft_plan plan)
 
long img_ttf_simulate_one (Bimage *p, Bimage *pn, long img_num, CTFparam &ctf, int action, double wiener, double tilt, double axis, fft_plan plan)
 
Bimageimg_ttf_simulate (Bimage *pn, CTFparam &ctf, int action, double wiener, double tilt, double tilt_inc, double axis)
 Calculates an exact tilted CTF imposed image. More...
 

Variables

int verbose
 

Detailed Description

Functions to simulate tilted micrographs.

Author
Bernard Heymann
Date
Created: 20150224
Modified: 20200525

Function Documentation

◆ img_ttf_simulate()

Bimage * img_ttf_simulate ( Bimage pn,
CTFparam ctf,
int  action,
double  wiener,
double  tilt,
double  tilt_inc,
double  axis 
)

Calculates an exact tilted CTF imposed image.

Parameters
*pnimage structure.
&ctfCTF parameter structure.
action0=apply, 1=flip.
wienerWiener factor.
tilttilt angle in radians.
tilt_inctilt increment per sub-image in radians.
axistilt axis direction in radians.
Returns
Bimage* new image.
A CTF function is calculated for each line parallel to the tilt axis,
applied to the whole image, and the transformed line written into a new image.

◆ img_ttf_simulate_line()

int img_ttf_simulate_line ( Bimage p,
Bimage pn,
long  img_num,
long  i,
char  ax,
CTFparam ctf,
int  action,
double  wiener,
double  scale,
fft_plan  plan 
)

◆ img_ttf_simulate_one()

long img_ttf_simulate_one ( Bimage p,
Bimage pn,
long  img_num,
CTFparam ctf,
int  action,
double  wiener,
double  tilt,
double  axis,
fft_plan  plan 
)

Variable Documentation

◆ verbose

int verbose
extern