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

Analyze diffraction patterns. More...

#include "rwimg.h"
#include "matrix_linear.h"
#include "simplex.h"
#include "math_util.h"
#include "utilities.h"
#include "options.h"
#include "timer.h"

Functions

int img_fix_powerspectrum_cross (Bimage *p, int flag, double fixtol)
 
int img_orthogonal_radial_profiles (Bimage *p, double angle)
 
int img_analyze_reflection (Bimage *p, double ref_res, double threshold, long kedge, int sym)
 
int main (int argc, char *argv[])
 
Vector3< double > sinc_fit (vector< Vector3< double > > coor, vector< double > value, double &R)
 
Vector3< double > img_sinc_fit (Bimage *p, Vector3< double > loc, double bkg, double peak, double &R)
 
double ellipse_R (Bsimplex &simp)
 
double fit_ellipse_iter (vector< Vector3< double > > v)
 

Variables

int verbose
 
const char * use []
 

Detailed Description

Analyze diffraction patterns.

Author
Bernard Heymann
Date
Created: 20050217
Modified: 20220524

Function Documentation

◆ ellipse_R()

double ellipse_R ( Bsimplex simp)

◆ fit_ellipse_iter()

double fit_ellipse_iter ( vector< Vector3< double > >  v)

◆ img_analyze_reflection()

int img_analyze_reflection ( Bimage p,
double  ref_res,
double  threshold,
long  kedge,
int  sym 
)

◆ img_fix_powerspectrum_cross()

int img_fix_powerspectrum_cross ( Bimage p,
int  flag,
double  fixtol 
)

◆ img_orthogonal_radial_profiles()

int img_orthogonal_radial_profiles ( Bimage p,
double  angle 
)

◆ img_sinc_fit()

Vector3< double > img_sinc_fit ( Bimage p,
Vector3< double >  loc,
double  bkg,
double  peak,
double &  R 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ sinc_fit()

Vector3< double > sinc_fit ( vector< Vector3< double > >  coor,
vector< double >  value,
double &  R 
)

Variable Documentation

◆ use

const char* use[]
Initial value:
= {
" ",
"Usage: bdif [options] [input.img] output.img",
"--------------------------------------------",
"Analyzes diffraction patterns.",
" ",
"Actions:",
"-fixcross x,2.5 Fix high values in the cross of a powerspectrum (x/y/xy, default tolerance 2).",
"-angle 36.8 Calculate orthogonal radial profiles rotated with this angle.",
"-reflection 2.5,15 Analyze reflections: spatial frequency (angstrom) and threshold (default 2).",
"-findorigin Find the origin of the diffraction pattern.",
" ",
"Parameters:",
"-verbose 7 Verbosity of output.",
"-datatype u Force writing of a new data type.",
"-origin 60.4,-32.2,44 Origin of image (voxels).",
"-sampling 1.5,1.5,1.5 Sampling (A/pixel; a single value can be given).",
"-resolution 4.5,130 Resolution range for correlation (default 0 - 1e6 angstrom).",
" ",
NULL
}

◆ verbose

int verbose
extern