Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

display.c File Reference

#include "display.h"
#include <string.h>

Go to the source code of this file.

Defines

#define ABSO   1
#define LOG   2
#define RABS(type, tt)
#define RLOG(type, tt)
#define RECAD(type)

Functions

void DisplayImage2D (PPIMAGE_UCHAR image)
 Display a 2D image This function just calls the library Libido function IdImaDisplay and checks if the DISPLAY is not broken (useful for test on grid architecture).

void DisplayObject3D (OBJECT3D *object, int deb, int nb, char *visuname)
 Display the two first components (ro, t1, t2) of a 3D object.

void DisplayObject2D (OBJECT3D *object, char *visuname)
 Display the two first components (ro, t1, t2) of a 2D object.

void DisplayObject1D (OBJECT3D *object, char *visuname)
 Display the two first components (ro, t1, t2) of a 1D object.

void DisplayVol (PPPVOLUME vol, int deb, int nb, int recad, int N, char *visuname, int save, char *filename)
 Display a volume plane by plane.

void DisplayVolXY (PPPVOLUME vol, int z, char *visuname)
 Display an XY plane of a 3D volume.

void DisplayVolX (PPPVOLUME vol, int y, int z, char *visuname, int save, char *filename)
 Display an X line of a 3D volume, and can save the corresponding signal.


Define Documentation

#define ABSO   1
 

Referenced by DisplayVol().

#define LOG   2
 

Referenced by DisplayVol().

#define RABS type,
tt   ) 
 

Value:

for(k=0;k<Z;k++) for(j=0;j<Y;j++) for(i=0;i<X;i++) \ ((type)vol)[k][j][i] = (tt) fabs((double)((type)vol)[k][j][i]);

Referenced by DisplayVol().

#define RECAD type   ) 
 

Value:

for(k=0;k<Z;k++) for(j=0;j<Y;j++) for(i=0;i<X;i++) \ { \ val = (double) ((type)vol)[k][j][i]; \ val = (val-mini) / (maxi-mini) * N; \ if (val>255.0) val = 255.0; \ voluchar[k][j][i]=(unsigned char) val; \ }

Referenced by DisplayVol().

#define RLOG type,
tt   ) 
 

Value:

for(k=0;k<Z;k++) for(j=0;j<Y;j++) for(i=0;i<X;i++) \ ((type)vol)[k][j][i] = (tt) log(1.0+fabs((double)((type)vol)[k][j][i]));

Referenced by DisplayVol().


Generated on Wed Oct 19 09:28:35 2005 for SIMRI3D by doxygen 1.3.7