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

Postscript output for micrographs. More...

#include "ps_micrograph.h"
#include "ps_plot.h"
#include "ps_views.h"
#include "rwimg.h"
#include "symmetry.h"
#include "linked_list.h"
#include "utilities.h"

Functions

int ps_origins (ofstream *fps, Bstring &title, Bproject *project, int flags)
 
int ps_mg_origins (Bstring &filename, Bstring &title, Bproject *project)
 Postscript plot of the micrograph origins. More...
 
int ps_mg_particle_positions (Bstring &filename, Bstring &title, Bproject *project)
 Postscript plot of the positions of particles on micrographs. More...
 
int ps_particle_views_origins (Bstring &filename, Bstring &title, Bstring &symmetry_string, Bproject *project, int selection)
 Generates asymmetric unit particle view and origin postscript plots. More...
 
int ps_particle_phi_theta (Bstring &filename, Bstring &title, Bproject *project, int selection)
 Generates phi-theta views postscript plots. More...
 
int ps_origins (Bstring &filename, Bstring &title, Bproject *project, int flags)
 Generates postscript plot of origins on a square with the size of the box. More...
 
int ps_part_fom_histogram (Bstring &filename, Bproject *project)
 Postscript plot of the particle FOM histogram. More...
 
int ps_defocus_histogram (Bstring &filename, Bproject *project)
 Postscript histogram plot of micrograph defocus parameters. More...
 
int ps_astigmatism_plot (Bstring &filename, Bproject *project)
 Postscript plot of micrograph astigmatism parameters. More...
 
int ps_class_average_fom (ofstream *fps, Bproject *project)
 Postscript histogram plot of class average FOM's. More...
 

Variables

int verbose
 

Detailed Description

Postscript output for micrographs.

Author
Bernard Heymann
Date
Created: 20011127
Modified: 20210706

Function Documentation

◆ ps_astigmatism_plot()

int ps_astigmatism_plot ( Bstring filename,
Bproject project 
)

Postscript plot of micrograph astigmatism parameters.

Parameters
&filenameoutput postscript file name.
*projectproject parameter structure.
Returns
int 0, error if <0.

◆ ps_class_average_fom()

int ps_class_average_fom ( ofstream *  fps,
Bproject project 
)

Postscript histogram plot of class average FOM's.

Parameters
*fpsoutput stream.
*projectproject parameter structure.
Returns
int 0, error if <0.

◆ ps_defocus_histogram()

int ps_defocus_histogram ( Bstring filename,
Bproject project 
)

Postscript histogram plot of micrograph defocus parameters.

Parameters
&filenameoutput postscript file name.
*projectproject parameter structure.
Returns
int 0, error if <0.

◆ ps_mg_origins()

int ps_mg_origins ( Bstring filename,
Bstring title,
Bproject project 
)

Postscript plot of the micrograph origins.

Parameters
&filenameoutput postscript file name.
&titletitle.
*projectproject parameter structure.
Returns
int 0, error if <0.

◆ ps_mg_particle_positions()

int ps_mg_particle_positions ( Bstring filename,
Bstring title,
Bproject project 
)

Postscript plot of the positions of particles on micrographs.

Parameters
&filenameoutput postscript file name.
&titletitle.
*projectproject parameter structure.
Returns
int 0, error if <0.

◆ ps_origins() [1/2]

int ps_origins ( Bstring filename,
Bstring title,
Bproject project,
int  flags 
)

Generates postscript plot of origins on a square with the size of the box.

Author
Eduardo Sanz-Garcia and Bernard Heymann
Parameters
&filenameoutput postscript file name.
&titletitle.
*projectmicrograph particle parameter structure.
flagsflags.
Returns
int 0, error if <0.
The plotting options are determined by the flags argument:
    0 = plot origins
    1 = plot numbered origins
    2 = plot origins with shading according to occurrence.
        The gray level indicates the ratio to the maximum occurrence.

◆ ps_origins() [2/2]

int ps_origins ( ofstream *  fps,
Bstring title,
Bproject project,
int  flags 
)

◆ ps_part_fom_histogram()

int ps_part_fom_histogram ( Bstring filename,
Bproject project 
)

Postscript plot of the particle FOM histogram.

Parameters
&filenameoutput postscript file name.
*projectproject parameter structure.
Returns
int 0, error if <0.

◆ ps_particle_phi_theta()

int ps_particle_phi_theta ( Bstring filename,
Bstring title,
Bproject project,
int  selection 
)

Generates phi-theta views postscript plots.

Parameters
&filenameoutput postscript file name.
&titletitle.
*projectparameter structure.
selectionselection number (-1 selects positives, 0 selects all).
Returns
int number of view panels.

◆ ps_particle_views_origins()

int ps_particle_views_origins ( Bstring filename,
Bstring title,
Bstring symmetry_string,
Bproject project,
int  selection 
)

Generates asymmetric unit particle view and origin postscript plots.

Parameters
&filenameoutput postscript file name.
&titletitle.
&symmetry_stringsymmetry string to print at the top of the page.
*projectparameter structure.
selectionselection number (-1 selects positives, 0 selects all).
Returns
int number of view panels.

Variable Documentation

◆ verbose

int verbose
extern