|
TPCCLIB
|
DICOM file and directory functions. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcdcm.h"Go to the source code of this file.
Functions | |
| int | dcmSameImage (const DCMFILE *d1, const DCMFILE *d2, const int verbose) |
| int | dcmFileList (const char *filename, IFT *ift, TPCSTATUS *status) |
| List DICOM files belonging to one image. | |
| int | dcmFileRemove (const char *filename, TPCSTATUS *status) |
| Remove DICOM files belonging to one image. | |
DICOM file and directory functions.
Definition in file dcmfile.c.
List DICOM files belonging to one image.
User can give DICOM image as a folder containing image file(s), or as a name of one of the files of the image. This function lists the files (with paths) belonging to the same image.
| filename | Pointer to the name of DICOM directory or file. |
| ift | Pointer to initiated IFT structure, into which file names will be stored; any previous contents will be deleted. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 123 of file dcmfile.c.
Referenced by dcmFileList(), dcmFileRemove(), and imgRead().
| int dcmFileRemove | ( | const char * | filename, |
| TPCSTATUS * | status ) |
Remove DICOM files belonging to one image.
User can give DICOM image as a folder containing image file(s), or as a name of one of the files of the image.
| filename | Pointer to the name of DICOM directory or file. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 270 of file dcmfile.c.
Referenced by dcmFileRemove(), and imgWriteDICOM().
Check that two DICOM files belong to the same image.
Defaults to yes, if the needed tags are missing.
| d1 | Pointer to the first DICOM file data (pixel data not necessary). |
| d2 | Pointer to the second DICOM file data (pixel data not necessary). |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 24 of file dcmfile.c.
Referenced by dcmFileList(), and dcmSameImage().