Bsoft 2.1.4
Bernard's software package
radon_util.cpp File Reference
#include "radon_util.h"
#include "utilities.h"

Functions

int rotZ_cart (double x, double y, double z, double ang, double *xx, double *yy, double *zz)
 Rotates a vector of cartesian coordinates along the Z axis. More...
 
int rotY_cart (double x, double y, double z, double ang, double *xx, double *yy, double *zz)
 Rotates a vector of cartesian coordinates along the Y axis. More...
 
int rotX_cart (double x, double y, double z, double ang, double *xx, double *yy, double *zz)
 Rotates a vector of cartesian coordinates along the X axis. More...
 
double ang_one_two (double a1, double b1, double a2, double b2)
 Calculates the angle (in radians) from 2 vectors. More...
 
int sphere (Bimage *p)
 
int mean_to_0 (Bimage *p)
 Set each value equal to old_value-(first image pixel) More...
 

Variables

int verbose
 

Detailed Description

Author
P.L. Bellon, F. Cantele and S. Lanzavecchia Dip. Chimica Strutturale e Stereochimica Inorganica Via Venezian 21, 20133 Milano, Italy
Date
Created: 7 04 2003
Modified: 07 07 2005

Function Documentation

◆ ang_one_two()

double ang_one_two ( double  a1,
double  b1,
double  a2,
double  b2 
)

Calculates the angle (in radians) from 2 vectors.

Parameters
a1first coordinate of first vector
b1second coordinate of first vector
a2first coordinate of second vector
b2second coordinate of second vector
Returns
double angle

◆ mean_to_0()

int mean_to_0 ( Bimage p)

Set each value equal to old_value-(first image pixel)

Parameters
*pimage.
Returns
int 0.

◆ rotX_cart()

int rotX_cart ( double  x,
double  y,
double  z,
double  ang,
double *  xx,
double *  yy,
double *  zz 
)

Rotates a vector of cartesian coordinates along the X axis.

Parameters
xx coordinate of starting vector
yy coordinate of starting vector
zz coordinate of starting vector
angrotation angle (in radiants)
*xxx coordinate of rotated vector
*yyy coordinate of rotated vector
*zzz coordinate of rotated vector
Returns
int 0

◆ rotY_cart()

int rotY_cart ( double  x,
double  y,
double  z,
double  ang,
double *  xx,
double *  yy,
double *  zz 
)

Rotates a vector of cartesian coordinates along the Y axis.

Parameters
xx coordinate of starting vector
yy coordinate of starting vector
zz coordinate of starting vector
angrotation angle (in radiants)
*xxx coordinate of rotated vector
*yyy coordinate of rotated vector
*zzz coordinate of rotated vector
Returns
int 0

◆ rotZ_cart()

int rotZ_cart ( double  x,
double  y,
double  z,
double  ang,
double *  xx,
double *  yy,
double *  zz 
)

Rotates a vector of cartesian coordinates along the Z axis.

Parameters
xx coordinate of starting vector
yy coordinate of starting vector
zz coordinate of starting vector
angrotation angle (in radiants)
*xxx coordinate of rotated vector
*yyy coordinate of rotated vector
*zzz coordinate of rotated vector
Returns
int 0

◆ sphere()

int sphere ( Bimage p)
Parameters
*p
Returns
int 0

Variable Documentation

◆ verbose

int verbose
extern