University of Rochester / Ultrasound Research Laboratory
2D Array Library

 
Class hierarchy   Compound list   File list   Header files   Compound Members   File Members   Examples  

miscfunc.cpp File Reference

A collection of useful routines. More...

Functions


Detailed Description

A collection of useful routines.

$Id: miscfunc.cpp,v 1.1 1999-03-05 16:32:29-05 ljb Exp ljb $ $Revision: 1.1 $

$Log: miscfunc.cpp,v $ Revision 1.1 1999-03-05 16:32:29-05 ljb Initial revision


Function Documentation

INT16 calc_ascan_length( float last, float first, float increment)

returns the number of points in an A-scan.

float calc_depth_inc( TEST_HDR_TYPE *th)

Returns the mm/sample point.

Parameters:
th - is a pointer to a valid TEST_HDR.

Returns the mm/sample point based on the system clock, speed of sound, and rx_clock factor found in the system header.

INT16 calc_num_bands( float last, float first, float inc)

double calc_distance(double x1, double x2, double y1, double y2)

Calculates distance between (x1, y1) and (x2, y2)

double fmin( double a, double b)

return minimum of two doubles.

WORD calc_product( WORD size, float *dest, float *src, WORD offset)

multiplies to arrays, element by element.

Allows for offset in the src array.

WORD current_date( char *string)

Returns a string containing the current date.

Software written by
Larry Busse of LJB Development
and Bill Glenn, Al Murphy and John Losche of TETRAD Corporation
Documentation generated 3/11/1999