Bsoft  1.9
Bernard's software package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
img_reflections.h
Go to the documentation of this file.
1 
9 #include "rwimg.h"
10 #include "utilities.h"
11 
12 /* Constant definitions */
13 #define NSHELLS 100 // Number of shells in calculating profiles
14 
15 #ifndef _Bprofile_
16 struct Bprofile {
17  float radius; // Inner shell radius
18  float dist[NSHELLS]; // Distances from origin in pixels
19  int num[NSHELLS]; // Numbers of reflections
20  float amp[NSHELLS]; // Average amplitudes
21 } ;
22 #define _Bprofile_
23 #endif
24 
25 /* Function prototypes */
28 unsigned long img_select_reflections(Bimage* p, double hires, double lores,
29  double cone, int weigh, double fomcut);
30 Bprofile* img_reflection_profile(Bimage* p, float radius);
31 int img_sfanalyze(Bimage* p);
32 int img_sfscale(Bimage* p, Bstring& hklname);
33 int img_sfmerge(Bimage* p, Bstring& hklname);
34 
#define NSHELLS
Header file for general utilities.
float dist[NSHELLS]
Bprofile * img_reflection_profile(Bimage *p, float radius)
int img_sfscale(Bimage *p, Bstring &hklname)
Scales the input reflections with a second set.
General image parameter class.
Definition: Bimage.h:150
int img_mirror_reflections(Bimage *p)
Mirrors a set of reflections by negating the phases.
float radius
unsigned long img_select_reflections(Bimage *p, double hires, double lores, double cone, int weigh, double fomcut)
Selects reflections for output.
int img_normalize_reflections(Bimage *p)
Normalizes a set of reflections encoded as a complex image.
int num[NSHELLS]
float amp[NSHELLS]
Header file for 2D and 3D image I/O.
int img_sfmerge(Bimage *p, Bstring &hklname)
Merges the input reflections with a second set.
int img_sfanalyze(Bimage *p)
Analyzes the FOM's of a set of reflections encoded as a complex image.