Bsoft  1.9
Bernard's software package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
img_symmetry.cpp File Reference

Symmetry function library for crystallography. More...

#include "Bimage.h"
#include "rwsymop.h"
#include "img_symmetry.h"
#include "img_fourier.h"
#include "img_combine.h"
#include "Matrix3.h"
#include "Complex.h"
#include "trigonometry.h"
#include "linked_list.h"
#include "utilities.h"

Go to the source code of this file.

Functions

double * img_check_space_group (Bimage *p, double resolution)
 Checks the crystal space group symmetry and the shift to a symmetry axis. More...
 
double * img_apply_space_group (Bimage *p, double resolution)
 Applies the necessary shift to superimpose the origin on a symmetry axis. More...
 
int img_apply_friedel (Bimage *p)
 Applies Friedel symmetry. More...
 
double img_check_friedel (Bimage *p)
 Checks Friedel symmetry. More...
 

Variables

int verbose
 

Detailed Description

Symmetry function library for crystallography.

Author
Bernard Heymann
Date
Created: 19990509
Modified: 20150208

Definition in file img_symmetry.cpp.

Function Documentation

int img_apply_friedel ( Bimage *  p)

Applies Friedel symmetry.

Parameters
*pcomplex image.
Returns
int 0.
The Friedel-related voxels are converted to polar form and the 
in difference in amplitude and phase calculated (taking into account
the phases should differ by sign). The voxels are then set to the
average and its conjugate.

Definition at line 337 of file img_symmetry.cpp.

double* img_apply_space_group ( Bimage *  p,
double  resolution 
)

Applies the necessary shift to superimpose the origin on a symmetry axis.

Parameters
*pcomplex image.
resolutionhigh resolution limit.
Returns
double* three-value applied shift vector.

Definition at line 179 of file img_symmetry.cpp.

double img_check_friedel ( Bimage *  p)

Checks Friedel symmetry.

Parameters
*pcomplex image.
Returns
double overall RMSD or residual.
The differences between the complex and polar forms of Friedel-related 
voxels are calculated and accumulated as squared sums weighted by their
average intensities. The residuals are then calculated as 
root-mean-square-deviations.

Definition at line 420 of file img_symmetry.cpp.

double* img_check_space_group ( Bimage *  p,
double  resolution 
)

Checks the crystal space group symmetry and the shift to a symmetry axis.

Parameters
*pcomplex image.
resolutionhigh resolution limit.
Returns
double* three-value estimated shift vector.

Definition at line 29 of file img_symmetry.cpp.

Variable Documentation

int verbose