Bsoft  2.1.0
Bernard's software package
ps_ctf_plot.cpp File Reference

Postscript output functions for calculating CTF parameters. More...

#include "ps_plot.h"
#include "ps_ctf_plot.h"
#include "moving_average.h"
#include "utilities.h"

Go to the source code of this file.

Functions

int ps_show_ctf_param (Bplot *plot, CTFparam &em_ctf)
 
int ps_show_ctf_fit (Bplot *plot, CTFparam &em_ctf)
 
int ps_ctf_plot (Bstring &filename, CTFparam &em_ctf, size_t n, double freq_step)
 Generates a postscript plot from CTF parameters for defocus and the envelope. More...
 
int ps_ctf_plot (long n, double *rps, double interval, CTFparam *em_ctf, Bstring &filename)
 Generates a postscript plot of a contrast transfer function. More...
 
int ps_ctf_defocus_zeroes (Bstring &filename, double volts, double Cs, double amp_shift)
 Generates a postscript plot of defocus versus zeroes. More...
 
int point_spread (size_t n, vector< double > &a, double step)
 
int ps_point_spread (Bstring &filename, CTFparam &em_ctf, size_t n, double freq_step)
 Generates a point spread plot from CTF envelope parameters. More...
 

Variables

int verbose
 

Detailed Description

Postscript output functions for calculating CTF parameters.

Author
Bernard Heymann
Date
Created: 20010515
Modified: 20190207

Definition in file ps_ctf_plot.cpp.

Function Documentation

◆ point_spread()

int point_spread ( size_t  n,
vector< double > &  a,
double  step 
)

Definition at line 304 of file ps_ctf_plot.cpp.

◆ ps_ctf_defocus_zeroes()

int ps_ctf_defocus_zeroes ( Bstring &  filename,
double  volts,
double  Cs,
double  amp_shift 
)

Generates a postscript plot of defocus versus zeroes.

Parameters
&filenamepostscript output file name.
voltsaccelerating voltage (in volts).
Csspherical aberration (in angstrom).
amp_shiftamplitude contribution phase shift (radians).
Returns
int 0.
A postscript plot is generated from microscope and defocus parameters
to show the corresponding defocus and zero values.
Defocus is given in um.

Definition at line 233 of file ps_ctf_plot.cpp.

◆ ps_ctf_plot() [1/2]

int ps_ctf_plot ( Bstring &  filename,
CTFparam &  em_ctf,
size_t  n,
double  freq_step 
)

Generates a postscript plot from CTF parameters for defocus and the envelope.

Parameters
&filenamepostscript file name.
&em_ctfCTF parameter structure.
nnumber of reciprocal space steps.
freq_stepspatial frequency increment per step.
Returns
int 0.
Postscript output is generated from microscope and defocus
parameters.

Definition at line 71 of file ps_ctf_plot.cpp.

◆ ps_ctf_plot() [2/2]

int ps_ctf_plot ( long  n,
double *  rps,
double  interval,
CTFparam *  em_ctf,
Bstring &  filename 
)

Generates a postscript plot of a contrast transfer function.

Parameters
nnumber of elements in the radial power spectrum.
*rpsradial power spectrum.
intervalspatial frequency step size.
*em_ctfCTF parameter structure.
&filenamepostscript file name.
Returns
int 0.
Postscript output is generated from fitted defocus, envelope and background
parameters and compared to the radial average of the power spectrum image.

Definition at line 150 of file ps_ctf_plot.cpp.

◆ ps_point_spread()

int ps_point_spread ( Bstring &  filename,
CTFparam &  em_ctf,
size_t  n,
double  freq_step 
)

Generates a point spread plot from CTF envelope parameters.

Parameters
&filenamepostscript file name.
&em_ctfCTF parameter structure.
nnumber of reciprocal space steps.
freq_stepspatial frequency increment per step.
Returns
int 0.
Postscript output is generated from microscope and defocus
parameters.

Definition at line 337 of file ps_ctf_plot.cpp.

◆ ps_show_ctf_fit()

int ps_show_ctf_fit ( Bplot *  plot,
CTFparam &  em_ctf 
)

Definition at line 36 of file ps_ctf_plot.cpp.

◆ ps_show_ctf_param()

int ps_show_ctf_param ( Bplot *  plot,
CTFparam &  em_ctf 
)

Definition at line 17 of file ps_ctf_plot.cpp.

Variable Documentation

◆ verbose

int verbose
extern