11#include "tpcclibConfig.h"
220 IMG *img,
const unsigned int dimz,
const unsigned int dimy,
221 const unsigned int dimx,
const unsigned int dimt,
TPCSTATUS *status
230extern unsigned long long imgNaNs(
IMG *img,
int fix);
231extern int imgMinMax(
IMG *img,
float *minvalue,
float *maxvalue);
232extern int imgXRange(
IMG *img,
double *xmin,
double *xmax);
260 const char *filename,
char *hdrfile,
char *imgfile,
char *siffile,
int fileformat
270extern int imgToSIF(
IMG *img,
TAC *sif,
int copy_header,
int copy_frames,
int copy_counts,
int verbose);
271extern int imgFromSIF(
IMG *img,
TAC *sif,
int copy_header,
int copy_frames,
int copy_counts,
int verbose);
279 IMG *d1,
IMG *d2,
const float test_abs,
const float test_rel,
TPCSTATUS *status);
281 IMG *d1,
IMG *d2,
const float test_abs,
const float test_rel,
TPCSTATUS *status);
decaycorrection decayCorrection
Header file for libtpcdcm.
Header file for libtpcecat.
Header file for library libtpcextensions.
weights
Is data weighted, or are weight factors available with data?
#define MAX_STUDYNR_LEN
Define max study number length.
Header file for library libtpcift.
int imgFillOHeader(IMG *img, TPCSTATUS *status)
char * imgModalityDescr(imgmodality c)
int imgCopyHeader(IMG *img1, IMG *img2)
int imgSetNiftiHeader(IMG *img, NIFTI_DSR *dsr, int verbose)
int imgCompareMatrixSize(IMG *d1, IMG *d2)
int imgReadDICOM(IMG *img, const char *fname, TPCSTATUS *status)
void imgContents(IMG *img, FILE *fp)
int niftiCreateFNames(const char *filename, char *hdrfile, char *imgfile, char *siffile, int fileformat)
imgformat imgFormatFromFName(const char *fname, TPCSTATUS *status)
int imgWriteNifti(IMG *img, const char *fname, TPCSTATUS *status)
unsigned long long imgNaNs(IMG *img, int fix)
int imgHasWeights(IMG *img)
int imgCompareTimes(IMG *d1, IMG *d2, const float test_abs, const float test_rel, TPCSTATUS *status)
int imgCompareUnit(IMG *d1, IMG *d2, TPCSTATUS *status)
char * imgContentDescr(imgcontent c)
int imgWriteDICOM(IMG *img, const char *fname, TPCSTATUS *status)
int imgRead(IMG *img, const char *fname, TPCSTATUS *status)
imgformat imgFormatIdentify(const char *s)
int imgCompareConc(IMG *d1, IMG *d2, const float test_abs, const float test_rel, TPCSTATUS *status)
int imgHasTimes(IMG *img)
int imgHasCounts(IMG *img)
int imgMinMax(IMG *img, float *minvalue, float *maxvalue)
int imgToSIF(IMG *img, TAC *sif, int copy_header, int copy_frames, int copy_counts, int verbose)
@ IMG_MODALITY_SPECT
SPECT.
@ IMG_MODALITY_LAST
End of list.
@ IMG_MODALITY_UNKNOWN
Unknown modality.
int imgAllocate(IMG *img, const unsigned int dimz, const unsigned int dimy, const unsigned int dimx, const unsigned int dimt, TPCSTATUS *status)
int imgReadNifti(IMG *img, const char *fname, TPCSTATUS *status)
int imgWrite(IMG *img, const char *fname, TPCSTATUS *status)
@ IMG_FORMAT_POLARMAP
ECAT polar map.
@ IMG_FORMAT_E7
ECAT 7.* 3D.
@ IMG_FORMAT_ANA_L
Analyze little-endian.
@ IMG_FORMAT_E63
ECAT 6.3.
@ IMG_FORMAT_INTERFILE
Interfile.
@ IMG_FORMAT_ANA
Analyze big-endian.
@ IMG_FORMAT_NIFTI_1D
NIfTI-1 dual-file format.
@ IMG_FORMAT_NIFTI_2S
NIfTI-2 single-file format.
@ IMG_FORMAT_UNKNOWN
Unknown format.
@ IMG_FORMAT_LAST
End of list.
@ IMG_FORMAT_E7_2D
ECAT 7.* 2D.
@ IMG_FORMAT_NIFTI_1S
NIfTI-1 single-file format.
@ IMG_FORMAT_MICROPET
MicroPET.
@ IMG_FORMAT_FLAT
Flat format.
@ IMG_FORMAT_NIFTI_2D
NIfTI-2 dual-file format.
@ IMG_CONTENT_LAST
End of list.
@ IMG_CONTENT_RAW
Sinogram, normalization.
@ IMG_CONTENT_UNKNOWN
Unknown data content.
@ IMG_CONTENT_POLARMAP
Polarmap.
@ IMG_CONTENT_IMAGE
Image data.
@ IMG_CONTENT_ATTN
Attenuation data.
int imgFromSIF(IMG *img, TAC *sif, int copy_header, int copy_frames, int copy_counts, int verbose)
char * imgFormatDescr(imgformat c)
char * imgDefaultExtension(imgformat c)
int imgXRange(IMG *img, double *xmin, double *xmax)
int imgGetNiftiHeader(IMG *img, NIFTI_DSR *dsr, int verbose)
Header file for library libtpcisotope.
Header file for libtpcnifti.
Header file for library libtpctac.