2021-11-27 10:01:37 +11:00
|
|
|
/*
|
|
|
|
Digital Imaging and Communications in Medicine
|
|
|
|
|
|
|
|
nouveau Fri 26 Nov 2021 11:12:44 PM CET - allée de Dinan
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
2022-03-19 11:21:58 +11:00
|
|
|
#include <sys/time.h>
|
2021-11-27 10:01:37 +11:00
|
|
|
|
|
|
|
#include "../floatimg.h"
|
|
|
|
|
|
|
|
extern int verbosity; /* must be declared around main() */
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
int fimg_save_plane_as_dicom(FloatImg *src, char *outname,
|
|
|
|
char plane, int flags)
|
|
|
|
{
|
|
|
|
float *planeptr;
|
|
|
|
|
|
|
|
fprintf(stderr, ">>> %s ( %p %s %c %d )\n", __func__, src, outname, plane, flags);
|
|
|
|
|
2022-07-06 19:27:55 +11:00
|
|
|
planeptr = charplane2int(plane, src); /* please explain XXX */
|
|
|
|
fprintf(stderr, "planeptr is %p\n", planeptr);
|
2021-11-27 10:01:37 +11:00
|
|
|
|
|
|
|
if (verbosity) {
|
|
|
|
fimg_describe(src, outname);
|
|
|
|
}
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------------- */
|