|
Bsoft
1.9
Bernard's software package
|
Routines to manipulation reflections or structure factors within an image. More...
#include "rwimg.h"#include "img_reflections.h"#include "img_fourier.h"#include "img_symmetry.h"#include "Complex.h"#include "utilities.h"Go to the source code of this file.
Functions | |
| int | img_normalize_reflections (Bimage *p) |
| Normalizes a set of reflections encoded as a complex image. More... | |
| int | img_mirror_reflections (Bimage *p) |
| Mirrors a set of reflections by negating the phases. More... | |
| unsigned long | img_select_reflections (Bimage *p, double hires, double lores, double cone, int weigh, double fomcut) |
| Selects reflections for output. More... | |
| Bprofile * | img_reflection_profile (Bimage *p, double radius) |
| Calculates a radial profile average. More... | |
| int | img_octants (Bimage *p) |
| Counts the number of reflections in each octant. More... | |
| int | img_sfanalyze (Bimage *p) |
| Analyzes the FOM's of a set of reflections encoded as a complex image. More... | |
| int | img_sfscale (Bimage *p, Bstring &hklname) |
| Scales the input reflections with a second set. More... | |
| int | img_sfmerge (Bimage *p, Bstring &hklname) |
| Merges the input reflections with a second set. More... | |
Variables | |
| int | verbose |
Routines to manipulation reflections or structure factors within an image.
Definition in file img_reflections.cpp.
| int img_mirror_reflections | ( | Bimage * | p | ) |
Mirrors a set of reflections by negating the phases.
| *p | complex image. |
The image must be complex or polar, typically a Fourier transform.
Definition at line 64 of file img_reflections.cpp.
| int img_normalize_reflections | ( | Bimage * | p | ) |
Normalizes a set of reflections encoded as a complex image.
| *p | complex image. |
The normalized reflection or structure factor is:
E = F/sum(|F|)
where F is a structure factor or reflection. Definition at line 29 of file img_reflections.cpp.
| int img_octants | ( | Bimage * | p | ) |
Counts the number of reflections in each octant.
| *p | complex image. |
Prints the number of reflections in each octant.
Definition at line 256 of file img_reflections.cpp.
Calculates a radial profile average.
| *p | complex image. |
| radius | radius of inner shell. |
Definition at line 182 of file img_reflections.cpp.
| unsigned long img_select_reflections | ( | Bimage * | p, |
| double | hires, | ||
| double | lores, | ||
| double | cone, | ||
| int | weigh, | ||
| double | fomcut | ||
| ) |
Selects reflections for output.
| *p | complex image. |
| hires | high resolution limit. |
| lores | low resolution limit. |
| cone | exclude missing cone data, set to PI/2 for none excluded. |
| weigh | flag: if 1 then multiply amplitude with FOM. |
| fomcut | FOM cutoff value. |
Reflections or structure factors are selected based on: 1. not in the missing cone. 2. above the FOM cutoff value. The reflections may be optionally weighed with the FOM.
Definition at line 94 of file img_reflections.cpp.
| int img_sfanalyze | ( | Bimage * | p | ) |
Analyzes the FOM's of a set of reflections encoded as a complex image.
| *p | complex image. |
Definition at line 300 of file img_reflections.cpp.
Merges the input reflections with a second set.
| *p | complex image. |
| &hklname | file name for second set of reflections. |
Definition at line 477 of file img_reflections.cpp.
Scales the input reflections with a second set.
| *p | complex image. |
| &hklname | file name for second set of reflections. |
Definition at line 418 of file img_reflections.cpp.
| int verbose |