TPCCLIB
|
Header file for libtpcimgio. More...
#include "tpcclibConfig.h"
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <strings.h>
#include <ctype.h>
#include <float.h>
#include <unistd.h>
#include <locale.h>
#include <time.h>
#include "libtpcmisc.h"
Go to the source code of this file.
Data Structures | |
struct | ANALYZE_HEADER_KEY |
struct | ANALYZE_HEADER_IMGDIM |
struct | ANALYZE_HEADER_HISTORY |
struct | ANALYZE_DSR |
struct | ECAT7_mainheader |
struct | ECAT7_imageheader |
struct | ECAT7_scanheader |
struct | ECAT7_2Dscanheader |
struct | ECAT7_2Dnormheader |
struct | ECAT7_attenheader |
struct | ECAT7_normheader |
struct | ECAT7_polmapheader |
struct | ECAT7_MatDir |
struct | ECAT7_MATRIXLIST |
struct | ECAT7_Matval |
struct | MatDir |
struct | MATRIXLIST |
struct | Matval |
struct | ECAT63_mainheader |
struct | ECAT63_imageheader |
struct | ECAT63_scanheader |
struct | ECAT63_normheader |
struct | ECAT63_attnheader |
struct | MatDirNode |
struct | MatDirList |
struct | MatrixData |
struct | Matrix_file |
struct | SIF |
struct | IMG_PIXEL |
struct | IMG_PIXELS |
struct | IMG_RANGE |
struct | VOXEL_4D |
struct | IMG |
struct | VOL_PIXEL |
struct | VOL_RANGE |
struct | VOL |
struct | SVOL |
struct | NIFTI_1_HEADER |
struct | NIFTI_EXTENDER |
struct | NIFTI_DSR |
struct | ECAT_MATRIX |
struct | ECAT_HEADERS |
struct | DCMTAG |
struct | DCMITEM |
struct | DCMFILE |
struct | DCMMATRIX |
struct | DCMML |
Enumerations | |
enum | { STATUS_OK , STATUS_FAULT , STATUS_NOMEMORY , STATUS_NOFILE , STATUS_UNKNOWNFORMAT , STATUS_UNSUPPORTED , STATUS_MISSINGMATRIX , STATUS_NOWRITEPERM , STATUS_DISKFULL , STATUS_NOMATLIST , STATUS_INVALIDMATLIST , STATUS_VARMATSIZE , STATUS_NOMAINHEADER , STATUS_NOSUBHEADER , STATUS_NOMATRIX , STATUS_UNSUPPORTEDAXIALCOMP , STATUS_NOIMGDATAFILE , STATUS_NOHEADERFILE , STATUS_INVALIDHEADER , STATUS_NOIMGDATA , STATUS_NOSIFDATA , STATUS_WRONGSIFDATA , STATUS_CANTWRITEIMGFILE , STATUS_CANTWRITEHEADERFILE , STATUS_WRONGFILETYPE , STATUS_CANNOTERASE , STATUS_CANNOTREAD , STATUS_CANNOTWRITE , STATUS_UNSUPPORTEDPOLARMAP , STATUS_INVALIDPOLARMAP } |
enum | dcmtruid { DCM_TRUID_UNKNOWN , DCM_TRUID_LEI , DCM_TRUID_LEE , DCM_TRUID_BEE , DCM_TRUID_JPEG50 , DCM_TRUID_JPEG51 , DCM_TRUID_JPEG70 , DCM_TRUID_JPEG80 , DCM_TRUID_JPEG81 , DCM_TRUID_JPEG90 , DCM_TRUID_JPEG91 , DCM_TRUID_JPEG92 , DCM_TRUID_JPEG93 , DCM_TRUID_MPEG100 , DCM_TRUID_MPEG102 , DCM_TRUID_MPEG103 , DCM_TRUID_RLE , DCM_TRUID_RFC , DCM_TRUID_XML , DCM_TRUID_INVALID } |
enum | dcmvr { DCM_VR_AE , DCM_VR_AS , DCM_VR_AT , DCM_VR_CS , DCM_VR_DA , DCM_VR_DS , DCM_VR_DT , DCM_VR_FL , DCM_VR_FD , DCM_VR_IS , DCM_VR_LO , DCM_VR_LT , DCM_VR_OB , DCM_VR_OD , DCM_VR_OF , DCM_VR_OL , DCM_VR_OW , DCM_VR_PN , DCM_VR_SH , DCM_VR_SL , DCM_VR_SQ , DCM_VR_SS , DCM_VR_ST , DCM_VR_TM , DCM_VR_UC , DCM_VR_UI , DCM_VR_UL , DCM_VR_UN , DCM_VR_UR , DCM_VR_US , DCM_VR_UT , DCM_VR_INVALID } |
Functions | |
int | anaExists (const char *dbname) |
int | anaExistsNew (const char *dbname, char *hdrfile, char *imgile, char *siffile) |
int | anaRemove (const char *dbname) |
void | anaRemoveFNameExtension (char *fname) |
int | anaDatabaseExists (const char *dbname, char *hdrfile, char *imgfile, char *siffile) |
int | anaMakeSIFName (const char *dbname, char *siffile) |
int | anaFlipping () |
int | anaReadHeader (char *filename, ANALYZE_DSR *h) |
int | anaReadImagedata (FILE *fp, ANALYZE_DSR *h, int frame, float *data) |
int | anaWriteHeader (char *filename, ANALYZE_DSR *h) |
int | anaPrintHeader (ANALYZE_DSR *h, FILE *fp) |
int | anaEditHeader (ANALYZE_DSR *h, char *field, char *value) |
int | ecat7ReadMainheader (FILE *fp, ECAT7_mainheader *h) |
int | ecat7ReadImageheader (FILE *fp, int blk, ECAT7_imageheader *h) |
int | ecat7ReadAttenheader (FILE *fp, int blk, ECAT7_attenheader *h) |
int | ecat7ReadPolmapheader (FILE *fp, int blk, ECAT7_polmapheader *h) |
int | ecat7ReadNormheader (FILE *fp, int blk, ECAT7_normheader *h) |
int | ecat7ReadScanheader (FILE *fp, int blk, ECAT7_scanheader *h) |
int | ecat7Read2DScanheader (FILE *fp, int blk, ECAT7_2Dscanheader *h) |
int | ecat7Read2DNormheader (FILE *fp, int blk, ECAT7_2Dnormheader *h) |
int | ecat7ReadMatrixdata (FILE *fp, int start_block, int block_nr, char *data, int dtype) |
float | ecat7rFloat (void *bufi, int isvax, int islittle) |
int | ecat7rInt (void *bufi, int isvax, int islittle) |
int | ecat7ReadImageMatrix (FILE *fp, int first_block, int last_block, ECAT7_imageheader *h, float **fdata) |
int | ecat7Read2DScanMatrix (FILE *fp, int first_block, int last_block, ECAT7_2Dscanheader *h, float **fdata) |
int | ecat7ReadScanMatrix (FILE *fp, int first_block, int last_block, ECAT7_scanheader *h, float **fdata) |
int | ecat7ReadPolarmapMatrix (FILE *fp, int first_block, int last_block, ECAT7_polmapheader *h, float **fdata) |
int | ecat7pxlbytes (short int data_type) |
void | ecat7InitMatlist (ECAT7_MATRIXLIST *mlist) |
void | ecat7EmptyMatlist (ECAT7_MATRIXLIST *mlist) |
int | ecat7ReadMatlist (FILE *fp, ECAT7_MATRIXLIST *ml, int verbose) |
void | ecat7PrintMatlist (ECAT7_MATRIXLIST *ml) |
int | ecat7EnterMatrix (FILE *fp, int matrix_id, int block_nr) |
int | ecat7_val_to_id (int frame, int plane, int gate, int data, int bed) |
void | ecat7_id_to_val (int matrix_id, ECAT7_Matval *matval) |
void | ecat7SortMatlistByPlane (ECAT7_MATRIXLIST *ml) |
void | ecat7SortMatlistByFrame (ECAT7_MATRIXLIST *ml) |
int | ecat7CheckMatlist (ECAT7_MATRIXLIST *ml) |
int | ecat7DeleteLateFrames (ECAT7_MATRIXLIST *ml, int frame_nr) |
int | ecat7GetPlaneAndFrameNr (ECAT7_MATRIXLIST *mlist, ECAT7_mainheader *h, int *plane_nr, int *frame_nr) |
int | ecat7GetMatrixBlockSize (ECAT7_MATRIXLIST *mlist, int *blk_nr) |
int | ecat7GetNums (ECAT7_MATRIXLIST *ml, ECAT7_mainheader *mh, FILE *fp, short int *num_planes, short int *num_frames, short int *num_gates, short int *num_bed_pos) |
int | ecat7GatherMatlist (ECAT7_MATRIXLIST *ml, short int do_planes, short int do_frames, short int do_gates, short int do_beds) |
int | ecat7WriteMainheader (FILE *fp, ECAT7_mainheader *h) |
int | ecat7WriteImageheader (FILE *fp, int blk, ECAT7_imageheader *h) |
int | ecat7WriteAttenheader (FILE *fp, int blk, ECAT7_attenheader *h) |
int | ecat7WritePolmapheader (FILE *fp, int blk, ECAT7_polmapheader *h) |
int | ecat7WriteNormheader (FILE *fp, int blk, ECAT7_normheader *h) |
int | ecat7WriteScanheader (FILE *fp, int blk, ECAT7_scanheader *h) |
int | ecat7Write2DScanheader (FILE *fp, int blk, ECAT7_2Dscanheader *h) |
int | ecat7Write2DNormheader (FILE *fp, int blk, ECAT7_2Dnormheader *h) |
int | ecat7WritePolarmapMatrix (FILE *fp, int matrix_id, ECAT7_polmapheader *h, float *fdata) |
int | ecat7WriteMatrixdata (FILE *fp, int start_block, char *data, long long pxl_nr, int pxl_size) |
FILE * | ecat7Create (const char *fname, ECAT7_mainheader *h) |
int | ecat7WriteImageMatrix (FILE *fp, int matrix_id, ECAT7_imageheader *h, float *fdata) |
int | ecat7Write2DScanMatrix (FILE *fp, int matrix_id, ECAT7_2Dscanheader *h, float *fdata) |
int | ecat7WriteScanMatrix (FILE *fp, int matrix_id, ECAT7_scanheader *h, float *fdata) |
int | ecat7_is_scaling_needed (float amax, float *data, long long nr) |
void | ecat7PrintMainheader (ECAT7_mainheader *h, FILE *fp) |
void | ecat7PrintImageheader (ECAT7_imageheader *h, FILE *fp) |
void | ecat7PrintScanheader (ECAT7_scanheader *h, FILE *fp) |
void | ecat7PrintAttenheader (ECAT7_attenheader *h, FILE *fp) |
void | ecat7PrintPolmapheader (ECAT7_polmapheader *h, FILE *fp) |
void | ecat7PrintNormheader (ECAT7_normheader *h, FILE *fp) |
void | ecat7Print2DScanheader (ECAT7_2Dscanheader *h, FILE *fp) |
void | ecat7Print2DNormheader (ECAT7_2Dnormheader *h, FILE *fp) |
int | ecat7PrintSubheader (ECAT7_mainheader mh, FILE *fp, int plane, int frame, FILE *ofp) |
char * | ecat7filetype (short int file_type) |
char * | ecat7acquisitiontype (short int acquisition_type) |
char * | ecat7datatype (short int data_type) |
int | ecat7EditMHeader (ECAT7_mainheader *h, char *field, char *value, int verbose) |
int | ecat7EditSHeader (ECAT7_scanheader *h, char *field, char *value, int verbose) |
int | ecat7EditVHeader (ECAT7_imageheader *h, char *field, char *value, int verbose) |
int | ecat63ReadMainheader (FILE *fp, ECAT63_mainheader *h) |
int | ecat63ReadImageheader (FILE *fp, int blk, ECAT63_imageheader *h, int verbose, char *errmsg) |
int | ecat63ReadScanheader (FILE *fp, int blk, ECAT63_scanheader *h, int verbose, char *errmsg) |
int | ecat63ReadAttnheader (FILE *fp, int blk, ECAT63_attnheader *h, int verbose, char *errmsg) |
int | ecat63ReadNormheader (FILE *fp, int blk, ECAT63_normheader *h, int verbose, char *errmsg) |
int | ecat63ReadMatdata (FILE *fp, int strtblk, int blkNr, char *data, int dtype) |
int | ecat63ReadImageMatrix (FILE *fp, int strtblk, int lastblk, ECAT63_imageheader *h, float **f) |
int | ecat63ReadScanMatrix (FILE *fp, int strtblk, int lastblk, ECAT63_scanheader *h, float **f) |
int | ecat63ReadAttnMatrix (FILE *fp, int strtblk, int lastblk, ECAT63_attnheader *h, float **f) |
float | ecat63rFloat (void *bufi, int isvax, int islittle) |
int | ecat63rInt (void *bufi, int isvax, int islittle) |
int | ecat63pxlbytes (short int data_type) |
void | ecat63InitMatlist (MATRIXLIST *mlist) |
void | ecat63EmptyMatlist (MATRIXLIST *mlist) |
int | ecat63ReadMatlist (FILE *fp, MATRIXLIST *ml, int verbose) |
void | ecat63PrintMatlist (MATRIXLIST *ml) |
int | mat_numcod (int frame, int plane, int gate, int data, int bed) |
void | mat_numdoc (int matnum, Matval *matval) |
int | ecat63Matenter (FILE *fp, int matnum, int blkNr) |
void | ecat63SortMatlistByPlane (MATRIXLIST *ml) |
void | ecat63SortMatlistByFrame (MATRIXLIST *ml) |
int | ecat63CheckMatlist (MATRIXLIST *ml) |
int | ecat63DeleteLateFrames (MATRIXLIST *ml, int frame_nr) |
int | ecat63GetMatrixBlockSize (MATRIXLIST *mlist, int *blk_nr) |
int | ecat63GetPlaneAndFrameNr (MATRIXLIST *mlist, ECAT63_mainheader *h, int *plane_nr, int *frame_nr) |
int | ecat63GetNums (MATRIXLIST *ml, short int *num_planes, short int *num_frames, short int *num_gates, short int *num_bed_pos) |
int | ecat63GatherMatlist (MATRIXLIST *ml, short int do_planes, short int do_frames, short int do_gates, short int do_beds) |
int | ecat63WriteMainheader (FILE *fp, ECAT63_mainheader *h) |
int | ecat63WriteImageheader (FILE *fp, int block, ECAT63_imageheader *h) |
int | ecat63WriteScanheader (FILE *fp, int block, ECAT63_scanheader *h) |
int | ecat63WriteAttnheader (FILE *fp, int block, ECAT63_attnheader *h) |
int | ecat63WriteNormheader (FILE *fp, int block, ECAT63_normheader *h) |
FILE * | ecat63Create (const char *fname, ECAT63_mainheader *h) |
int | ecat63WriteMatdata (FILE *fp, int strtblk, char *data, long long pxlNr, int pxlSize) |
int | ecat63WriteScan (FILE *fp, int matnum, ECAT63_scanheader *h, void *data) |
int | ecat63WriteImage (FILE *fp, int matnum, ECAT63_imageheader *h, void *data) |
int | ecat63WriteNorm (FILE *fp, int matnum, ECAT63_normheader *h, void *data) |
int | ecat63WriteAttn (FILE *fp, int matnum, ECAT63_attnheader *h, void *data) |
int | ecat63WriteImageMatrix (FILE *fp, int matnum, ECAT63_imageheader *h, float *fdata) |
int | ecat63WriteScanMatrix (FILE *fp, int matnum, ECAT63_scanheader *h, float *fdata) |
void | ecat63wFloat (float *bufi, void *bufo, int tovax, int islittle) |
void | ecat63wInt (int *bufi, void *bufo, int tovax, int islittle) |
int | ecat63_is_scaling_needed (float amax, float *data, long long nr) |
struct tm * | ecat63ScanstarttimeToTm (const ECAT63_mainheader *h, struct tm *tm) |
Convert scan_start_time in ECAT 6.3 main header into a struct tm. | |
time_t | ecat63Scanstarttime (const ECAT63_mainheader *h) |
Get calendar time from ECAT 6.3 main header. | |
void | ecat63PrintMainheader (ECAT63_mainheader *h, FILE *fp) |
void | ecat63PrintImageheader (ECAT63_imageheader *h, FILE *fp) |
void | ecat63PrintScanheader (ECAT63_scanheader *h, FILE *fp) |
void | ecat63PrintAttnheader (ECAT63_attnheader *h, FILE *fp) |
void | ecat63PrintNormheader (ECAT63_normheader *h, FILE *fp) |
int | ecat6PrintSubheader (ECAT63_mainheader mh, FILE *fp, int plane, int frame, FILE *ofp) |
char * | ecat63Datatype (short int dtype) |
char * | ecat63Unit (short int dunit) |
void | float2parts (float *buf) |
char * | ecat63ScanstarttimeInt (const ECAT63_mainheader *h, char *buf) |
Convert scan_start_time in ECAT 6.3 main header into a null-terminated string of the form YYYY-MM-DD hh:mm:ss, with length of 19 characters and the null. | |
int | ecat63CopyMainheader (ECAT63_mainheader *h1, ECAT63_mainheader *h2) |
int | ecat63CopyScanheader (ECAT63_scanheader *h1, ECAT63_scanheader *h2) |
int | ecat63EditMHeader (ECAT63_mainheader *h, char *field, char *value, int verbose) |
void | imgInit (IMG *image) |
void | imgEmpty (IMG *image) |
int | imgAllocate (IMG *image, int planes, int rows, int columns, int frames) |
int | imgAllocateWithHeader (IMG *image, int planes, int rows, int columns, int frames, IMG *image_from) |
int | imgDup (IMG *img1, IMG *img2) |
char * | imgStatus (int status_index) |
void | imgSetStatus (IMG *img, int status_index) |
void | imgInfo (IMG *image) |
int | imgCopyhdr (IMG *image1, IMG *image2) |
int | imgExtractRange (IMG *img1, IMG_RANGE r, IMG *img2) |
int | imgExistentTimes (IMG *img) |
int | imgExistentCounts (IMG *img) |
unsigned long long | imgNaNs (IMG *img, int fix) |
int | sif2img (SIF *sif, IMG *img, int copy_header, int copy_frames, int copy_counts, int verbose) |
int | img2sif (IMG *img, SIF *sif, int copy_header, int copy_frames, int copy_counts, int verbose) |
int | imgDecayCorrection (IMG *img, int mode) |
char * | imgIsotope (IMG *img) |
int | imgSetDecayCorrFactors (IMG *image, int mode) |
int | imgBranchingCorrection (IMG *image, int mode, int verbose, char *status) |
int | imgRead (const char *fname, IMG *img) |
int | imgWrite (const char *fname, IMG *img) |
int | imgReadHeader (const char *fname, IMG *img, int format) |
int | imgReadFrame (const char *fname, int frame_to_read, IMG *img, int frame_index) |
int | imgWriteFrame (const char *fname, int frame_to_write, IMG *img, int frame_index) |
void | imgFormatFromFName (IMG *img, const char *fname) |
int | imgFormatDetermine (const char *fname, char *basename, char *hdrfile, char *imgfile, char *siffile, int *file_format, int *scanner, int *type, int *modality, int verbose) |
int | ecat63ReadAllToImg (const char *fname, IMG *img) |
int | ecat63WriteAllImg (const char *fname, IMG *img) |
int | ecat63ReadPlaneToImg (const char *fname, IMG *img) |
int | ecat63AddImg (const char *fname, IMG *img) |
void | imgGetEcat63MHeader (IMG *img, ECAT63_mainheader *h) |
void | imgSetEcat63MHeader (IMG *img, ECAT63_mainheader *h) |
int | imgEcat63Supported (ECAT63_mainheader *h) |
int | imgGetEcat63Fileformat (ECAT63_mainheader *h) |
int | imgReadEcat63Header (const char *fname, IMG *img) |
int | imgReadEcat63FirstFrame (const char *fname, IMG *img) |
int | imgReadEcat63Frame (const char *fname, int frame_to_read, IMG *img, int frame_index) |
int | imgWriteEcat63Frame (const char *fname, int frame_to_write, IMG *img, int frame_index) |
void | imgSetEcat63SHeader (IMG *img, void *h) |
int | imgReadEcat7 (const char *fname, IMG *img) |
int | imgWriteEcat7 (const char *fname, IMG *img) |
int | imgWrite2DEcat7 (const char *fname, IMG *img) |
int | imgWritePolarmap (const char *fname, IMG *img) |
void | imgGetEcat7MHeader (IMG *img, ECAT7_mainheader *h) |
void | imgSetEcat7MHeader (IMG *img, ECAT7_mainheader *h) |
int | imgReadEcat7Header (const char *fname, IMG *img) |
int | imgEcat7Supported (ECAT7_mainheader *h) |
int | imgReadEcat7Frame (const char *fname, int frame_to_read, IMG *img, int frame_index) |
int | imgReadEcat7FirstFrame (const char *fname, IMG *img) |
int | imgGetEcat7Fileformat (ECAT7_mainheader *h) |
int | imgWriteEcat7Frame (const char *fname, int frame_to_write, IMG *img, int frame_index) |
void | imgSetEcat7SHeader (IMG *img, void *h) |
int | imgReadAnalyze (const char *dbname, IMG *img) |
int | imgWriteAnalyze (const char *dbname, IMG *img) |
int | imgReadAnalyzeHeader (const char *dbname, IMG *img) |
int | imgGetAnalyzeHeader (IMG *img, ANALYZE_DSR *h) |
int | imgSetAnalyzeHeader (IMG *img, const char *dbname, ANALYZE_DSR *h, float fmin, float fmax) |
int | imgReadAnalyzeFrame (const char *dbname, int frame_to_read, IMG *img, int frame_index) |
int | imgReadAnalyzeFirstFrame (const char *fname, IMG *img) |
int | imgWriteAnalyzeFrame (const char *fname, int frame_to_write, IMG *img, int frame_index, float fmin, float fmax) |
int | imgMicropetToEcat7 (char *upetname, char *ecatfile, int verbose) |
int | imgMicropetPETToEcat7 (FILE *fph, FILE *fpi, char *ecatfile, int verbose) |
int | imgMicropetCTToEcat7 (FILE *fph, FILE *fpi, char *ecatfile, int verbose) |
int | imgGetMicropetMainHeader (FILE *fp, IMG *img, float *calibration_factor, int verbose) |
int | imgGetMicropetFrameHeader (FILE *fp, IMG *img, int frame_index, int verbose) |
int | imgGetMicropetSIF (FILE *fp, SIF *sif) |
int | imgGetMicropetHeader (IMG *img) |
int | imgReadMicropetHeader (const char *dbname, IMG *img) |
int | imgReadMicropetFrame (const char *fname, int frame_to_read, IMG *img, int frame_index) |
int | imgReadMicropetFirstFrame (const char *fname, IMG *img) |
int | imgReadMicropet (const char *fname, IMG *img) |
int | imgReadNifti (const char *filename, IMG *img, int verbose) |
int | imgReadNiftiFirstFrame (const char *filename, IMG *img, int verbose) |
int | imgReadNiftiHeader (const char *filename, IMG *img, int verbose) |
int | imgGetNiftiHeader (IMG *img, NIFTI_DSR *h, int verbose) |
int | imgReadNiftiFrame (const char *filename, int frame_to_read, IMG *img, int frame_index, int verbose) |
int | imgSetNiftiHeader (IMG *img, const char *dbname, NIFTI_DSR *dsr, float fmin, float fmax, int verbose) |
int | imgWriteNiftiFrame (const char *dbname, int frame_to_write, IMG *img, int frame_index, float fmin, float fmax, int verbose) |
int | imgWriteNifti (const char *dbname, IMG *img, int save_sif, int verbose) |
int | imgMatch (IMG *img1, IMG *img2, float accuracy) |
int | imgMatchMatrix (IMG *img1, IMG *img2, double accuracy) |
int | imgMatchHeader (IMG *img1, IMG *img2) |
int | imgMatchTransform (IMG *img1, IMG *img2) |
int | imgMatchFrames (IMG *img1, IMG *img2) |
int | imgMatchPlanes (IMG *img1, IMG *img2) |
int | imgMaxDifference (IMG *img1, IMG *img2, VOXEL_4D *absdiff, float *abs_max, VOXEL_4D *reldiff, float *rel_max) |
int | imgSS (IMG *img1, IMG *img2, double *ss) |
int | imgMatchMatrixSize (IMG *img1, IMG *img2) |
int | imgMax (IMG *img, float *maxvalue) |
int | imgAbsMax (IMG *img, float *maxvalue) |
int | imgRangeMinMax (IMG *img, IMG_RANGE *r, IMG_PIXEL *maxp, float *maxv, IMG_PIXEL *minp, float *minv) |
int | imgMinMax (IMG *img, float *minvalue, float *maxvalue) |
int | imgFrameMinMax (IMG *img, int frame, float *minvalue, float *maxvalue) |
int | imgReadMinMax (const char *fname, float *fmin, float *fmax) |
int | imgSmoothMax (IMG *img, float *maxvalue, IMG_PIXEL *p) |
int | imgGetPeak (IMG *img, float beforeTime, IMG_PIXEL *p, int verbose) |
int | imgGetMaxFrame (IMG *img, IMG *mimg, int verbose) |
int | imgGetMaxTime (IMG *img, IMG *mimg, const int w, int verbose) |
int | imgAvg (IMG *img, IMG_RANGE *r, float *avg) |
float | f_kth_smallest (float *data, long long int n, long long int k) |
float | fmedian (float *data, long long int n) |
float | fmean (float *data, long long int n, float *sd) |
void | fMinMaxFin (float *data, long long int n, float *fmin, float *fmax) |
int | imgUnitId (char *unit) |
void | imgUnitFromEcat (IMG *img, int ecat_unit) |
void | imgUnitFromEcat7 (IMG *img, ECAT7_mainheader *h) |
int | imgUnitToEcat6 (IMG *img) |
void | imgUnitToEcat7 (IMG *img, ECAT7_mainheader *h) |
char * | imgUnit (int dunit) |
int | imgSetUnit (IMG *img, char *unit) |
int | interfile_read (char headerName[256], char searchWord[256], char returnValue[256], char errorMessage[300]) |
int | interfileIsHeader (const char *hdrfile, char *imgfile) |
int | interfileExists (const char *fname, char *hdrfile, char *imgfile, int verbose) |
int | upetHeaderReadParameter (FILE *fp, char *parameter, char *value) |
int | upetIsHeader (char *hdrfile) |
int | upetExists (const char *upetname, char *hdrfile, char *imgfile, int verbose) |
int | upetGetImageDimensions (FILE *fp, int *z, int *x, int *y, int *f) |
int | upetScanStart (FILE *fp, time_t *scant) |
int | upetReadImagedata (FILE *fp, IFT *ift, int frame, float *data) |
int | niftiExists (const char *dbname, char *hdrfile, char *imgile, char *siffile, NIFTI_DSR *header, int verbose, char *status) |
int | niftiCreateFNames (const char *filename, char *hdrfile, char *imgfile, char *siffile, int fileformat) |
int | niftiRemove (const char *dbname, int fileformat, int verbose) |
int | niftiReadHeader (char *filename, NIFTI_DSR *h, int verbose, char *status) |
int | niftiPrintHeader (NIFTI_DSR *h, FILE *fp) |
void | niftiRemoveFNameExtension (char *fname) |
int | niftiReadImagedata (FILE *fp, NIFTI_DSR *h, int frame, float *data, int verbose, char *status) |
int | niftiWriteHeader (char *filename, NIFTI_DSR *dsr, int verbose, char *status) |
int | sifRead (char *filename, SIF *data) |
int | sifWrite (SIF *data, char *filename) |
void | sifPrint (SIF *data) |
void | sifEmpty (SIF *data) |
void | sifInit (SIF *data) |
int | sifSetmem (SIF *data, int frameNr) |
void | sifWeight (SIF *data, double halflife) |
Calculate weights for frames in SIF data based on true counts. Weights are normalized to have an average of 1.0. | |
void | sifWeightByFrames (SIF *data, double halflife) |
Calculate weights for frames in SIF data based on frame lengths. Weights are normalized to have an average of 1.0. | |
void | sifWeightNorm (SIF *data) |
void | sifModerateTrues (SIF *sif, double limit) |
void | sifModerateWeights (SIF *sif, double limit) |
int | sifExistentCounts (SIF *sif) |
void | ematInitiate (ECAT_MATRIX *emat) |
void | ehdrInitiate (ECAT_HEADERS *ehdr) |
void | ematEmpty (ECAT_MATRIX *emat) |
void | ehdrEmpty (ECAT_HEADERS *ehdr) |
int | ehdrAllocate (ECAT_HEADERS *ehdr, int nr) |
int | ecat7MHeaderToIFT (ECAT7_mainheader *h, IFT *ift, int verbose) |
int | ecat7MainheaderFromIFT (ECAT7_mainheader *h, IFT *ift, int verbose) |
int | ecat7ImageheaderToIFT (ECAT7_imageheader *h, IFT *ift, int verbose) |
int | ecat7ScanheaderToIFT (ECAT7_scanheader *h, IFT *ift, int verbose) |
int | ecat7ReadSubheaderToIFT (FILE *fp, ECAT7_mainheader *h, int strtblk, IFT *ift, int verbose) |
int | ecat7WriteSubheaderFromIFT (FILE *fp, ECAT7_mainheader *h, int strtblk, IFT *ift, int verbose) |
int | ecat7ReadHeaders (const char *fname, ECAT_HEADERS *ehdr, int verbose) |
int | ecat7WriteHeaders (const char *fname, ECAT_HEADERS *ehdr, int verbose) |
int | string_to_xyzf (const char *str, IMG_PIXEL *v) |
int | irdReorder (IMG_RANGE *img_range) |
int | irdRead (char *irdfile, IMG_RANGE *img_range, char *status) |
int | irdCheck (IMG_RANGE *r, IMG *img) |
void | volInit (VOL *vol) |
void | volEmpty (VOL *vol) |
int | volAllocate (VOL *vol, int planes, int rows, int columns) |
int | img2vol (IMG *img, VOL *vol, int frame) |
int | vol2img (VOL *vol, IMG *img, int frame) |
void | volInfo (VOL *vol, FILE *fp) |
void | volContents (VOL *vol, VOL_RANGE r, FILE *fp) |
int | volMax (VOL *vol, VOL_RANGE *r, VOL_PIXEL *maxp, float *maxv, VOL_PIXEL *minp, float *minv) |
int | volAvg (VOL *vol, VOL_RANGE *r, float *avg) |
void | svolInit (SVOL *svol) |
void | svolEmpty (SVOL *svol) |
int | svolAllocate (SVOL *svol, int planes, int rows, int columns) |
int | img2svol (IMG *img, SVOL *svol, int frame) |
int | svol2img (SVOL *svol, IMG *img, int frame) |
void | svolInfo (SVOL *svol, FILE *fp) |
int | vrdReorder (VOL_RANGE *vol_range) |
int | vrdVxlNr (VOL_RANGE *vol_range) |
int | vrd2vol (VOL_RANGE *r, VOL *vol, float in, float out, char *status) |
int | vrdRead (char *vdffile, VOL_RANGE *vol_range, char *status) |
int | string_to_xyz (char *str, int *x, int *y, int *z) |
void | pxlInit (IMG_PIXELS *pxl) |
void | pxlFree (IMG_PIXELS *pxl) |
int | pxlAllocate (IMG_PIXELS *pxl, long long int pxlNr) |
int | pxlAllocateMore (IMG_PIXELS *pxl, long long int pxlNr) |
int | pxlMakeRoom (IMG_PIXELS *list, long long int i, long long int n) |
int | pxlAdd (IMG_PIXELS *list, IMG_PIXEL *pxl) |
int | pxlGet (IMG_PIXELS *list, long long int i, IMG_PIXEL *pxl) |
long long int | pxlAddFromMask (IMG_PIXELS *list, IMG *img) |
void | pxlMove (IMG_PIXELS *list, long long int from, long long int to) |
int | pxlRm (IMG_PIXELS *list, long long int index) |
long long int | pxlRmDuplicates (IMG_PIXELS *list) |
int | pxlWrite (IMG_PIXELS *pxl, FILE *fp, char *status) |
int | pxlRead (IMG_PIXELS *pxl, const char *fname, char *status) |
int | dcmVerifyMagic (const char *filename, FILE *fp) |
unsigned char | dcmVRReserved (dcmvr id) |
dcmvr | dcmVRId (const char *s) |
char * | dcmVRName (dcmvr id) |
size_t | dcmVRVLength (dcmvr id) |
char * | dcmVRDescr (dcmvr id) |
char * | dcmDA2intl (const char *orig, char *intl) |
char * | dcmTM2intl (const char *orig, char *intl) |
char * | dcmDT2intl (const char *orig, char *intl) |
unsigned int | dcmSOPIdentify (const char *s) |
char * | dcmSOPName (unsigned int i) |
char * | dcmSOPUID (unsigned int i) |
char * | dcmSOPUIDName (const char *s) |
dcmtruid | dcmTrUID (const char *s) |
char * | dcmTrUIDDescr (dcmtruid id) |
char * | dcmTrUIDString (dcmtruid id) |
dcmtruid | dcmReadTransferSyntaxUID (FILE *fp) |
int | dcmReadFileTag (FILE *fp, DCMTAG *tag) |
int | dcmWriteFileTag (FILE *fp, DCMTAG *tag) |
int | dcmWriteFileSQDelimItem (FILE *fp) |
int | dcmWriteFileSQItemDelimTag (FILE *fp) |
dcmvr | dcmReadFileVR (FILE *fp, char *vrstr) |
unsigned int | dcmReadFileVL (FILE *fp, unsigned int n) |
int | dcmReadFileVRVL (FILE *fp, dcmvr *vr, unsigned int *vl, unsigned int *n) |
int | dcmWriteFileVRVL (FILE *fp, dcmvr vr, unsigned int vl, unsigned int *n) |
void | dcmfileInit (DCMFILE *d) |
void | dcmitemFree (DCMITEM *d) |
void | dcmfileFree (DCMFILE *d) |
unsigned short int | dcmfileMaxDepth (DCMFILE *df) |
unsigned short int | dcmitemMaxDepth (DCMITEM *d) |
unsigned short int | dcmitemParentNr (DCMITEM *d) |
char * | dcmValueString (DCMITEM *d) |
long int | dcmitemGetInt (DCMITEM *d) |
double | dcmitemGetReal (DCMITEM *d) |
DCMITEM * | dcmFindTag (DCMITEM *d, const short int omit, DCMTAG *tag, const int verbose) |
void | dcmitemPrint (DCMITEM *d) |
void | dcmTagSet (DCMTAG *tag, unsigned short int group, unsigned short int element) |
int | dcmAddItem (DCMFILE *dcm, DCMITEM *d, short int aschild, DCMTAG tag, dcmvr vr, unsigned int vl, char *rd, const int verbose) |
int | dcmFileReadNextElement (DCMFILE *dcm, DCMITEM *prev_item, DCMITEM *parent_item, const short int sub, const short int headerOnly, int verbose) |
int | dcmFileRead (const char *filename, DCMFILE *dcm, const short int headerOnly, int verbose) |
int | dcmFileWrite (const char *filename, DCMFILE *dcm, int verbose) |
Variables | |
int | ANALYZE_TEST |
char | ecat7errmsg [128] |
int | ECAT7_TEST |
char | ecat63errmsg [128] |
int | ECAT63_TEST |
char | siferrmsg [128] |
int | SIF_TEST |
int | IMG_TEST |
int | VOL_TEST |
int | MICROPET_TEST |
Header file for libtpcimgio.
Definition in file libtpcimgio.h.
#define ANALYZE_DT_ALL 255 |
Analyze 7.5 datatype
Definition at line 67 of file libtpcimgio.h.
#define ANALYZE_DT_BINARY 1 |
Analyze 7.5 datatype, 1 bit
Definition at line 51 of file libtpcimgio.h.
Referenced by anaReadImagedata().
#define ANALYZE_DT_COMPLEX 32 |
Analyze 7.5 datatype, 64 bits (two floats)
Definition at line 61 of file libtpcimgio.h.
Referenced by anaReadImagedata().
#define ANALYZE_DT_DOUBLE 64 |
Analyze 7.5 datatype, 64 bits
Definition at line 63 of file libtpcimgio.h.
Referenced by anaReadImagedata().
#define ANALYZE_DT_FLOAT 16 |
Analyze 7.5 datatype, 32 bits
Definition at line 59 of file libtpcimgio.h.
Referenced by anaReadImagedata().
#define ANALYZE_DT_NONE 0 |
Analyze 7.5 datatype
Definition at line 47 of file libtpcimgio.h.
#define ANALYZE_DT_RGB 128 |
#define ANALYZE_DT_SIGNED_INT 8 |
Analyze 7.5 datatype, 32 bits
Definition at line 57 of file libtpcimgio.h.
Referenced by anaReadImagedata().
#define ANALYZE_DT_SIGNED_SHORT 4 |
Analyze 7.5 datatype, 16 bits
Definition at line 55 of file libtpcimgio.h.
Referenced by anaReadImagedata(), imgSetAnalyzeHeader(), and imgWriteAnalyze().
#define ANALYZE_DT_UNKNOWN 0 |
Analyze 7.5 datatype
Definition at line 49 of file libtpcimgio.h.
#define ANALYZE_DT_UNSIGNED_CHAR 2 |
Analyze 7.5 datatype, 8 bits
Definition at line 53 of file libtpcimgio.h.
Referenced by anaReadImagedata().
#define ATTN_DATA 3 |
ECAT 6.3 file type
Definition at line 954 of file libtpcimgio.h.
Referenced by atnMake(), ecat63ReadAllToImg(), ecat63ReadMainheader(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), ecatCopy63to7mainheader(), ecatCopy7to63mainheader(), imgEcat63Supported(), imgGetEcat63Fileformat(), imgGetEcat63MHeader(), imgReadEcat63Frame(), and imgReadEcat63Header().
#define BACKUP_EXTENSION ".bak" |
Backup file extension
Definition at line 32 of file libtpcimgio.h.
#define BYTE_TYPE 1 |
ECAT 6.3 data type
Definition at line 935 of file libtpcimgio.h.
Referenced by ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnheader(), ecat63ReadAttnMatrix(), ecat63ReadImageheader(), ecat63ReadImageMatrix(), ecat63ReadMainheader(), ecat63ReadMatdata(), ecat63ReadNormheader(), ecat63ReadPlaneToImg(), ecat63ReadScanheader(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteImage(), ecat63WriteNorm(), ecat63WriteScan(), and imgReadEcat63Frame().
#define ECAT63_SYSTEM_TYPE_DEFAULT 931 |
Default system type in ECAT 6.3 file header
Definition at line 959 of file libtpcimgio.h.
Referenced by ecat63AddImg(), ecat63WriteAllImg(), and imgSetEcat63MHeader().
#define ECAT7_2DNORM 4 |
ECAT7 matrix filetype
Definition at line 251 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy63to7mainheader(), and ecatCopy7to63mainheader().
#define ECAT7_2DSCAN 1 |
ECAT7 matrix filetype
Definition at line 245 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgReadEcat7(), imgReadEcat7Header(), imgSetEcat7MHeader(), and imgWrite2DEcat7().
#define ECAT7_3DNORM 13 |
ECAT7 matrix filetype
Definition at line 269 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), and ecat7WriteSubheaderFromIFT().
#define ECAT7_3DSCAN 11 |
ECAT7 matrix filetype
Definition at line 265 of file libtpcimgio.h.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy63to7mainheader(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgReadEcat7(), imgReadEcat7Header(), and imgSetEcat7MHeader().
#define ECAT7_3DSCAN8 12 |
ECAT7 matrix filetype
Definition at line 267 of file libtpcimgio.h.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgReadEcat7(), and imgReadEcat7Header().
#define ECAT7_3DSCANFIT 14 |
ECAT7 matrix filetype
Definition at line 271 of file libtpcimgio.h.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgReadEcat7(), and imgReadEcat7Header().
#define ECAT7_ATTEN 3 |
ECAT7 matrix filetype
Definition at line 249 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy63to7mainheader(), and ecatCopy7to63mainheader().
#define ECAT7_BYTE 1 |
ECAT7 matrix data type
Definition at line 224 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), and ecat7ReadScanMatrix().
#define ECAT7_Feet_First_Decubitus_Left 6 |
ECAT7 patient orientation
Definition at line 286 of file libtpcimgio.h.
#define ECAT7_Feet_First_Decubitus_Right 4 |
ECAT7 patient orientation
Definition at line 282 of file libtpcimgio.h.
#define ECAT7_Feet_First_Prone 0 |
ECAT7 patient orientation
Definition at line 274 of file libtpcimgio.h.
#define ECAT7_Feet_First_Supine 2 |
ECAT7 patient orientation
Definition at line 278 of file libtpcimgio.h.
#define ECAT7_Head_First_Decubitus_Left 7 |
ECAT7 patient orientation
Definition at line 288 of file libtpcimgio.h.
#define ECAT7_Head_First_Decubitus_Right 5 |
ECAT7 patient orientation
Definition at line 284 of file libtpcimgio.h.
#define ECAT7_Head_First_Prone 1 |
ECAT7 patient orientation
Definition at line 276 of file libtpcimgio.h.
#define ECAT7_Head_First_Supine 3 |
ECAT7 patient orientation
Definition at line 280 of file libtpcimgio.h.
Referenced by ecatCopy63to7mainheader().
#define ECAT7_IEEER4 5 |
ECAT7 matrix data type
Definition at line 232 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteNormheader(), ecat7WritePolmapheader(), and ecat7WriteScanheader().
#define ECAT7_IMAGE16 2 |
ECAT7 matrix filetype
Definition at line 247 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgGetEcat7MHeader(), imgReadEcat7(), imgReadEcat7Header(), imgSetEcat7MHeader(), and imgWrite2DEcat7().
#define ECAT7_IMAGE8 10 |
ECAT7 matrix filetype
Definition at line 263 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgGetEcat7MHeader(), imgReadEcat7(), and imgReadEcat7Header().
#define ECAT7_POLARMAP 5 |
ECAT7 matrix filetype
Definition at line 253 of file libtpcimgio.h.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgGetEcat7MHeader(), imgReadEcat7(), imgReadEcat7Header(), and imgSetEcat7MHeader().
#define ECAT7_PROJ 8 |
ECAT7 matrix filetype
Definition at line 259 of file libtpcimgio.h.
#define ECAT7_PROJ16 9 |
ECAT7 matrix filetype
Definition at line 261 of file libtpcimgio.h.
#define ECAT7_SUNI2 6 |
ECAT7 matrix data type
Definition at line 234 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7Write2DScanMatrix(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteImageMatrix(), ecat7WriteNormheader(), ecat7WritePolarmapMatrix(), ecat7WritePolmapheader(), ecat7WriteScanheader(), ecat7WriteScanMatrix(), imgSetEcat7SHeader(), imgWrite2DEcat7(), and imgWriteEcat7().
#define ECAT7_SUNI4 7 |
ECAT7 matrix data type
Definition at line 236 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteNormheader(), ecat7WritePolmapheader(), and ecat7WriteScanheader().
#define ECAT7_UNKNOWN 0 |
ECAT7 matrix filetype
Definition at line 243 of file libtpcimgio.h.
#define ECAT7_Unknown_Orientation 8 |
ECAT7 patient orientation
Definition at line 290 of file libtpcimgio.h.
#define ECAT7_VAXI2 2 |
ECAT7 matrix data type
Definition at line 226 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteNormheader(), ecat7WritePolmapheader(), and ecat7WriteScanheader().
#define ECAT7_VAXI4 3 |
ECAT7 matrix data type
Definition at line 228 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteNormheader(), ecat7WritePolmapheader(), and ecat7WriteScanheader().
#define ECAT7_VAXR4 4 |
ECAT7 matrix data type
Definition at line 230 of file libtpcimgio.h.
Referenced by ecat7pxlbytes(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatrixdata(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteNormheader(), ecat7WritePolmapheader(), and ecat7WriteScanheader().
#define ECAT7_VOLUME16 7 |
ECAT7 matrix filetype
Definition at line 257 of file libtpcimgio.h.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy63to7mainheader(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgGetEcat7MHeader(), imgReadEcat7(), imgReadEcat7Header(), and imgSetEcat7MHeader().
#define ECAT7_VOLUME8 6 |
ECAT7 matrix filetype
Definition at line 255 of file libtpcimgio.h.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), ecatCopy7to63mainheader(), imgEcat7Supported(), imgGetEcat7Fileformat(), imgGetEcat7MHeader(), imgReadEcat7(), and imgReadEcat7Header().
#define IEEE_R4 5 |
ECAT 6.3 data type
Definition at line 943 of file libtpcimgio.h.
Referenced by atnMake(), ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMatdata(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteImage(), ecat63WriteNorm(), ecat63WriteScan(), and imgReadEcat63Frame().
#define IMAGE_DATA 2 |
ECAT 6.3 file type
Definition at line 952 of file libtpcimgio.h.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadMainheader(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), ecat6PrintSubheader(), ecatCopy63to7mainheader(), ecatCopy7to63mainheader(), imgEcat63Supported(), imgGetEcat63Fileformat(), imgGetEcat63MHeader(), imgReadEcat63Frame(), imgReadEcat63Header(), and imgSetEcat63MHeader().
#define IMG_ANA 11 |
Definition for file format: big endian
Definition at line 1512 of file libtpcimgio.h.
Referenced by imgFormatDetermine(), imgFormatFromFName(), imgGetAnalyzeHeader(), imgReadAnalyze(), imgReadFrame(), imgReadHeader(), imgWrite(), imgWriteAnalyzeFrame(), and imgWriteFrame().
#define IMG_ANA_L 12 /* little endian variant */ |
Definition for file format: little endian variant
Definition at line 1514 of file libtpcimgio.h.
Referenced by imgGetAnalyzeHeader(), imgReadAnalyze(), imgReadFrame(), imgReadHeader(), imgSetAnalyzeHeader(), imgWrite(), imgWriteAnalyze(), imgWriteAnalyzeFrame(), and imgWriteFrame().
#define IMG_DC_CORRECTED 1 |
Definition for physical decay correction
Definition at line 1531 of file libtpcimgio.h.
Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), img2sif(), imgDecayCorrection(), imgFrameIntegral(), imgGetAnalyzeHeader(), imgGetMicropetHeader(), imgGetMicropetMainHeader(), imgGetNiftiHeader(), imgInfo(), imgReadAnalyze(), imgReadEcat63Frame(), imgReadEcat63Header(), imgReadEcat7(), imgReadEcat7Frame(), imgReadEcat7Header(), imgSetAnalyzeHeader(), imgSetDecayCorrFactors(), imgWrite2DEcat7(), imgWriteAnalyze(), imgWriteEcat63Frame(), imgWriteEcat7(), and imgWriteEcat7Frame().
#define IMG_DC_NONCORRECTED 2 |
Definition for physical decay correction
Definition at line 1533 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), img_k1_using_ki(), img_logan(), img_patlak(), imgDecayCorrection(), imgFBP(), imgFrameIntegral(), imgGetAnalyzeHeader(), imgGetMicropetHeader(), imgGetMicropetMainHeader(), imgMRP(), imgReadAnalyze(), imgReadEcat63Header(), imgSetAnalyzeHeader(), imgSetDecayCorrFactors(), and imgWriteAnalyze().
#define IMG_DC_UNKNOWN 0 |
Definition for physical decay correction
Definition at line 1529 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), img2sif(), imgEmpty(), imgInit(), imgReadEcat63Frame(), imgReadEcat63Header(), imgReadEcat7(), imgReadEcat7Frame(), and imgReprojection().
#define IMG_DICOM 100 |
Definition for file format
Definition at line 1526 of file libtpcimgio.h.
Referenced by imgFormatDetermine(), and imgFormatFromFName().
#define IMG_E63 1 |
Definition for file format
Definition at line 1504 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), imgFormatFromFName(), imgGetEcat63Fileformat(), imgReadFrame(), imgReadHeader(), imgWrite(), imgWriteEcat63Frame(), and imgWriteFrame().
#define IMG_E7 2 |
Definition for file format
Definition at line 1506 of file libtpcimgio.h.
Referenced by imgFormatFromFName(), imgGetEcat7Fileformat(), imgMicropetCTToEcat7(), imgMicropetPETToEcat7(), imgNiftiToEcat(), imgReadEcat7(), imgReadFrame(), imgReadHeader(), imgWriteEcat7Frame(), and imgWriteFrame().
#define IMG_E7_2D 3 |
Definition for file format
Definition at line 1508 of file libtpcimgio.h.
Referenced by imgGetEcat7Fileformat(), imgReadEcat7(), imgReadEcat7Frame(), imgReadFrame(), imgReadHeader(), imgSetEcat7MHeader(), imgSetEcat7SHeader(), imgWrite(), imgWriteEcat7Frame(), and imgWriteFrame().
#define IMG_ERR_CALLING 1 |
Definition for img error status message
Definition at line 1486 of file libtpcimgio.h.
#define IMG_ERR_OK 0 |
Definition for img error status message
Definition at line 1484 of file libtpcimgio.h.
#define IMG_ERR_OOM 2 |
Definition for img error status message
Definition at line 1488 of file libtpcimgio.h.
#define IMG_FLAT 61 |
Definition for file format
Definition at line 1524 of file libtpcimgio.h.
#define IMG_INTERFILE 21 |
Definition for file format
Definition at line 1516 of file libtpcimgio.h.
Referenced by imgFormatDetermine(), and imgFormatFromFName().
#define IMG_MICROPET 41 |
Definition for file format
Definition at line 1522 of file libtpcimgio.h.
Referenced by imgFormatDetermine(), imgGetMicropetHeader(), imgReadFrame(), and imgReadHeader().
#define IMG_MODALITY_CT 3 |
Definition for modality
Definition at line 1542 of file libtpcimgio.h.
#define IMG_MODALITY_MRI 2 |
Definition for modality
Definition at line 1540 of file libtpcimgio.h.
#define IMG_MODALITY_PET 1 |
Definition for modality
Definition at line 1538 of file libtpcimgio.h.
#define IMG_MODALITY_SPECT 4 |
Definition for modality
Definition at line 1544 of file libtpcimgio.h.
#define IMG_MODALITY_UNKNOWN 0 |
Definition for modality
Definition at line 1536 of file libtpcimgio.h.
Referenced by imgFormatDetermine().
#define IMG_NIFTI_1D 31 /* dual file format */ |
Definition for file format: dual file format
Definition at line 1518 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgReadFrame(), imgReadHeader(), imgSetNiftiHeader(), imgWrite(), imgWriteFrame(), imgWriteNifti(), imgWriteNiftiFrame(), niftiCreateFNames(), and niftiRemove().
#define IMG_NIFTI_1S 32 /* single file format */ |
Definition for file format: single file format
Definition at line 1520 of file libtpcimgio.h.
Referenced by imgFormatFromFName(), imgGetNiftiHeader(), imgReadFrame(), imgReadHeader(), imgWrite(), imgWriteFrame(), imgWriteNifti(), imgWriteNiftiFrame(), niftiCreateFNames(), and niftiRemove().
#define IMG_POLARMAP 9 |
Definition for file format
Definition at line 1510 of file libtpcimgio.h.
Referenced by imgFormatFromFName(), imgGetEcat7Fileformat(), imgReadEcat7(), imgReadFrame(), imgReadHeader(), imgWrite(), imgWriteEcat7Frame(), and imgWriteFrame().
#define IMG_STATUS_ERROR 3 |
Definition for img struct status
Definition at line 1481 of file libtpcimgio.h.
Referenced by imgInfo(), svolInfo(), and volInfo().
#define IMG_STATUS_INITIALIZED 1 |
Definition for img struct status
Definition at line 1477 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), imgEmpty(), imgGetAnalyzeHeader(), imgGetMicropetHeader(), imgGetNiftiHeader(), imgInfo(), imgInit(), imgRead(), imgReadAnalyze(), imgReadAnalyzeFirstFrame(), imgReadAnalyzeHeader(), imgReadEcat63FirstFrame(), imgReadEcat63Header(), imgReadEcat7(), imgReadEcat7FirstFrame(), imgReadEcat7Header(), imgReadFrame(), imgReadHeader(), imgReadMicropet(), imgReadMicropetFirstFrame(), imgReadMicropetHeader(), imgReadNifti(), imgReadNiftiFirstFrame(), imgReadNiftiHeader(), imgSetAnalyzeHeader(), imgSetNiftiHeader(), svolEmpty(), svolInfo(), svolInit(), volEmpty(), volInfo(), and volInit().
#define IMG_STATUS_OCCUPIED 2 |
Definition for img struct status
Definition at line 1479 of file libtpcimgio.h.
Referenced by dftAllocateWithIMG(), ecat63AddImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), idiSimulateTubeImg(), idiSimulateTubeImgPlane(), idiSimulateTubeVol(), img2cube(), img2svol(), img2vol(), img_k1_using_ki(), img_logan(), img_patlak(), imgAbs(), imgAbsMax(), imgAllocate(), imgArithm(), imgArithmConst(), imgArithmFrame(), imgAUMC(), imgAverageAUC(), imgAverageMaskTAC(), imgAvg(), imgBorderAverageTAC(), imgBranchingCorrection(), imgCircleMask(), imgDecayCorrection(), imgDeleteFrameOverlap(), imgDeleteFrameOverlap_old(), imgEmpty(), imgExistentCounts(), imgExistentTimes(), imgExtractRange(), imgFBP(), imgFrameGapFill(), imgFrameIntegral(), imgFrameMinMax(), imgFramesCheck(), imgGetAnalyzeHeader(), imgGetConcWeightedPeakPos(), imgGetFrameDiff(), imgGetFrameDyn(), imgGetMaxFrame(), imgGetMaxTime(), imgGetMicropetHeader(), imgGetNiftiHeader(), imgGetPeak(), imgInv(), imgLn(), imgLog10(), imgMaskFloodFill(), imgMaskPixelTACs(), imgMaskRegionLabeling(), imgMaskTAC(), imgMax(), imgMRP(), imgMRT(), imgNoiseTemplate(), imgOutlierFilter(), imgRangeMinMax(), imgRangeWeightedMax(), imgRawCountsPerTime(), imgReadAnalyzeFrame(), imgReadEcat63Frame(), imgReadEcat7Frame(), imgReadFrame(), imgReadMicropetFrame(), imgReadNiftiFrame(), imgRegionGrowingByThreshold(), imgReprojection(), imgsegmClusterExpand(), imgsegmFindMaxOutsideClusters(), imgsegmMaskToCluster(), imgsegmSimilar(), imgsegmThreshold(), imgsegmThresholdByMask(), imgsegmThresholdMask(), imgSetAnalyzeHeader(), imgSetDecayCorrFactors(), imgSetNiftiHeader(), imgSetScanner(), imgSetWeights(), imgSimulateRing(), imgSimulateSphere(), imgSmoothMax(), imgSmoothOverFrames(), imgThresholdByMask(), imgThresholding(), imgThresholdingLowHigh(), imgThresholdMaskCount(), imgTimeIntegral(), imgVoiMaskTAC(), imgWrite(), imgWrite2DEcat7(), imgWriteAnalyze(), imgWriteAnalyzeFrame(), imgWriteEcat63Frame(), imgWriteEcat7(), imgWriteEcat7Frame(), imgWriteFrame(), imgWriteNifti(), imgWriteNiftiFrame(), imgWritePolarmap(), sifAllocateWithIMG(), svol2img(), svolAllocate(), svolEmpty(), tiffWriteImg(), vol2img(), volAllocate(), volAvg(), volContents(), volEmpty(), volMax(), and vrd2vol().
#define IMG_STATUS_UNINITIALIZED 0 |
Definition for img struct status
Definition at line 1475 of file libtpcimgio.h.
Referenced by ecat63ReadPlaneToImg(), img2svol(), img2vol(), imgAllocate(), imgExtractRange(), imgInfo(), svolAllocate(), svolInfo(), volAllocate(), and volInfo().
#define IMG_TYPE_ATTN 4 |
Definition for 'image type' attenuation data
Definition at line 1499 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), and imgReadEcat63Header().
#define IMG_TYPE_IMAGE 1 |
Definition for image type
Definition at line 1493 of file libtpcimgio.h.
Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), imgFBP(), imgFrameIntegral(), imgGetAnalyzeHeader(), imgGetEcat63MHeader(), imgGetEcat7MHeader(), imgGetMicropetHeader(), imgGetNiftiHeader(), imgMicropetCTToEcat7(), imgMicropetPETToEcat7(), imgMRP(), imgReadAnalyze(), imgReadEcat7(), imgReadEcat7Frame(), imgReadModelingData(), imgSetEcat63MHeader(), imgSetScanner(), imgWrite(), imgWrite2DEcat7(), imgWriteEcat63Frame(), and imgWriteEcat7().
#define IMG_TYPE_POLARMAP 3 |
Definition for image type
Definition at line 1497 of file libtpcimgio.h.
Referenced by imgGetEcat7MHeader(), imgReadEcat7(), imgReadEcat7Frame(), imgSetEcat7MHeader(), imgSetEcat7SHeader(), imgWrite(), and imgWritePolarmap().
#define IMG_TYPE_RAW 2 |
Definition for 'image type' sinogram
Definition at line 1495 of file libtpcimgio.h.
Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), img2sif(), imgFrameIntegral(), imgGetEcat63MHeader(), imgGetEcat7MHeader(), imgRawCountsPerTime(), imgReadEcat63Header(), imgReadEcat7(), imgReprojection(), imgSetEcat63SHeader(), imgSetEcat7MHeader(), imgSetEcat7SHeader(), imgWrite(), imgWrite2DEcat7(), imgWriteEcat63Frame(), imgWriteEcat7(), and imgWriteEcat7Frame().
#define IMG_TYPE_UNKNOWN 0 |
Definition for image type
Definition at line 1491 of file libtpcimgio.h.
Referenced by imgFormatDetermine(), and imgMatchHeader().
#define IMG_UNKNOWN 0 |
Definition for file format
Definition at line 1502 of file libtpcimgio.h.
Referenced by imgFormatDetermine(), imgFormatFromFName(), imgGetEcat63Fileformat(), imgGetEcat7Fileformat(), imgReadEcat63Header(), imgReadEcat7(), imgReadEcat7Header(), imgReadFrame(), imgReadHeader(), and imgWrite().
#define M68K_I2 SUN_I2 |
ECAT matrix data type
Definition at line 238 of file libtpcimgio.h.
#define M68K_I4 SUN_I4 |
ECAT matrix data type
Definition at line 240 of file libtpcimgio.h.
#define MatBLKSIZE 512 |
ECAT matrix block size
ECAT 6.3 matrix block size
Definition at line 210 of file libtpcimgio.h.
Referenced by ecat63CopyFile(), ecat63Create(), ecat63Matenter(), ecat63ReadAllToImg(), ecat63ReadAttnheader(), ecat63ReadAttnMatrix(), ecat63ReadImageheader(), ecat63ReadImageMatrix(), ecat63ReadMainheader(), ecat63ReadMatdata(), ecat63ReadMatlist(), ecat63ReadNormheader(), ecat63ReadPlaneToImg(), ecat63ReadScanheader(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteAttnheader(), ecat63WriteImage(), ecat63WriteImageheader(), ecat63WriteImageMatrix(), ecat63WriteMainheader(), ecat63WriteMatdata(), ecat63WriteNorm(), ecat63WriteNormheader(), ecat63WriteScan(), ecat63WriteScanheader(), ecat63WriteScanMatrix(), ecat7CopyFile(), ecat7Create(), ecat7EnterMatrix(), ecat7Read2DNormheader(), ecat7Read2DScanheader(), ecat7Read2DScanMatrix(), ecat7ReadAttenheader(), ecat7ReadImageheader(), ecat7ReadImageMatrix(), ecat7ReadMainheader(), ecat7ReadMatlist(), ecat7ReadMatrixdata(), ecat7ReadNormheader(), ecat7ReadPolarmapMatrix(), ecat7ReadPolmapheader(), ecat7ReadScanheader(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7Write2DScanMatrix(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteImageMatrix(), ecat7WriteMainheader(), ecat7WriteMatrixdata(), ecat7WriteNormheader(), ecat7WritePolarmapMatrix(), ecat7WritePolmapheader(), ecat7WriteScanheader(), ecat7WriteScanMatrix(), and imgReadEcat63Frame().
#define MatBLKSIZE 512 |
#define MatFirstDirBlk 2 |
ECAT matrix directory start block
ECAT 6.3 first directory block
Definition at line 214 of file libtpcimgio.h.
Referenced by ecat63Create(), ecat63Matenter(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMatlist(), ecat63ReadScanMatrix(), ecat7Create(), ecat7EnterMatrix(), ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadMatlist(), ecat7ReadPolarmapMatrix(), and ecat7ReadScanMatrix().
#define MatFirstDirBlk 2 |
ECAT matrix directory start block
ECAT 6.3 first directory block
Definition at line 214 of file libtpcimgio.h.
#define MAX_MICROPET_LINE_LEN 1024 |
Max line length in micropet header
Definition at line 1994 of file libtpcimgio.h.
Referenced by imgGetMicropetFrameHeader(), imgGetMicropetHeader(), imgGetMicropetMainHeader(), imgGetMicropetSIF(), imgMicropetCTToEcat7(), imgMicropetToEcat7(), imgReadMicropetFrame(), upetGetImageDimensions(), upetHeaderReadParameter(), upetIsHeader(), upetReadImagedata(), and upetScanStart().
#define MAX_POLARMAP_NUM_RINGS 32 |
Maximum nr of rings in polar map (based on ECAT 7 polar map header)
Definition at line 1586 of file libtpcimgio.h.
Referenced by imgCopyhdr(), imgEmpty(), imgInit(), and imgReadEcat7Header().
#define NIFTI_DT_ALL 255 |
NIFTI1 datatype (same as Analyze datatypes)
Definition at line 2051 of file libtpcimgio.h.
#define NIFTI_DT_BINARY 1 |
NIFTI1 datatype 1 bit (same as Analyze datatypes)
Definition at line 2035 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_COMPLEX 32 |
NIFTI1 datatype 64 bits (same as Analyze datatypes)
Definition at line 2045 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_DOUBLE 64 |
NIFTI1 datatype 64 bits (same as Analyze datatypes)
Definition at line 2047 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_DOUBLE_PAIR 1792 |
NIFTI1 datatype 128 bits
Definition at line 2065 of file libtpcimgio.h.
#define NIFTI_DT_FLOAT 16 |
NIFTI1 datatype 32 bits (same as Analyze datatypes)
Definition at line 2043 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), and niftiReadImagedata().
#define NIFTI_DT_LONG_DOUBLE 1536 |
NIFTI1 datatype 128 bits
Definition at line 2063 of file libtpcimgio.h.
#define NIFTI_DT_LONG_DOUBLE_PAIR 2048 |
NIFTI1 datatype 256 bits
Definition at line 2067 of file libtpcimgio.h.
#define NIFTI_DT_LONG_LONG 1024 |
NIFTI1 datatype 64 bits
Definition at line 2059 of file libtpcimgio.h.
#define NIFTI_DT_NONE 0 |
NIFTI1 datatype (same as Analyze datatypes)
Definition at line 2031 of file libtpcimgio.h.
#define NIFTI_DT_RGB 128 |
NIFTI1 datatype 24 bits (same as Analyze datatypes)
Definition at line 2049 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_RGBA 2304 |
NIFTI1 datatype 32 bits
Definition at line 2069 of file libtpcimgio.h.
#define NIFTI_DT_SIGNED_CHAR 256 |
NIFTI1 datatype 8 bits
Definition at line 2053 of file libtpcimgio.h.
#define NIFTI_DT_SIGNED_INT 8 |
NIFTI1 datatype 32 bits (same as Analyze datatypes)
Definition at line 2041 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_SIGNED_SHORT 4 |
NIFTI1 datatype 16 bits (same as Analyze datatypes)
Definition at line 2039 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_UNKNOWN 0 |
NIFTI1 datatype (same as Analyze datatypes)
Definition at line 2033 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_UNSIGNED_CHAR 2 |
NIFTI1 datatype 8 bits (same as Analyze datatypes)
Definition at line 2037 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_DT_UNSIGNED_INT 768 |
NIFTI1 datatype 32 bits
Definition at line 2057 of file libtpcimgio.h.
#define NIFTI_DT_UNSIGNED_LONG_LONG 1280 |
NIFTI1 datatype 64 bits
Definition at line 2061 of file libtpcimgio.h.
#define NIFTI_DT_UNSIGNED_SHORT 512 |
NIFTI1 datatype 16 bits
Definition at line 2055 of file libtpcimgio.h.
Referenced by niftiReadImagedata().
#define NIFTI_HEADER_EXTENDER_SIZE 4 |
#define NIFTI_HEADER_SIZE 348 |
NIFTI1 header size
Definition at line 2004 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiReadHeader(), and niftiWriteHeader().
#define NIFTI_INTENT_BETA 7 |
NIFTI1 intent statistics
Definition at line 2085 of file libtpcimgio.h.
#define NIFTI_INTENT_BINOM 8 |
NIFTI1 intent statistics
Definition at line 2087 of file libtpcimgio.h.
#define NIFTI_INTENT_CHI 19 |
NIFTI1 intent statistics
Definition at line 2109 of file libtpcimgio.h.
#define NIFTI_INTENT_CHISQ 6 |
NIFTI1 intent statistics
Definition at line 2083 of file libtpcimgio.h.
#define NIFTI_INTENT_CHISQ_NONC 13 |
NIFTI1 intent statistics
Definition at line 2097 of file libtpcimgio.h.
#define NIFTI_INTENT_CORREL 2 |
NIFTI1 intent statistics
Definition at line 2075 of file libtpcimgio.h.
#define NIFTI_INTENT_DIMLESS 1011 |
NIFTI1 intent other
Definition at line 2141 of file libtpcimgio.h.
#define NIFTI_INTENT_DISPVECT 1006 |
NIFTI1 intent other
Definition at line 2131 of file libtpcimgio.h.
#define NIFTI_INTENT_ESTIMATE 1001 |
NIFTI1 intent other
Definition at line 2121 of file libtpcimgio.h.
#define NIFTI_INTENT_EXTVAL 21 |
NIFTI1 intent statistics
Definition at line 2113 of file libtpcimgio.h.
#define NIFTI_INTENT_FTEST 4 |
NIFTI1 intent statistics
Definition at line 2079 of file libtpcimgio.h.
#define NIFTI_INTENT_FTEST_NONC 12 |
NIFTI1 intent statistics
Definition at line 2095 of file libtpcimgio.h.
#define NIFTI_INTENT_GAMMA 9 |
NIFTI1 intent statistics
Definition at line 2089 of file libtpcimgio.h.
#define NIFTI_INTENT_GENMATRIX 1004 |
NIFTI1 intent other
Definition at line 2127 of file libtpcimgio.h.
#define NIFTI_INTENT_INVGAUSS 20 |
NIFTI1 intent statistics
Definition at line 2111 of file libtpcimgio.h.
#define NIFTI_INTENT_LABEL 1002 |
NIFTI1 intent other
Definition at line 2123 of file libtpcimgio.h.
#define NIFTI_INTENT_LAPLACE 15 |
NIFTI1 intent statistics
Definition at line 2101 of file libtpcimgio.h.
#define NIFTI_INTENT_LOG10PVAL 24 |
NIFTI1 intent statistics
Definition at line 2119 of file libtpcimgio.h.
#define NIFTI_INTENT_LOGISTIC 14 |
NIFTI1 intent statistics
Definition at line 2099 of file libtpcimgio.h.
#define NIFTI_INTENT_LOGPVAL 23 |
NIFTI1 intent statistics
Definition at line 2117 of file libtpcimgio.h.
#define NIFTI_INTENT_NEURONAME 1003 |
NIFTI1 intent other
Definition at line 2125 of file libtpcimgio.h.
#define NIFTI_INTENT_NONE 0 |
NIFTI1 intent dataset
Definition at line 2073 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader().
#define NIFTI_INTENT_NORMAL 11 |
NIFTI1 intent statistics
Definition at line 2093 of file libtpcimgio.h.
#define NIFTI_INTENT_POINTSET 1008 |
NIFTI1 intent other
Definition at line 2135 of file libtpcimgio.h.
#define NIFTI_INTENT_POISSON 10 |
NIFTI1 intent statistics
Definition at line 2091 of file libtpcimgio.h.
#define NIFTI_INTENT_PVAL 22 |
NIFTI1 intent statistics
Definition at line 2115 of file libtpcimgio.h.
#define NIFTI_INTENT_QUATERNION 1010 |
NIFTI1 intent other
Definition at line 2139 of file libtpcimgio.h.
#define NIFTI_INTENT_SYMMATRIX 1005 |
NIFTI1 intent other
Definition at line 2129 of file libtpcimgio.h.
#define NIFTI_INTENT_TRIANGLE 1009 |
NIFTI1 intent other
Definition at line 2137 of file libtpcimgio.h.
#define NIFTI_INTENT_TTEST 3 |
NIFTI1 intent statistics
Definition at line 2077 of file libtpcimgio.h.
#define NIFTI_INTENT_TTEST_NONC 17 |
NIFTI1 intent statistics
Definition at line 2105 of file libtpcimgio.h.
#define NIFTI_INTENT_UNIFORM 16 |
NIFTI1 intent statistics
Definition at line 2103 of file libtpcimgio.h.
#define NIFTI_INTENT_VECTOR 1007 |
NIFTI1 intent other
Definition at line 2133 of file libtpcimgio.h.
#define NIFTI_INTENT_WEIBULL 18 |
NIFTI1 intent statistics
Definition at line 2107 of file libtpcimgio.h.
#define NIFTI_INTENT_ZSCORE 5 |
NIFTI1 intent statistics
Definition at line 2081 of file libtpcimgio.h.
#define NIFTI_UNITS_HERTZ 32 |
NIFTI1 units: Hertz
Definition at line 2023 of file libtpcimgio.h.
#define NIFTI_UNITS_METER 1 |
NIFTI1 units: meter
Definition at line 2011 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader().
#define NIFTI_UNITS_MICRON 4 |
NIFTI1 units: micrometer
Definition at line 2015 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader().
#define NIFTI_UNITS_MM 2 |
NIFTI1 units: millimetre
Definition at line 2013 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), and imgSetNiftiHeader().
#define NIFTI_UNITS_MSEC 16 |
NIFTI1 units: milliseconds
Definition at line 2019 of file libtpcimgio.h.
#define NIFTI_UNITS_PPM 40 |
NIFTI1 units: parts per million
Definition at line 2025 of file libtpcimgio.h.
#define NIFTI_UNITS_RADS 48 |
NIFTI1 units: radians per second
Definition at line 2027 of file libtpcimgio.h.
#define NIFTI_UNITS_SEC 8 |
NIFTI1 units: seconds
Definition at line 2017 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader().
#define NIFTI_UNITS_UNKNOWN 0 |
NIFTI1 units: unknown
Definition at line 2009 of file libtpcimgio.h.
#define NIFTI_UNITS_USEC 24 |
NIFTI1 units: microseconds
Definition at line 2021 of file libtpcimgio.h.
#define NIFTI_XFORM_ALIGNED_ANAT 2 |
NIFTI1 Coordinate System: Coordinates aligned to another file or "truth".
Definition at line 2148 of file libtpcimgio.h.
#define NIFTI_XFORM_MNI_152 4 |
NIFTI1 Coordinate System: Coordinates aligned to the MNI space.
Definition at line 2152 of file libtpcimgio.h.
#define NIFTI_XFORM_SCANNER_ANAT 1 |
NIFTI1 Coordinate System: Scanner-based anatomical coordinates.
Definition at line 2146 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), imgReadAnalyze(), imgReadEcat63Frame(), imgReadEcat7(), and imgReadEcat7Header().
#define NIFTI_XFORM_TALAIRACH 3 |
NIFTI1 Coordinate System: Coordinates aligned to the Talairach space.
Definition at line 2150 of file libtpcimgio.h.
#define NIFTI_XFORM_UNKNOWN 0 |
NIFTI1 Coordinate System: Arbitrary coordinates.
Definition at line 2144 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), imgEmpty(), imgInit(), imgReadAnalyze(), imgReadEcat63Frame(), imgReadEcat7(), and imgReadEcat7Header().
#define NORM_DATA 4 |
ECAT 6.3 file type
Definition at line 956 of file libtpcimgio.h.
Referenced by ecat63ReadAllToImg(), ecat63ReadMainheader(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), ecatCopy63to7mainheader(), ecatCopy7to63mainheader(), imgEcat63Supported(), imgGetEcat63Fileformat(), imgGetEcat63MHeader(), imgReadEcat63Frame(), and imgReadEcat63Header().
#define RAW_DATA 1 |
ECAT 6.3 file type
Definition at line 950 of file libtpcimgio.h.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadMainheader(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), ecat6PrintSubheader(), ecatCopy63to7mainheader(), ecatCopy7to63mainheader(), imgEcat63Supported(), imgGetEcat63Fileformat(), imgGetEcat63MHeader(), imgReadEcat63Frame(), imgReadEcat63Header(), and imgSetEcat63MHeader().
#define SCANNER_ADVANCE 12096 |
Definition for scanner model (system type)
Definition at line 1551 of file libtpcimgio.h.
Referenced by imgSetScanner().
#define SCANNER_DMI_PET 8 |
Definition for scanner model (system type): nonstandard
Definition at line 1564 of file libtpcimgio.h.
#define SCANNER_ECAT931 12 |
Definition for scanner model (system type)
Definition at line 1549 of file libtpcimgio.h.
Referenced by imgSetScanner().
#define SCANNER_FOCUS_120 2501 |
Definition for scanner model (system type): nonstandard
Definition at line 1575 of file libtpcimgio.h.
#define SCANNER_FOCUS_220 2500 |
Definition for scanner model (system type): nonstandard
Definition at line 1573 of file libtpcimgio.h.
#define SCANNER_HRPLUS 3 |
Definition for scanner model (system type)
Definition at line 1553 of file libtpcimgio.h.
Referenced by imgSetScanner().
#define SCANNER_HRRT 4 |
Definition for scanner model (system type)
Definition at line 1555 of file libtpcimgio.h.
Referenced by imgSetScanner().
#define SCANNER_INVEON_DEDICATED_PET 5000 |
Definition for scanner model (system type): nonstandard
Definition at line 1577 of file libtpcimgio.h.
#define SCANNER_INVEON_MM_PET 5500 |
Definition for scanner model (system type): nonstandard
Definition at line 1579 of file libtpcimgio.h.
#define SCANNER_MICROPET2 2002 |
Definition for scanner model (system type): nonstandard
Definition at line 1571 of file libtpcimgio.h.
#define SCANNER_MR_PET_HEAD_INSERT 6000 |
Definition for scanner model (system type): nonstandard
Definition at line 1581 of file libtpcimgio.h.
#define SCANNER_MRI 5 |
Definition for scanner model (system type): nonstandard
Definition at line 1558 of file libtpcimgio.h.
#define SCANNER_PRIMATE 2000 |
Definition for scanner model (system type): nonstandard
Definition at line 1567 of file libtpcimgio.h.
#define SCANNER_RODENT 2001 |
Definition for scanner model (system type): nonstandard
Definition at line 1569 of file libtpcimgio.h.
#define SCANNER_STEVCT_CT 7 |
Definition for scanner model (system type): nonstandard
Definition at line 1562 of file libtpcimgio.h.
#define SCANNER_STEVCT_PET 6 |
Definition for scanner model (system type): nonstandard
Definition at line 1560 of file libtpcimgio.h.
Referenced by imgSetScanner().
#define SCANNER_TUEBINGEN_PET_MR 8000 |
Definition for scanner model (system type): nonstandard
Definition at line 1583 of file libtpcimgio.h.
#define SCANNER_UNKNOWN 0 |
Definition for scanner model (system type)
Definition at line 1547 of file libtpcimgio.h.
Referenced by imgFormatDetermine().
#define SUN_I2 6 |
ECAT 6.3 data type
Definition at line 945 of file libtpcimgio.h.
Referenced by atnMake(), ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMatdata(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteImage(), ecat63WriteNorm(), ecat63WriteScan(), ecatCopy7to63mainheader(), and imgReadEcat63Frame().
#define SUN_I4 7 |
ECAT 6.3 data type
Definition at line 947 of file libtpcimgio.h.
Referenced by ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnheader(), ecat63ReadAttnMatrix(), ecat63ReadImageheader(), ecat63ReadImageMatrix(), ecat63ReadMainheader(), ecat63ReadMatdata(), ecat63ReadNormheader(), ecat63ReadPlaneToImg(), ecat63ReadScanheader(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteImage(), ecat63WriteNorm(), ecat63WriteScan(), and imgReadEcat63Frame().
#define VAX_I2 2 |
ECAT 6.3 data type
Definition at line 937 of file libtpcimgio.h.
Referenced by ecat63AddImg(), ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMainheader(), ecat63ReadMatdata(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat63WriteAllImg(), ecat63WriteAttn(), ecat63WriteAttnheader(), ecat63WriteImage(), ecat63WriteImageheader(), ecat63WriteMainheader(), ecat63WriteNorm(), ecat63WriteNormheader(), ecat63WriteScan(), ecat63WriteScanheader(), imgGetEcat63MHeader(), imgReadEcat63Frame(), imgReadEcat63Header(), imgSetEcat63MHeader(), and imgSetEcat63SHeader().
#define VAX_I4 3 |
ECAT 6.3 data type
Definition at line 939 of file libtpcimgio.h.
Referenced by ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMatdata(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteAttnheader(), ecat63WriteImage(), ecat63WriteImageheader(), ecat63WriteMainheader(), ecat63WriteNorm(), ecat63WriteNormheader(), ecat63WriteScan(), ecat63WriteScanheader(), imgGetEcat63MHeader(), imgReadEcat63Frame(), and imgReadEcat63Header().
#define VAX_R4 4 |
ECAT 6.3 data type
Definition at line 941 of file libtpcimgio.h.
Referenced by ecat63pxlbytes(), ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMatdata(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteAttnheader(), ecat63WriteImage(), ecat63WriteImageheader(), ecat63WriteMainheader(), ecat63WriteNorm(), ecat63WriteNormheader(), ecat63WriteScan(), ecat63WriteScanheader(), imgGetEcat63MHeader(), imgReadEcat63Frame(), and imgReadEcat63Header().
anonymous enum |
Definitions for IMG struct status message
Definition at line 1589 of file libtpcimgio.h.
enum dcmtruid |
DICOM Transfer Syntax UID.
In case of implicit VR, elements do NOT contain VR ! Reference: DICOM PS3.5 2017a chapter 10.
Items must be the same and in the same order as the dcm_truid list.
Definition at line 2818 of file libtpcimgio.h.
enum dcmvr |
DICOM value representation (VR).
Reference: DICOM PS3.5 2017a chapter 6.2.
Items must be the same and in the same order as the dcm_vr list.
Definition at line 2847 of file libtpcimgio.h.
|
extern |
Check if Analyze database files exist (*.hdr, *.img, and optionally *.sif).
dbname | analyze database name that is tested. String may contain standard extensions .hdr, .img or .sif |
hdrfile | pointer to an allocated string, where existing header filename is written. If not found, then set to "". NULL can be entered, if not needed. |
imgfile | pointer to an allocated string, where existing image filename is written. If not found, then set to "". NULL can be entered, if not needed. |
siffile | pointer to an allocated string, where existing sif filename is written. If not found, then set to "". NULL can be entered, if not needed. |
Definition at line 704 of file analyze.c.
Referenced by anaRemove(), imgFormatDetermine(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), and imgWriteAnalyzeFrame().
|
extern |
Edits Analyze 7.5 header.
h | Pointer to Analyze header struct. |
field | Header field name. |
value | New value for the header field. |
Definition at line 783 of file analyze.c.
|
extern |
Check if Analyze files exist.
dbname | basename of Analyze 7.5 file. |
Definition at line 20 of file analyze.c.
|
extern |
Check if specified filename is a Analyze file.
filename | Filename, either header file, image file, or base name without extensions. this string is never modified. |
hdrfile | If filename refers to a Analyze file, then header filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
imgfile | If filename refers to a Analyze file, then image filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
siffile | If filename refers to a Analyze file, and if SIF exists, then SIF filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
Definition at line 45 of file analyze.c.
Referenced by imgRead(), and imgReadAnalyze().
|
extern |
Check whether Analyze image is flipped in z-direction when it is read from/written to file (x,y-flipping is done always).
Definition at line 635 of file analyze.c.
Referenced by imgAnalyzeToEcat(), imgReadAnalyze(), imgReadAnalyzeFrame(), imgWriteAnalyze(), and imgWriteAnalyzeFrame().
|
extern |
Make SIF filename from Analyze 7.5 database name.
dbname | Analyze 7.5 database name (including possible path but not extension. |
siffile | Pointer to allocated space for SIF filename. |
Definition at line 763 of file analyze.c.
Referenced by anaDatabaseExists().
|
extern |
Print the contents of Analyze header to specified file pointer.
h | Pointer to Analyze header structure. |
fp | Output file pointer. |
Definition at line 380 of file analyze.c.
Referenced by imgReadAnalyze().
|
extern |
Read analyze header contents.
filename | Name of file to read (including path and extension). |
h | Pointer to previously allocated header structure. |
Definition at line 131 of file analyze.c.
Referenced by anaExistsNew(), imgReadAnalyze(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), and imgWriteAnalyzeFrame().
|
extern |
Read Analyze 7.5 image data, convert byte order if necessary, and scale values to floats. Reads only one frame at a time!
fp | File, opened previously in binary mode. |
h | Analyze header, read previously. |
frame | Frame number to read [1..number of frames]. |
data | Pointer to image float data allocated previously. |
Definition at line 454 of file analyze.c.
Referenced by imgReadAnalyze(), and imgReadAnalyzeFrame().
|
extern |
Remove header and data files belonging to specified Analyze 7.5 database. SIF is not deleted in any case.
dbname | Analyze database name. |
Definition at line 666 of file analyze.c.
|
extern |
Check if Analyze 7.5 filename was given accidentally with extension. Remove the extension if necessary.
fname | Full name of file. |
Definition at line 687 of file analyze.c.
Referenced by anaDatabaseExists(), and imgRead().
|
extern |
Write Analyze header contents. Header field 'little' is used to determine the required byte order.
filename | Name of file to read (including path and extension) |
h | Pointer to Analyze header structure |
Definition at line 282 of file analyze.c.
Referenced by imgWriteAnalyze(), and imgWriteAnalyzeFrame().
|
extern |
Add an item to DCMFILE data struct.
dcm | Pointer to DCMFILE. |
d | Pointer to a previous item in DCMFILE, into which to link this item; enter NULL to add as next item to the highest level. |
aschild | Add as child; 1=yes, 0=no. |
tag | Tag |
vr | VR |
vl | VL; enter 0xFFFFFFFF to use VR's default length. |
rd | Pointer to the item value as byte array |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 1239 of file dcm.c.
|
extern |
Convert DICOM date 'DA' to international format YYYY-MM-DD.
orig | Pointer to original DICOM string. |
intl | Pointer to string where date in international format will be written; must be allocated for at least 11 characters. |
Definition at line 299 of file dcm.c.
|
extern |
Convert DICOM datetime 'DT' to international format YYYY-MM-DD hh:mm:ss.
orig | Pointer to original DICOM string. Should be in format YYYYMMDDhhmmss.FFFFFF+hhmm |
intl | Pointer to string where date and time in international format will be written; must be allocated for at least 20 characters. |
Definition at line 345 of file dcm.c.
|
extern |
Free memory allocated for DCMFILE data. All contents are destroyed.
d | Pointer to DCMFILE. |
Definition at line 868 of file dcm.c.
Referenced by dcmFileRead().
|
extern |
Initiate the DCMFILE struct before any use.
d | Pointer to DCMFILE. |
Definition at line 823 of file dcm.c.
Referenced by dcmfileFree().
|
extern |
Get the maximum depth of DCMFILE items tree.
df | Pointer to DCMFILE item. |
Definition at line 903 of file dcm.c.
|
extern |
Read a single DICOM file.
filename | Pointer to filename. |
dcm | Pointer to initiated data structure. |
headerOnly | Read only header (1), or read both header and pixel data (0). |
verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
Definition at line 1687 of file dcm.c.
|
extern |
Read an element from DICOM file, and add it to the given linked list. This function will be called recursively in case of sequential items.
dcm | Pointer to DCMFILE struct; must be initiated before first call. |
prev_item | Pointer to previous element; NULL if none exists (yet). |
parent_item | Pointer to parent element; NULL if none exists (yet). |
sub | Add as next element (0) or as child element. |
headerOnly | Read only header (1), or read both header and pixel data (0). |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 1370 of file dcm.c.
Referenced by dcmFileRead(), and dcmFileReadNextElement().
|
extern |
Write a single DICOM file.
filename | Pointer to file name. |
dcm | Pointer to DICOM data to be written. |
verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
Definition at line 1758 of file dcm.c.
Search for specified tag in DCMITEM data tree.
d | Pointer to current DICOM item. |
omit | Omit this item from the search. |
tag | Pointer to the DICOM tag that is searched for. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 1163 of file dcm.c.
Referenced by dcmFindTag().
|
extern |
Recursively free memory allocated for DCMITEM items and their children items.
d | Pointer to DCMITEM. |
Definition at line 840 of file dcm.c.
Referenced by dcmfileFree(), and dcmitemFree().
|
extern |
Read integer value from given DICOM item.
VR must be either UL, US, SL, SS, or IS; otherwise 0 is returned.
d | Pointer to item. |
Definition at line 1084 of file dcm.c.
|
extern |
Read floating point value from given DICOM item.
VR must be either FL, FD, DS, UL, US, SL, SS, or IS; otherwise 0 is returned.
d | Pointer to item. |
Definition at line 1120 of file dcm.c.
|
extern |
Get the maximum depth of DCMITEM tree.
d | Pointer to DCMITEM item. |
Definition at line 884 of file dcm.c.
Referenced by dcmfileMaxDepth(), and dcmitemMaxDepth().
|
extern |
Check how deep in DCMITEM tree this item is.
d | Pointer to DCMITEM. |
Definition at line 923 of file dcm.c.
Referenced by dcmFileReadNextElement().
|
extern |
Print contents of given DICOM item into stdout.
d | Pointer to item. |
Definition at line 1205 of file dcm.c.
Referenced by dcmAddItem(), and dcmFileWrite().
|
extern |
Read DICOM tag from current file position.
fp | File pointer, positioned at the start of the element (and tag). |
tag | Pointer to DICOM tag struct; enter NULL if you just need to move file position over the tag. |
Definition at line 553 of file dcm.c.
Referenced by dcmFileReadNextElement(), and dcmReadTransferSyntaxUID().
|
extern |
Read DICOM value length (2 or 4 bytes, depending on VR) from current file position.
fp | File pointer, positioned at the VL start. |
n | Number of bytes (2 or 4) in the VL representation. |
Definition at line 692 of file dcm.c.
Referenced by dcmFileReadNextElement(), and dcmReadTransferSyntaxUID().
|
extern |
Read DICOM value representation (2 or 4 bytes) from current file position.
fp | File pointer, positioned at the VR start. |
vrstr | Pointer for VR string, allocated for at least 3 characters to have space for the trailing null; enter NULL if not needed. |
Definition at line 655 of file dcm.c.
Referenced by dcmReadTransferSyntaxUID().
|
extern |
Read DICOM Value Representation (VR, 2 or 4 bytes) and Value Length (VL, 2 or 4 bytes) from current file position.
fp | File pointer, positioned at the VR start. |
vr | Pointer for enumerated VR value; enter NULL if not needed (file pointer moved anyway). |
vl | Pointer for VL; enter NULL if not needed (file pointer moved anyway). |
n | Pointer for number of bytes read from file; enter NULL if not needed. |
Definition at line 724 of file dcm.c.
Referenced by dcmFileReadNextElement().
|
extern |
Read and identify the DICOM Transfer Syntax UID.
fp | Pointer to DICOM file opened in binary format, and positioned right after the Magic number. Position will be returned to this position. |
Definition at line 502 of file dcm.c.
Referenced by dcmFileRead().
|
extern |
Identify the DICOM SOP UID.
s | SOP UID string. |
Definition at line 367 of file dcm.c.
|
extern |
Get the DICOM SOP UID Name.
i | SOP UID list index. |
Definition at line 388 of file dcm.c.
|
extern |
Get the DICOM SOP UID.
i | SOP UID list index. |
Definition at line 406 of file dcm.c.
|
extern |
Get the name of DICOM SOP UID.
s | SOP UID string. |
Definition at line 424 of file dcm.c.
|
extern |
|
extern |
Convert DICOM time 'TM' to international format hh:mm:ss.
orig | Pointer to original DICOM string. |
intl | Pointer to string where time in international format will be written; must be allocated for at least 9 characters. |
Definition at line 322 of file dcm.c.
|
extern |
Identify the DICOM Transfer Syntax UID.
s | UID string. |
Definition at line 445 of file dcm.c.
Referenced by dcmReadTransferSyntaxUID().
|
extern |
Get the DICOM Transfer Syntax UID description.
id | Transfer Syntax UID id (DCM_TRUID_LEI, ...). |
Definition at line 466 of file dcm.c.
Referenced by dcmFileRead().
|
extern |
Get the DICOM Transfer Syntax UID string.
id | Transfer Syntax UID id (DCM_TRUID_LEI, ...). |
Definition at line 484 of file dcm.c.
|
extern |
Pre-process the DICOM element value into format suitable for printing.
Attribute tag
Float
Double
Unsigned 32-bit int
Unsigned 16-bit int
Signed 32-bit int
Signed 16-bit int
d | Pointer to item containing the value to print. |
Definition at line 942 of file dcm.c.
Referenced by dcmitemPrint().
|
extern |
Verify that given file (either file name or file pointer) appears to be DICOM file, based on the magic number.
filename | Name of file to open and to verify for the magic number; enter NULL to use the file pointer (next argument) instead. |
fp | File pointer of file to check, opened with fp=fopen(filename, "rb"); enter NULL to open file (previous argument) locally. Previously opened file pointer is first rewound to start; if DICOM magic number is found, then file pointer is left to the end of magic number, and if not, it is rewound to the file start. |
Definition at line 157 of file dcm.c.
Referenced by dcmFileRead(), and imgFormatDetermine().
|
extern |
Get the DICOM VR description.
id | VR id (DCM_VR_AE, ...). |
Definition at line 282 of file dcm.c.
Referenced by dcmFileReadNextElement().
|
extern |
Identify the DICOM VR based on the two-character long string.
s | VR string. Two first characters are used. String does not need to be null-terminated. |
Definition at line 223 of file dcm.c.
Referenced by dcmReadFileVR(), and dcmReadFileVRVL().
|
extern |
Get the DICOM VR name.
id | VR id (DCM_VR_AE, ...). |
Definition at line 246 of file dcm.c.
Referenced by dcmAddItem(), dcmFileReadNextElement(), dcmitemPrint(), dcmReadFileVR(), and dcmWriteFileVRVL().
|
extern |
Is the explicit VR (2 bytes) followed by reserved 2 bytes? If yes, then the following Value Length is also given as 32-byte integer, if no, then as 16-bit integer.
id | VR id (DCM_VR_AE, ...). |
Definition at line 205 of file dcm.c.
Referenced by dcmReadFileVR(), dcmReadFileVRVL(), dcmReadTransferSyntaxUID(), and dcmWriteFileVRVL().
|
extern |
Get the DICOM VR max value length in bytes; 0 if not defined.
id | VR id (DCM_VR_AE, ...). |
Definition at line 264 of file dcm.c.
Referenced by dcmAddItem(), dcmFileReadNextElement(), dcmFileWrite(), and dcmValueString().
|
extern |
Write DICOM Sequence delimitation item into current file position.
This item consists of four byte sequence delimitation tag (0xFFFE, 0xE0DD) and four byte item length (0x00000000), i.e. together 8 bytes.
fp | File pointer, at the write position. |
Definition at line 609 of file dcm.c.
Referenced by dcmFileWrite().
|
extern |
Write DICOM Sequence Item Delimitation Tag with VL into current file position.
This tag consists of four bytes, sequence item delimitation tag (0xFFFE, 0xE00D), followed by four byte item length (0x00000000), i.e. together 8 bytes.
fp | File pointer, at the write position. |
Definition at line 634 of file dcm.c.
Referenced by dcmFileWrite().
|
extern |
Write DICOM tag into current file position.
fp | File pointer, at the write position. |
tag | Pointer to DICOM tag struct to write. |
Definition at line 583 of file dcm.c.
Referenced by dcmFileWrite(), dcmWriteFileSQDelimItem(), and dcmWriteFileSQItemDelimTag().
|
extern |
Write DICOM Value Representation (VR, 2 or 4 bytes) and Value Length (VL, 2 or 4 bytes) into current file position.
fp | File pointer, opened fro writing in binary mode. |
vr | Enumerated VR value. |
vl | VL |
n | Pointer for number of bytes written into file; enter NULL if not needed. |
Definition at line 784 of file dcm.c.
Referenced by dcmFileWrite().
|
extern |
Check if pixel float values need to be scaled to be saved as short ints, or if they are already all very close to integers.
amax | Absolute maximum value. |
data | Float array. |
nr | Number of float values in float array. |
Definition at line 662 of file ecat63w.c.
Referenced by ecat63WriteImageMatrix(), and ecat63WriteScanMatrix().
|
extern |
Adds all matrices in memory to the ECAT file. If ECAT file does not exist, it is created.
Please note that existing ECAT file is NOT saved as bak file.
fname | Name of the output ECAT 6.3 file. |
img | Pointer to data structure from which the data is written. |
Definition at line 878 of file img_e63.c.
|
extern |
Checks that all matrixlist entries have read/write status.
ml | matrix list |
Definition at line 324 of file ecat63ml.c.
Referenced by atnMake(), and ecatFixMatrixlist().
|
extern |
|
extern |
|
extern |
Create a new ECAT 6.3 file and return file pointer or NULL in case of an error. If file exists, it is renamed as fname% if possible. Directory list is written in big endian byte order.
fname | file name |
h | Ecat 6.3 main header |
Definition at line 365 of file ecat63w.c.
Referenced by atnMake(), ecat63AddImg(), ecat63CopyFile(), ecat63WriteAllImg(), and imgWriteEcat63Frame().
|
extern |
Return pointer to string describing the ECAT 6.3 data_type
dtype | data type code |
Definition at line 218 of file ecat63p.c.
Referenced by ecat63PrintAttnheader(), ecat63PrintImageheader(), ecat63PrintMainheader(), ecat63PrintNormheader(), ecat63PrintScanheader(), and ecat63ReadMainheader().
|
extern |
Mark deleted the frames after the specified frame number.
This can be used to delete sum images from the end of dynamic ECAT images.
ml | matrix list. |
frame_nr | last index not to be marked as deleted. |
Definition at line 342 of file ecat63ml.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), and imgReadEcat63Header().
|
extern |
Edit ECAT 6.3 main header.
h | Pointer to ECAT 6.3 mainheader structure |
field | Field name to be changed |
value | New value for the field |
verbose | Verbose level; if <=0, then nothing is printed into stdout |
Definition at line 140 of file ecat63h.c.
|
extern |
Free memory allocated for ECAT matrix list
mlist | matrix list |
Definition at line 31 of file ecat63ml.c.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadMatlist(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Matrix numbers in ECAT 6.3 matrix list are edited, when necessary, so that plane, frame, gate and/or bed numbers are continuous, starting from one (planes, frames and gates) or from zero (beds). List order is not changed.
ml | ECAT 6.3 matrix list, where the matrix numbers will be edited |
do_planes | Plane numbers are gathered together (1) or not (0) |
do_frames | Frame numbers are gathered together (1) or not (0) |
do_gates | Gate numbers are gathered together (1) or not (0) |
do_beds | Bed numbers are gathered together (1) or not (0) |
Definition at line 510 of file ecat63ml.c.
Referenced by ecatFixMatrixlist(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Calculate the size of one data matrix in ECAT 6.3 file matrix list, and check that the size is same in all matrices.
mlist | Ecat 6.3 matrix list; note that this list is here sorted by planes |
blk_nr | Number of blocks will be put here; NULL if not needed |
Definition at line 366 of file ecat63ml.c.
Referenced by imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Read the maximum plane, frame, gate and bed number from matrixlist.
ml | Pointer to matrixlist |
num_planes | number of planes will be put here; NULL if not needed |
num_frames | number of frames will be put here; NULL if not needed |
num_gates | number of gates will be put here; NULL if not needed |
num_bed_pos | number of gates will be put here; NULL if not needed |
Definition at line 450 of file ecat63ml.c.
Referenced by ecatFixMatrixlist().
|
extern |
Calculate the number of planes and frames/gates from ECAT 6.3 matrix list. Check that all planes have equal nr of frames/gates, that frames/gates are sequentially numbered. This routines sorts the matrix list by planes.
mlist | Ecat 6.3 matrix list; note that this list is here sorted by planes |
h | Ecat 6.3 mainheader |
plane_nr | Number of planes will be put here; NULL if not needed |
frame_nr | Number of frames/gates will be put here; NULL if not needed |
Definition at line 400 of file ecat63ml.c.
Referenced by imgReadEcat63Header().
|
extern |
Initiate ECAT matrix list. Call this once before first use.
mlist | matrix list |
Definition at line 20 of file ecat63ml.c.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), ecatFixMatrixlist(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Prepare matrix list for additional matrix data and Directory records are written in big endian byte order. Set block_nr to the number of data blocks excluding header;
fp | file pointer |
matnum | matrix number [1..number of matrices] |
blkNr | matrix block number [ >= 1] |
Definition at line 159 of file ecat63ml.c.
Referenced by ecat63CopyFile(), ecat63WriteAttn(), ecat63WriteImage(), ecat63WriteImageMatrix(), ecat63WriteNorm(), ecat63WriteScan(), and ecat63WriteScanMatrix().
|
extern |
Print ECAT 6.3 attnheader contents to specified file pointer
h | Ecat 6.3 attenuation header |
fp | target file pointer |
Definition at line 173 of file ecat63p.c.
Referenced by ecat63ReadAttnMatrix(), and ecat6PrintSubheader().
|
extern |
Print ECAT 6.3 imageheader contents to specified file pointer
h | Ecat 6.3 image header |
fp | target file pointer |
Definition at line 94 of file ecat63p.c.
Referenced by ecat63ReadImageMatrix(), ecat63WriteAllImg(), and ecat6PrintSubheader().
|
extern |
Print ECAT 6.3 mainheader contents to specified file pointer.
h | Ecat 6.3 main header |
fp | file pointer |
Definition at line 16 of file ecat63p.c.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), and imgWriteEcat63Frame().
|
extern |
Print ECAT matrix list on stdout.
ml | Pointer to matrix list to print. |
Definition at line 130 of file ecat63ml.c.
Referenced by ecat63ReadAllToImg(), ecat6PrintSubheader(), and ecatFixMatrixlist().
|
extern |
Print ECAT 6.3 normheader contents to specified file pointer.
h | Ecat 6.3 normalization header |
fp | target file pointer |
Definition at line 197 of file ecat63p.c.
Referenced by ecat6PrintSubheader().
|
extern |
Print ECAT 6.3 scanheader contents to specified file pointer
h | Ecat 6.3 scan header |
fp | target file pointer |
Definition at line 137 of file ecat63p.c.
Referenced by atnMake(), ecat63ReadScanMatrix(), ecat63WriteAllImg(), and ecat6PrintSubheader().
|
extern |
Returns the nr of bytes required for storage of one pixel of specified data_type
data_type | data type code |
Definition at line 973 of file ecat63r.c.
Referenced by ecat63WriteImageMatrix(), and ecat63WriteScanMatrix().
|
extern |
Read all matrices in ECAT file to memory.
Sinograms are dead-time corrected.
fname | Name of the input ECAT 6.3 file. |
img | Data structure in which the file is read; must be initialized before using this function. |
Definition at line 22 of file img_e63.c.
Referenced by imgRead().
|
extern |
Read ECAT 6.3 attenuation header
fp | File pointer to ECAT file; position is not important. |
blk | Block number from matrix list [2..number of blocks]. |
h | Pointer to the header struct where contents are put. |
verbose | Verbose level; if zero, then only warnings are printed into stderr. |
errmsg | Pointer to error message, at least 128 characters; enter NULL, if not needed. |
Definition at line 296 of file ecat63r.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Read ECAT63 attenuation matrix header and data.
If only header is to be read, set last_block=first_block. Note: data is not calibrated with factor in main header.
fp | ECAT file pointer. |
first_block | Subheader record number. |
last_block | Last data block number. |
h | Pointer to subheader data which is filled. |
fdata | Float pointer to the address of the matrix data; any old contents are not freed, therefore you must free the pointer after data is copied elsewhere. |
Definition at line 830 of file ecat63r.c.
|
extern |
Read ECAT 6.3 image header.
fp | File pointer to ECAT file; position is not important. |
blk | Block number from matrix list [2..number of blocks]. |
h | Pointer to the header struct where contents are put. |
verbose | Verbose level; if zero, then only warnings are printed into stderr. |
errmsg | Pointer to error message, at least 128 characters; enter NULL, if not needed. |
Definition at line 187 of file ecat63r.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadImageMatrix(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Read ECAT63 image matrix header and data.
If only header is to be read, set last_block=first_block. Note: data is not calibrated with factor in main header.
fp | ECAT file pointer |
first_block | Subheader record number |
last_block | Last data block number |
h | Ptr to subheader data which is filled |
fdata | Ptr to the address of the matrix data; any old contents are not freed, therefore you must free the pointer after data is copied elsewhere. |
Definition at line 627 of file ecat63r.c.
|
extern |
Read ECAT 6.3 main header.
fp | file pointer |
h | target Ecat 6.3 main header structure |
Definition at line 25 of file ecat63r.c.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecatFixMatrixlist(), imgRead(), imgReadEcat63Frame(), imgReadEcat63Header(), and imgWriteEcat63Frame().
|
extern |
Read ECAT 6.3 matrix data and convert byte order if necessary Remember to allocate memory for full blocks! There are differences here when compared to ecat7.c
fp | file pointer from where data is read |
strtblk | starting block [>= 1] |
blkNr | number of block to be read [>= 0] |
data | pointer to block where data is read |
dtype | data type code |
Definition at line 568 of file ecat63r.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), and imgReadEcat63Frame().
|
extern |
Read ECAT 6.3 matrix list.
Matrix list must be initiated (once) before calling this.
fp | File pointer. |
ml | Pointer to initiated matrix list. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 46 of file ecat63ml.c.
Referenced by atnMake(), ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), ecatFixMatrixlist(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Read ECAT 6.3 normalization header.
Note that ECAT 6.3 normalization data is usually stored in scan file format, not in normalization format.
fp | File pointer to ECAT file; position is not important. |
blk | Block number from matrix list [2..number of blocks]. |
h | Pointer to the header struct where contents are put. |
verbose | Verbose level; if zero, then only warnings are printed into stderr. |
errmsg | Pointer to error message, at least 128 characters; enter NULL, if not needed. |
Definition at line 483 of file ecat63r.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat6PrintSubheader(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Reads one CTI ECAT 6.3 plane (all frames or gates) at a time to memory. Img data must be initialized before this procedure. Existing img->_dataType is not changed. If img data structure is empty, reads the first plane. If img data structure contains data, reads the next plane. Any existing data in img is cleared and replaced by the new plane.
fname | name of the input ECAT 6.3 file |
img | data structure in which the file is read |
Definition at line 550 of file img_e63.c.
|
extern |
Read ECAT 6.3 scan header.
fp | File pointer to ECAT file; position is not important. |
blk | Block number from matrix list [2..number of blocks]. |
h | Pointer to the header struct where contents are put. |
verbose | Verbose level; if zero, then only warnings are printed into stderr. |
errmsg | Pointer to error message, at least 128 characters; enter NULL, if not needed. |
Definition at line 377 of file ecat63r.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat6PrintSubheader(), imgReadEcat63Frame(), and imgReadEcat63Header().
|
extern |
Read ECAT63 scan matrix header and data.
If only header is to be read, set last_block=first_block. Note: data is not calibrated with factor in main header.
fp | ECAT file pointer. |
first_block | Subheader record number. |
last_block | Last data block number. |
h | Pointer to subheader data which is filled. |
fdata | Double pointer to the address of the matrix data; any old contents are not freed, therefore you must free the pointer after data is copied elsewhere. |
Definition at line 731 of file ecat63r.c.
Referenced by atnMake().
|
extern |
Reading ECAT 6.3 floats
bufi | pointer to 32-bit long data block |
isvax | 1 for VAX format |
islittle | 1 for little endian |
Definition at line 928 of file ecat63r.c.
Referenced by ecat63ReadAttnheader(), ecat63ReadImageheader(), ecat63ReadMainheader(), ecat63ReadMatdata(), ecat63ReadNormheader(), and ecat63ReadScanheader().
|
extern |
Reading and writing ECAT 6.3 32-bit ints. 32-bit int format is same in VAX and i386
bufi | pointer to 32-bit long data block |
isvax | 1 for VAX format |
islittle | 1 for littel endian |
Definition at line 953 of file ecat63r.c.
Referenced by ecat63ReadImageheader(), ecat63ReadMatdata(), and ecat63ReadScanheader().
|
extern |
Get calendar time from ECAT 6.3 main header.
h | Pointer to ECAT 6.3 main header |
Definition at line 925 of file ecat63w.c.
Referenced by atnMake(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecatCopy63to7mainheader(), and imgGetEcat63MHeader().
|
extern |
Convert scan_start_time in ECAT 6.3 main header into a null-terminated string of the form YYYY-MM-DD hh:mm:ss, with length of 19 characters and the null.
h | Pointer to ECAT 6.3 main header. |
buf | Pointer to string where the date and time will be written. It must be pre-allocated for at least 20 characters. |
Definition at line 391 of file ecat63p.c.
Referenced by imgGetEcat63MHeader(), and imgWriteEcat63Frame().
|
extern |
Convert scan_start_time in ECAT 6.3 main header into a struct tm.
h | Pointer to ECAT 6.3 main header |
tm | Pointer to pre-allocated struct tm. |
Definition at line 900 of file ecat63w.c.
|
extern |
Sort matrixlist by frame and plane. Bubble sorting algorithm.
ml | matrix list |
Definition at line 297 of file ecat63ml.c.
Referenced by imgReadEcat63Frame().
|
extern |
Sort matrixlist by plane and frame. Bubble sorting algorithm.
ml | marix list. |
Definition at line 271 of file ecat63ml.c.
Referenced by ecat63GetPlaneAndFrameNr(), and imgReadEcat63Header().
|
extern |
Returns pointer to string describing the calibrated data unit (ECAT 6.3).
dunit | data unit code |
Definition at line 243 of file ecat63p.c.
Referenced by ecat63PrintImageheader(), and ecat63PrintMainheader().
|
extern |
Writing ECAT 6.3 floats
bufi | pointer to 4-byte long input (float data) |
bufo | pointer to 4-byte long output |
tovax | 1 for VAX format |
islittle | 1 for little endian |
Definition at line 860 of file ecat63w.c.
Referenced by ecat63WriteAttnheader(), ecat63WriteImageheader(), ecat63WriteMainheader(), ecat63WriteNormheader(), and ecat63WriteScanheader().
|
extern |
Writing ECAT 6.3 32-bit ints. 32-bit int format is same in VAX and i386
bufi | pointer to 4-byte long input (integer data) |
bufo | pointer to 4-byte long output |
tovax | 1 for VAX format |
islittle | 1 for little endian |
Definition at line 884 of file ecat63w.c.
Referenced by ecat63WriteImageheader(), and ecat63WriteScanheader().
|
extern |
Write all matrices in memory to the ECAT file.
fname | name of the output ECAT 6.3 file, If ECAT file exists, it is renamed as filename% |
img | data structure from which the data is written |
Definition at line 335 of file img_e63.c.
Referenced by imgWrite().
|
extern |
Write ECAT 6.3 attenuation matrix header and data
fp | target file pointer |
matnum | matrix number [1..number of matrixes] |
h | Ecat 6.3 attenuation header |
data | pointer to data that is written |
Definition at line 563 of file ecat63w.c.
Referenced by atnMake().
|
extern |
Write ECAT 6.3 attenuation header
fp | target file pointer |
block | block number [>=3] |
h | Ecat 6.3 attenuation header |
Definition at line 190 of file ecat63w.c.
Referenced by ecat63WriteAttn().
|
extern |
Write ECAT 6.3 image matrix header and data
fp | target file pointer |
matnum | matrix number [1..number of matrixes] |
h | Ecat 6.3 image header |
data | pointer to data that is written |
Definition at line 410 of file ecat63w.c.
Referenced by ecat63AddImg(), and ecat63WriteAllImg().
|
extern |
Write ECAT 6.3 image header
fp | target file pointer |
block | block number [>= 3] |
h | Ecat 6.3 image header |
Definition at line 106 of file ecat63w.c.
Referenced by ecat63WriteImage(), and ecat63WriteImageMatrix().
|
extern |
Write ECAT 6.3 image matrix header and data
fp | target file pointer |
matnum | |
h | Ecat 6.3 image header |
fdata |
Definition at line 697 of file ecat63w.c.
Referenced by atnMake(), and imgWriteEcat63Frame().
|
extern |
Write ECAT 6.3 main header.
fp | target file pointer |
h | Ecat 6.3 main header |
Definition at line 24 of file ecat63w.c.
Referenced by ecat63AddImg(), ecat63Create(), and imgWriteEcat63Frame().
|
extern |
Write ECAT 6.3 matrix data to a specified file position. Data does not need to be allocated for full blocks. Data must be represented in current machines byte order, and it is always saved in big endian byte order. Give also nr of pixels and byte size of one pixel.
fp | target file pointer |
strtblk | starting image block [>=1] |
data | pointer to data that is written |
pxlNr | number of items to be written [>=1] |
pxlSize | size of one data item in bytes [>=1] |
Definition at line 618 of file ecat63w.c.
Referenced by ecat63WriteAttn(), ecat63WriteImage(), ecat63WriteImageMatrix(), ecat63WriteNorm(), ecat63WriteScan(), and ecat63WriteScanMatrix().
|
extern |
Write ECAT 6.3 normalization matrix header and data
fp | target file pointer |
matnum | matrix number [1..number of matrixes] |
h | Ecat 6.3 normalization header |
data | pointer to data that is written |
Definition at line 512 of file ecat63w.c.
|
extern |
Write ECAT 6.3 normalization header
fp | target file pointer |
block | block number [>=3] |
h | Ecat 6.3 normalization header |
Definition at line 313 of file ecat63w.c.
Referenced by ecat63WriteNorm().
|
extern |
Write ECAT 6.3 sinogram matrix header and data
fp | target file pointer |
matnum | matrix number [1..number of matrixes] |
h | Ecat 6.3 scan header |
data | pointer to data that is written |
Definition at line 461 of file ecat63w.c.
Referenced by ecat63AddImg(), and ecat63WriteAllImg().
|
extern |
Write ECAT 6.3 scan header
fp | target file pointer |
block | block number [>=3] |
h | Ecat 6.3 scan header |
Definition at line 242 of file ecat63w.c.
Referenced by ecat63WriteScan(), and ecat63WriteScanMatrix().
|
extern |
Write ECAT 6.3 sinogram matrix header and data
fp | target file pointer |
matnum | matrix number [1..number of matrixes] |
h | Ecat 6.3 scan header |
fdata | matrix data |
Definition at line 781 of file ecat63w.c.
Referenced by imgWriteEcat63Frame().
|
extern |
Print ECAT63 subheader contents into specified file pointer.
mh | ECAT 6.3 mainheader (not printed but needed here) |
fp | File pointer to ECAT 6.3 file. |
plane | ECAT 6.3 plane; enter <0 to print all planes. |
frame | ECAT 6.3 frame; enter <0 to print all frames. |
ofp | Output is written to this file pointer; it can be stdout |
Definition at line 293 of file ecat63p.c.
|
extern |
Conversion of matrix identifier to numerical values
matrix_id | matrix identifier coding |
matval | matrix values structure |
Definition at line 262 of file ecat7ml.c.
Referenced by ecat7DeleteLateFrames(), ecat7GatherMatlist(), ecat7GetNums(), ecat7GetPlaneAndFrameNr(), ecat7PrintMatlist(), ecat7PrintSubheader(), ecat7ReadHeaders(), ecat7SortMatlistByFrame(), ecat7SortMatlistByPlane(), ecat7WriteHeaders(), imgReadEcat7(), and imgReadEcat7Frame().
|
extern |
Check if pixel float values need to be scaled to be saved as short ints, or if they are already all very close to integers.
amax | Absolute maximum value. |
data | Float array. |
nr | Number of float values in float array. |
Definition at line 604 of file ecat7w.c.
Referenced by ecat7Write2DScanMatrix(), ecat7WriteImageMatrix(), ecat7WritePolarmapMatrix(), and ecat7WriteScanMatrix().
|
extern |
Returns the matrix identifier.
frame | frame number [0..65536] |
plane | plane number [0..65536] |
gate | gate number [0..64] |
data | data [0..1] |
bed | bed position [0..16] |
Definition at line 245 of file ecat7ml.c.
Referenced by ecat7GatherMatlist(), imgWrite2DEcat7(), imgWriteEcat7(), imgWriteEcat7Frame(), and imgWritePolarmap().
|
extern |
Returns pointer to a string describing the ECAT7 acquisition_type
acquisition_type | acquisition type code |
Definition at line 468 of file ecat7p.c.
Referenced by ecat7PrintMainheader().
|
extern |
Checks that all matrixlist entries have read/write status.
ml | checked matrix list |
Definition at line 329 of file ecat7ml.c.
Referenced by ecat7ReadHeaders(), ecat7WriteHeaders(), ecatFixMatrixlist(), imgReadEcat7(), imgReadEcat7Frame(), and imgReadEcat7Header().
|
extern |
Create a new ECAT 7.x file. If file exists, it is renamed as fname% if possible. Directory list is written in big endian byte order.
fname | filename |
h | Ecat7 main header |
Definition at line 567 of file ecat7w.c.
Referenced by ecat7CopyFile(), imgWrite2DEcat7(), imgWriteEcat7(), imgWriteEcat7Frame(), and imgWritePolarmap().
|
extern |
Returns pointer to a string describing the ECAT7 data_type
data_type | data type code |
Definition at line 489 of file ecat7p.c.
Referenced by ecat7Print2DNormheader(), ecat7Print2DScanheader(), ecat7PrintAttenheader(), ecat7PrintImageheader(), ecat7PrintNormheader(), ecat7PrintPolmapheader(), and ecat7PrintScanheader().
|
extern |
Mark deleted the frames after the specified frame number.
ml | target matrix list |
frame_nr | first index to be marked as deleted [1..number of frames] |
Definition at line 346 of file ecat7ml.c.
|
extern |
Edit ECAT 7 main header.
h | Pointer to ECAT 7 mainheader structure |
field | Field name to be changed |
value | New value for the field |
verbose | Verbose level; if <=0, then nothing is printed into stdout |
Definition at line 16 of file ecat7h.c.
Referenced by ecat7MainheaderFromIFT().
|
extern |
Edit ECAT 7 3Dscan header.
h | Pointer to ECAT 7 3D scan header structure |
field | Field name to be changed |
value | New value for the field |
verbose | Verbose level; if <=0, then nothing is printed into stdout |
Definition at line 199 of file ecat7h.c.
Referenced by ecat7WriteSubheaderFromIFT().
|
extern |
Edit ECAT 7 image volume header.
h | Pointer to ECAT 7 image volume header structure |
field | Field name to be changed |
value | New value for the field |
verbose | Verbose level; if <=0, then nothing is printed into stdout |
Definition at line 320 of file ecat7h.c.
Referenced by ecat7WriteSubheaderFromIFT().
|
extern |
Free memory allocated for ECAT matrix list.
mlist | target matrix list that has allocated memory |
Definition at line 26 of file ecat7ml.c.
Referenced by ecat7PrintSubheader(), ecat7ReadHeaders(), ecat7ReadMatlist(), ecat7WriteHeaders(), imgReadEcat7(), imgReadEcat7Frame(), and imgReadEcat7Header().
|
extern |
Prepare matrix list for additional matrix data and return block number for matrix header. Directory records are written in big endian byte order. Set block_nr to the number of data blocks + (nr of header blocks - 1)
fp | file pointer |
matrix_id | matrix identifier coding |
block_nr | matrix number [1..number of matrixes] |
Definition at line 147 of file ecat7ml.c.
Referenced by ecat7CopyFile(), ecat7Write2DScanMatrix(), ecat7WriteImageMatrix(), ecat7WritePolarmapMatrix(), and ecat7WriteScanMatrix().
|
extern |
Returns pointer to a string describing the ECAT7 file_type
file_type | file type code |
Definition at line 447 of file ecat7p.c.
Referenced by ecat7PrintMainheader(), and imgRead().
|
extern |
Matrix numbers in ECAT 7 matrix list are edited, when necessary, so that plane, frame, gate and/or bed numbers are continuous, starting from one (planes, frames and gates) or from zero (beds). List order is not changed.
ml | ECAT 7 matrix list, where the matrix numbers will be edited |
do_planes | Plane numbers are gathered together (1) or not (0) |
do_frames | Frame numbers are gathered together (1) or not (0) |
do_gates | Gate numbers are gathered together (1) or not (0) |
do_beds | Bed numbers are gathered together (1) or not (0) |
Definition at line 535 of file ecat7ml.c.
Referenced by ecatFixMatrixlist(), imgReadEcat7Frame(), and imgReadEcat7Header().
|
extern |
Calculate the size of one data matrix in ECAT7 file matrix list, and check that the size is same in all matrices.
mlist | Ecat7 matrix list; note that this list is here sorted by planes |
blk_nr | number of blocks will be put here; NULL if not needed |
Definition at line 418 of file ecat7ml.c.
Referenced by imgReadEcat7Header().
|
extern |
Read the maximum plane, frame, gate and bed number from matrixlist. In case of 3D formats, num_planes is checked from the first subheader.
ml | Pointer to matrixlist |
mh | Pointer to mainheader |
fp | File pointer to ECAT7 file opened in binary mode |
num_planes | num_planes will be put here; NULL if not needed to be read |
num_frames | num_planes will be put here; NULL if not needed to be read |
num_gates | num_planes will be put here; NULL if not needed to be read |
num_bed_pos | num_planes will be put here; NULL if not needed to be read |
Definition at line 452 of file ecat7ml.c.
Referenced by ecatFixMatrixlist().
|
extern |
Calculate the number of planes and frames/gates from ECAT7 matrix list. Check that all planes have equal nr of frames/gates, that frames/gates are sequentally numbered.
mlist | Ecat7 matrix list; note that this list is here sorted by planes |
h | Ecat7 main header structure |
plane_nr | Number of planes will be put here; NULL if not needed [1..number of planes, or NULL] |
frame_nr | Number of frames/gates will be put here; NULL if not needed [1..number of frames, or NULL] |
Definition at line 372 of file ecat7ml.c.
Referenced by imgReadEcat7Header().
|
extern |
Copy ECAT 7 image header into IFT structure.
h | Pointer to source ECAT 7 image header |
ift | Pointer to initiated IFT structure |
verbose | Verbose level |
Definition at line 251 of file ecat7ift.c.
Referenced by ecat7ReadSubheaderToIFT().
|
extern |
Initiate ECAT matrix list. Call this once before first use.
mlist | target matrix list |
Definition at line 15 of file ecat7ml.c.
Referenced by ecat7PrintSubheader(), ecat7ReadHeaders(), ecat7WriteHeaders(), ecatFixMatrixlist(), imgReadEcat7(), imgReadEcat7Frame(), and imgReadEcat7Header().
|
extern |
Copy ECAT 7 main header from IFT structure to header structure.
h | Pointer to target ECAT 7 main header |
ift | Pointer to source IFT structure |
verbose | Verbose level |
Definition at line 221 of file ecat7ift.c.
Referenced by ecat7WriteHeaders().
|
extern |
Copy ECAT 7 mainheader into IFT struct.
h | Pointer to source ECAT 7 main header |
ift | Pointer to initiated IFT struct |
verbose | Verbose level |
Definition at line 85 of file ecat7ift.c.
Referenced by ecat7ReadHeaders().
|
extern |
Print ECAT 7.x 2D normalization header contents to specified file pointer
h | Ecat7 2D normalization header |
fp | target file pointer |
Definition at line 415 of file ecat7p.c.
Referenced by ecat7PrintSubheader().
|
extern |
Print ECAT 7.x 2D sinogram header contents to specified file pointer
h | Ecat7 2D scan header |
fp | target file pointer |
Definition at line 364 of file ecat7p.c.
Referenced by ecat7PrintSubheader(), and ecat7Read2DScanMatrix().
|
extern |
Print ECAT 7.x attenuation header contents to specified file pointer
h | Ecat7 attenuation header |
fp | target file pointer |
Definition at line 230 of file ecat7p.c.
Referenced by ecat7PrintSubheader().
|
extern |
Print ECAT 7.x image header contents to specified file pointer.
h | Ecat7 image header |
fp | target file pointer |
Definition at line 102 of file ecat7p.c.
Referenced by ecat7PrintSubheader(), and ecat7ReadImageMatrix().
|
extern |
Print ECAT 7.x main header contents to specified file pointer
h | Ecat7 main header |
fp | target file pointer |
Definition at line 16 of file ecat7p.c.
|
extern |
Print ECAT matrix list on stdout.
ml | matrix list for Ecat7 file |
Definition at line 112 of file ecat7ml.c.
Referenced by ecat7PrintSubheader(), ecatFixMatrixlist(), and imgReadEcat7().
|
extern |
Prints ECAT 7.x normalization header contents to specified file pointer
h | Ecat7 normalization header |
fp | tager file pointer |
Definition at line 327 of file ecat7p.c.
Referenced by ecat7PrintSubheader().
|
extern |
Print ECAT 7.x polar map header contents to specified file pointer
h | Ecat7 polar map header |
fp | target file pointer |
Definition at line 276 of file ecat7p.c.
Referenced by ecat7PrintSubheader(), and ecat7ReadPolarmapMatrix().
|
extern |
Print ECAT 7.x 3D sinogram header contents to specified file pointer
h | Ecat7 scan header |
fp | target file pointer |
Definition at line 181 of file ecat7p.c.
Referenced by ecat7PrintSubheader(), and ecat7ReadScanMatrix().
|
extern |
Print ECAT7 subheader contents into specified file pointer.
mh | ECAT7 mainheader (not printed but needed here) |
fp | File pointer to ECAT7 file |
plane | ECAT7 plane |
frame | ECAT7 frame |
ofp | Output is written to this file pointer; it can be stdout |
Definition at line 506 of file ecat7p.c.
|
extern |
Returns the nr of bytes required for storage of one pixel of specified data_type
data_type | defined value for data type |
Definition at line 1274 of file ecat7r.c.
Referenced by ecat7ReadScanMatrix(), ecat7Write2DScanMatrix(), ecat7WriteImageMatrix(), ecat7WritePolarmapMatrix(), and ecat7WriteScanMatrix().
|
extern |
Read ECAT 7.x 2D normalization header
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 normalization header |
Definition at line 725 of file ecat7r.c.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), and ecat7WriteSubheaderFromIFT().
|
extern |
Read ECAT 7.x 2D scan header
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 2D scan header |
Definition at line 631 of file ecat7r.c.
Referenced by ecat7PrintSubheader(), ecat7Read2DScanMatrix(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), imgReadEcat7(), and imgReadEcat7Header().
|
extern |
Read ECAT7 2D sinogram matrix header and data Memory for fdata[] is allocated here, remember to free memory after usage. Note: data is not calibrated with factor in main header. Note: data is not multiplied with deadtime_correction_factor.
fp | ECAT file pointer |
first_block | Subheader record number |
last_block | Last data block number |
h | Ptr to subheader data which is filled |
fdata | Ptr to the address of the matrix data |
Definition at line 959 of file ecat7r.c.
Referenced by imgReadEcat7(), and imgReadEcat7Frame().
|
extern |
Read ECAT 7.x attenuation header
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 attenuation header |
Definition at line 311 of file ecat7r.c.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), and ecat7WriteSubheaderFromIFT().
|
extern |
Read ECAT7 header contents (both main header and subheaders).
fname | Image or sinogram file name |
ehdr | Pointer to empty headers structure |
verbose | Verbose level |
Definition at line 687 of file ecat7ift.c.
Referenced by ecat7CopyHeadersNoQuant().
|
extern |
Read ECAT 7.x image header
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 image header |
Definition at line 162 of file ecat7r.c.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadImageMatrix(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), imgReadEcat7(), and imgReadEcat7Header().
|
extern |
Read ECAT7 image matrix header and data. If only header is to be read, set last_block=first_block. Note: data is not calibrated with factor in main header.
fp | ECAT file pointer |
first_block | Subheader record number |
last_block | Last data block number |
h | Ptr to subheader data which is filled |
fdata | Ptr to the address of the matrix data |
Definition at line 858 of file ecat7r.c.
Referenced by imgReadEcat7(), and imgReadEcat7Frame().
|
extern |
Read ECAT 7.x main header
fp | input file pointer |
h | Ecat7 main header |
Definition at line 15 of file ecat7r.c.
Referenced by ecat7ReadHeaders(), ecat7WriteHeaders(), ecatFixMatrixlist(), imgRead(), imgReadEcat7(), imgReadEcat7Frame(), imgReadEcat7Header(), and imgWriteEcat7Frame().
|
extern |
Read ECAT matrix list.
Matrix list must be initiated (once) before calling this.
fp | File pointer. |
ml | Pointer to initiated matrix list. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 41 of file ecat7ml.c.
Referenced by ecat7PrintSubheader(), ecat7ReadHeaders(), ecat7WriteHeaders(), ecatFixMatrixlist(), imgReadEcat7(), imgReadEcat7Frame(), and imgReadEcat7Header().
|
extern |
Read ECAT7 matrix data and convert byte order if necessary Remember to allocate memory for full blocks! There are differences here when compared to ecat63.c
fp | input file pointer |
start_block | starting block index |
block_nr | number of blocks to be read |
data | target buffer |
dtype | data type of target buffer |
Definition at line 791 of file ecat7r.c.
Referenced by ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadPolarmapMatrix(), and ecat7ReadScanMatrix().
|
extern |
Read ECAT 7.x 3D normalization header
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 normalization header |
Definition at line 472 of file ecat7r.c.
Referenced by ecat7PrintSubheader(), ecat7ReadSubheaderToIFT(), and ecat7WriteSubheaderFromIFT().
|
extern |
Read ECAT7 polar map matrix header and data. If only header is to be read, set last_block=first_block. Note: data is not calibrated with factor in main header.
fp | ECAT file pointer |
first_block | Subheader record number |
last_block | Last data block number |
h | Ptr to subheader data which is filled |
fdata | Ptr to the address of the matrix data |
Definition at line 1154 of file ecat7r.c.
Referenced by imgReadEcat7(), and imgReadEcat7Frame().
|
extern |
Read ECAT 7.x polar map header
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 polar map header |
Definition at line 397 of file ecat7r.c.
Referenced by ecat7PrintSubheader(), ecat7ReadPolarmapMatrix(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), imgReadEcat7(), and imgReadEcat7Header().
|
extern |
Read ECAT 7.x 3D scan header (512 bytes)
fp | input file pointer |
blk | block number [1..number of blocks] |
h | Ecat7 scan header |
Definition at line 536 of file ecat7r.c.
Referenced by ecat7GetNums(), ecat7PrintSubheader(), ecat7ReadScanMatrix(), ecat7ReadSubheaderToIFT(), ecat7WriteSubheaderFromIFT(), imgReadEcat7(), and imgReadEcat7Header().
|
extern |
Read ECAT7 3D sinogram matrix header and data. Memory for fdata[] is allocated here, remember to free memory after usage. Note: data is converted to floats with scale_factor in the scan matrix header. Note: data is not calibrated with ecat_calibration_factor in main header. Note: data is not multiplied with deadtime_correction_factor.
fp | ECAT file pointer |
first_block | Subheader record number |
last_block | Last data block number |
h | Ptr to subheader data which is filled |
fdata | Ptr to the address of the matrix data |
Definition at line 1055 of file ecat7r.c.
Referenced by imgReadEcat7(), and imgReadEcat7Frame().
|
extern |
Read ECAT 7 subheader from file and store in IFT struct.
fp | File pointer to opened ECAT7 file |
h | ECAT7 mainheader |
strtblk | Subheader location |
ift | Preallocated location for header data |
verbose | Verbose level |
Definition at line 502 of file ecat7ift.c.
Referenced by ecat7ReadHeaders().
|
extern |
Read ECAT7 floats
bufi | pointer to 32-bit data block |
isvax | != 0 for VAX format |
islittle | != 0 for little endian conversion |
Definition at line 1233 of file ecat7r.c.
Referenced by ecat7ReadMatrixdata().
|
extern |
Reading and writing ECAT7 32-bit ints 32-bit int format is same in VAX and i386
bufi | pointer to one 32-bit data block |
isvax | ignored |
islittle | != 0 for little endian conversion |
Definition at line 1256 of file ecat7r.c.
Referenced by ecat7ReadMatrixdata().
|
extern |
Copy ECAT 7 scan header into IFT struct.
h | Pointer to source ECAT 7 scan header |
ift | Pointer to initiated IFT struct. Any previous contents are preserved. |
verbose | Verbose level |
Definition at line 408 of file ecat7ift.c.
Referenced by ecat7ReadSubheaderToIFT().
|
extern |
Sort matrixlist by frame and plane. Bubble sorting algorithm.
ml | target matrix list |
Definition at line 303 of file ecat7ml.c.
Referenced by imgReadEcat7Frame().
|
extern |
Sort matrixlist by plane and frame. Bubble sorting algorithm.
ml | target matrix list |
Definition at line 277 of file ecat7ml.c.
Referenced by ecat7GetPlaneAndFrameNr(), and imgReadEcat7().
|
extern |
Write ECAT 7.x 2D normalization header.
fp | file pointer |
blk | header block number, blk >= 2 |
h | Ecat7 2D normalization header |
Definition at line 517 of file ecat7w.c.
|
extern |
Write ECAT 7.x 2D scan header
fp | output file pointer |
blk | header block number, blk >= 2 |
h | Ecat7 2D scan header |
Definition at line 450 of file ecat7w.c.
Referenced by ecat7Write2DScanMatrix().
|
extern |
Write ECAT 7.x 2D sinogram matrix header and data
fp | output file pointer |
matrix_id | coded matrix id |
h | Ecat7 2D image scan header |
fdata | float data to be written |
Definition at line 719 of file ecat7w.c.
Referenced by imgWrite2DEcat7(), and imgWriteEcat7Frame().
|
extern |
Write ECAT 7.x attenuation header
fp | output file pointer |
blk | header block number, blk >= 2 |
h | Ecat7 attenuation header |
Definition at line 208 of file ecat7w.c.
|
extern |
Write ECAT7 header contents (both main header and subheaders).
fname | Image or sinogram filename |
ehdr | Pointer to filled headers structure |
verbose | Verbose level |
Definition at line 755 of file ecat7ift.c.
Referenced by ecat7CopyHeadersNoQuant().
|
extern |
Write ECAT 7.x image header. Changes data type to big endian.
fp | output file pointer |
blk | header block number, blk >= 2 |
h | Ecat7 image header |
Definition at line 113 of file ecat7w.c.
Referenced by ecat7WriteImageMatrix(), and ecat7WriteSubheaderFromIFT().
|
extern |
Write ECAT 7.x image or volume matrix header and data
fp | output file pointer |
matrix_id | coded matrix id |
h | Ecat7 image header |
fdata | float data to be written |
Definition at line 635 of file ecat7w.c.
Referenced by imgWrite2DEcat7(), imgWriteEcat7(), and imgWriteEcat7Frame().
|
extern |
Write ECAT 7.x main header.
Writes header always in big endian byte order.
fp | output file pointer |
h | Ecat7 main header |
Definition at line 16 of file ecat7w.c.
Referenced by ecat7Create(), ecat7WriteHeaders(), and imgWriteEcat7Frame().
|
extern |
Write ECAT 7.x matrix data to a specified file position. Data does not need to be allocated for full blocks. Data must be represented in current machines byte order, and it is always saved in big endian byte order.
fp | Pointer to an opened ECAT file |
start_block | Block number where matrix data is written |
data | Pointer to matrix data |
pxl_nr | Number of pixels |
pxl_size | Size of data for one pixel in bytes |
Definition at line 974 of file ecat7w.c.
Referenced by ecat7Write2DScanMatrix(), ecat7WriteImageMatrix(), ecat7WritePolarmapMatrix(), and ecat7WriteScanMatrix().
|
extern |
Write ECAT 7.x 3D normalization header
fp | output file pointer |
blk | header block number, blk >= 2 |
h | Ecat7 normalization header |
Definition at line 330 of file ecat7w.c.
|
extern |
Write ECAT 7.x polarmap matrix header and data
fp | output file pointer |
matrix_id | coded matrix information |
h | Ecat7 polar map header |
fdata | float data |
Definition at line 888 of file ecat7w.c.
Referenced by imgWriteEcat7Frame(), and imgWritePolarmap().
|
extern |
Write ECAT 7.x polar map header
fp | output file pointer |
blk | header block number, blk >= 2 |
h | Ecat7 polar map header |
Definition at line 271 of file ecat7w.c.
Referenced by ecat7WritePolarmapMatrix().
|
extern |
Write ECAT 7.x 3D scan header (512 bytes) Changes data type to big endian.
fp | pointer to output file |
blk | block number, blk >= 2 |
h | Ecat7 scan header |
Definition at line 383 of file ecat7w.c.
Referenced by ecat7ReadSubheaderToIFT(), ecat7WriteScanMatrix(), and ecat7WriteSubheaderFromIFT().
|
extern |
Write ECAT 7.x 3D sinogram matrix header and data
fp | output file pointer |
matrix_id | coded matrix id |
h | Ecat7 scan header |
fdata | float data |
Definition at line 802 of file ecat7w.c.
Referenced by imgWriteEcat7(), and imgWriteEcat7Frame().
|
extern |
Write ECAT 7 subheader from IFT struct into ECAT 7 file.
fp | File pointer to opened ECAT7 file |
h | ECAT7 mainheader |
strtblk | Subheader location |
ift | Header data |
verbose | Verbose level |
Definition at line 583 of file ecat7ift.c.
Referenced by ecat7WriteHeaders().
|
extern |
Removes previous matrix contents but preserves the main header.
ehdr | Pointer to list of ECAT headers |
nr | Nr of headers to allocate |
Definition at line 63 of file ecat7ift.c.
Referenced by ecat7ReadHeaders(), and ecat7WriteHeaders().
|
extern |
Free memory allocated in ECAT_HEADERS
ehdr | Pointer to header list struct |
Definition at line 47 of file ecat7ift.c.
Referenced by ecat7CopyHeadersNoQuant().
|
extern |
Initiate ECAT_HEADERS struct
ehdr | Pointer to struct |
Definition at line 21 of file ecat7ift.c.
Referenced by ecat7CopyHeadersNoQuant().
|
extern |
Free memory allocated in ECAT_MATRIX
emat | Pointer to ECAT matrix list |
Definition at line 33 of file ecat7ift.c.
Referenced by ehdrAllocate(), and ehdrEmpty().
|
extern |
Initiate image data inside ECAT_MATRIX struct
emat | Pointer to struct |
Definition at line 12 of file ecat7ift.c.
Referenced by ehdrAllocate().
|
extern |
Returns the kth smallest value in data[0..n-1].
Array is partially sorted. Algorithm is based on the book Wirth N. Algorithms + data structures = programs. Englewood Cliffs, Prentice-Hall, 1976.
data | Pointer to data; array is partially sorted |
n | Length of data array |
k | kth smallest value will be returned |
Definition at line 558 of file imgminmax.c.
Referenced by fmedian().
|
extern |
Printfs separately the sign, mantissa, and exp part of a 32-bit float, which is pointed to by the argument. Code is not optimized; do not use this in routine operations!
buf | printed float |
Definition at line 277 of file ecat63p.c.
|
extern |
Returns the mean in array data[0..n-1], and optionally calculates also the (sample) standard deviation of the mean.
data | Pointer to data; data is not changed in any way. |
n | Length of data array. |
sd | Pointer to variable where SD will be written; enter NULL if not needed. |
Definition at line 618 of file imgminmax.c.
Referenced by imgBorderAverageTAC().
|
extern |
Returns the median in array data[0..n-1].
Array is partially sorted. Algorithm is based on the book Wirth N. Algorithms + data structures = programs. Englewood Cliffs, Prentice-Hall, 1976.
data | Pointer to data; array is partially sorted |
n | Length of data array |
Definition at line 593 of file imgminmax.c.
Referenced by imgBorderAverageTAC(), med21(), and med9().
|
extern |
Finds the minimum and maximum value in a float array.
Only finite values are considered.
data | Pointer to float array of size n. |
n | Array length. |
fmin | Pointer to float value for minimum; enter NULL if not needed. |
fmax | Pointer to float value for maximum; enter NULL if not needed. |
Definition at line 649 of file imgminmax.c.
Referenced by ecat63WriteImageMatrix(), ecat63WriteScanMatrix(), ecat7Write2DScanMatrix(), ecat7WriteImageMatrix(), ecat7WritePolarmapMatrix(), ecat7WriteScanMatrix(), mrp(), and trmrp().
|
extern |
Set SIF contents based on data in IMG.
img | Pointer to IMG struct from which content is copied to SIF. |
sif | Pointer to SIF. Must be initiated with sifInit(), but SIF is allocated here if necessary. |
copy_header | Select whether header contents are copied (1) or not copied (0) to SIF. |
copy_frames | Select whether frame times are copied (1) or not copied (0) to SIF. |
copy_counts | Select whether counts are copied (1) or not copied (0) to SIF, or created if they do not exist (2). |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 71 of file img_sif.c.
Referenced by imgWriteAnalyze(), and imgWriteNifti().
Copy one time frame (1..dimt) from 4D image to 3D short int volume. Svol can be but need not to be allocated.
img | image structure |
svol | short volume structure |
frame | frame number [1..number of frames] |
Definition at line 305 of file vol.c.
Copy one time frame (1..dimt) from 4D image to 3D volume. Vol can be but need not to be allocated.
img | image structure |
vol | volume structure |
frame | frame number [1..number of frames] |
Definition at line 267 of file vol.c.
|
extern |
Searches the max absolute pixel value in the IMG data.
Sets maxvalue to the absolute max value with sign.
img | Pointer to IMG structure. |
maxvalue | Pointer to output. |
Definition at line 44 of file imgminmax.c.
|
extern |
Allocates memory for img data. Old contents are not saved.
image | Pointer to initialized image struct; old contents are deleted. |
planes | Nr of image planes (dim z) to allocate. |
rows | Nr of image rows (dim y) to allocate. |
columns | Nr of image columns (dim x) to allocate. |
frames | Nr of image time frames (dim t) to allocate. |
Definition at line 194 of file img.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), img2cube(), img_k1_using_ki(), imgAllocateWithHeader(), imgAUMC(), imgExtractRange(), imgFBP(), imgGetFrameDiff(), imgGetFrameDyn(), imgGetMaxFrame(), imgGetMaxTime(), imgMicropetCTToEcat7(), imgMicropetPETToEcat7(), imgMRP(), imgMRT(), imgOutlierFilter(), imgReadAnalyze(), imgReadAnalyzeFirstFrame(), imgReadEcat63FirstFrame(), imgReadEcat7(), imgReadEcat7FirstFrame(), imgReadFrame(), imgReadMicropetFirstFrame(), imgReadNifti(), imgReadNiftiFirstFrame(), imgReprojection(), imgStructuringElement(), imgThresholdingLowHigh(), and imgThresholdMaskCount().
|
extern |
This functions just combines imgAllocate() and imgCopyhdr().
image | Pointer to IMG struct which will be allocated here. |
planes | Image matrix dimensions; z. |
rows | Image matrix dimensions; y. |
columns | Image matrix dimensions; x. |
frames | Image matrix dimensions; t. |
image_from | Pointer to IMG struct where header contents will be copied from. |
Definition at line 279 of file img.c.
Referenced by img_logan(), img_patlak(), imgDup(), imgFlipAbove(), imgFlipRight(), imgFrameIntegral(), imgMeanZ(), imgNoiseTemplate(), imgPVCRRL(), imgPVCRVC(), imgsegmSimilar(), imgsegmThresholdMask(), imgShrink(), imgSwell(), and imgTimeIntegral().
Calculates average voxel value inside specified image range.
img | Pointer to IMG image structure |
r | Pointer to range inside IMG; enter NULL if whole IMG is used |
avg | Target for mean value |
Definition at line 503 of file imgminmax.c.
|
extern |
Corrects image data for branching fraction (mode=1) or removes correction (mode=0). Removal is primarily based on branching factor stored in IMG structure, secondarily on isotope; after removal, branching factor is set to 1, and pixel values and calibration factor are multiplied with it. Correction is based on branching fractions in branch.h; pixel values and calibration factor are divided by it, and its value is stored in IMG structure.
image | Pointer to IMG data |
mode | Branching fraction correction (1) or removal of correction (0) |
verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
status | Pointer to allocated string where error message will be written; NULL, if not needed. |
Definition at line 132 of file imgdecayc.c.
Copy the header fields from one image struct to another.
Does not copy memory addresses or IMG sizes. Frame times, decay correction factors etc are copied, when possible. Plane numbers are copied, when possible.
Definition at line 471 of file img.c.
Referenced by img2cube(), img_k1_using_ki(), imgAllocateWithHeader(), imgAUMC(), imgExtractRange(), imgGetFrameDiff(), imgGetFrameDyn(), imgGetMaxFrame(), imgGetMaxTime(), imgMRT(), imgThresholdingLowHigh(), and imgThresholdMaskCount().
|
extern |
Corrects (mode=1) or removes correction (mode=0) for physical decay. Removal is based on existing decay correction factors, when possible.
image | Pointer to IMG data. |
mode | 0=Remove decay correction; 1=Correct for decay. |
Definition at line 16 of file imgdecayc.c.
Duplicate IMG struct. Any existing contents in img2 will be deleted.
img1 | Pointer to IMG struct which will be duplicated |
img2 | Pointer to initiated IMG struct into which the duplicate will be made |
Definition at line 304 of file img.c.
Referenced by imgFlipAbove(), imgFlipRight(), imgMaskDilate(), imgMaskErode(), and imgMeanZ().
|
extern |
Check whether read functions in IMG library support this ECAT 6.3 file_type.
h | Ecat 6.3 main header |
Definition at line 1155 of file img_e63.c.
Referenced by imgReadEcat63Header().
|
extern |
Check whether read functions in IMG library support this ECAT 7.x file_type.
h | Ecat7 main header |
Definition at line 1036 of file img_e7.c.
Referenced by imgRead(), imgReadEcat7(), imgReadEcat7Frame(), and imgReadEcat7Header().
|
extern |
Free memory that is allocated for IMG.
image | Pointer to IMG struct |
Definition at line 121 of file img.c.
Referenced by ecat63ReadPlaneToImg(), img2cube(), img_k1_using_ki(), img_logan(), img_patlak(), imgAllocate(), imgAnalyzeToEcat(), imgAUMC(), imgDup(), imgExtractRange(), imgFBP(), imgFlipAbove(), imgFlipRight(), imgFormatDetermine(), imgFrameIntegral(), imgGetFrameDiff(), imgGetFrameDyn(), imgGetMaxFrame(), imgGetMaxTime(), imgMaskDilate(), imgMaskErode(), imgMaskRegionLabeling(), imgMicropetCTToEcat7(), imgMicropetPETToEcat7(), imgMRP(), imgMRT(), imgNiftiToEcat(), imgOutlierFilter(), imgPVCRRL(), imgPVCRVC(), imgReadFrame(), imgReadMicropet(), imgReadMinMax(), imgReadModelingData(), imgReprojection(), imgsegmSimilar(), imgStructuringElement(), imgThresholding(), imgThresholdingLowHigh(), imgWriteAnalyzeFrame(), imgWriteEcat63Frame(), imgWriteEcat7Frame(), and imgWriteNiftiFrame().
|
extern |
Verify that IMG contains prompts and randoms.
img | Pointer to IMG struct |
Definition at line 630 of file img.c.
Referenced by img2sif().
|
extern |
Verify that IMG contains frame times.
img | Pointer to IMG struct. |
Definition at line 613 of file img.c.
Referenced by img2sif(), imgAUMC(), imgFrameIntegral(), imgMRT(), imgNoiseTemplate(), and imgReadModelingData().
Extract a smaller 4D image from inside an IMG.
Any existing data is overwritten.
img1 | Source image structure, 'occupied' (has allocated data). |
r | Image range structure. |
img2 | Target image structure 'initialized' (has not allocated data). |
Definition at line 548 of file img.c.
|
extern |
Determine the file format and type of an existing PET image data.
Note that this function only identifies those formats and types that were needed in TPC at the time of writing this function. Note also that this function does not care whether the format is fully or not at all supported by other library functions.
fname | Full name of image file. In case of Analyze or microPET image, hdr or img file name, or basename without extension is accepted. Pathname is not accepted. |
basename | Pointer to allocated string where image file name without extensions is written (only for Analyze and microPET); enter NULL, if not needed. |
hdrfile | Pointer to allocated string where header file name without extensions is written (only for Analyze and microPET); enter NULL, if not needed. |
imgfile | Pointer to allocated string where image data file name without extensions is written (only for Analyze and microPET); enter NULL, if not needed. |
siffile | Pointer to allocated string where SIF file name without extensions is written (only for Analyze), if available; enter NULL, if not needed. |
file_format | Pointer to int where image format ID is written; 0=unknown, for other formats see definitions in img.h |
scanner | Pointer to int where scanner ID is written; 0=unknown, for other formats see definitions in img.h |
type | Pointer to int where image type is written; 0=unknown, 1=image, 2=sinogram, 3=polarmap, please check definitions in img.h |
modality | Pointer to int where modality is written; 0=unknown, 1=PET, 2=MRI, 3=CT, ..., please check definitions in img.h |
verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
Definition at line 536 of file imgfile.c.
Referenced by imgReadHeader().
|
extern |
Determine IMG _fileFormat from file name extension, if not already defined. Default is ECAT 7 image volume, if nothing else can be guessed.
Note that NIfTI dual file format, Analyze, and microPET files can not be separated by file naming, thus all of these formats will be identified as Analyze by this function (default may be changed to NIfTI in future).
img | Target image structure where file format is saved; should have IMG_UNKNOWN as file type. |
fname | Name of file that is used to determine format. |
Definition at line 483 of file imgfile.c.
Referenced by imgWrite(), and imgWriteFrame().
|
extern |
Searches the min and max pixel value in one frame (1..dimt) of the IMG data.
img | Pointer to IMG data. |
frame | Frame number [1..number of frames]. |
minvalue | Pointer to float value where minimum is written. |
maxvalue | Pointer to float value where maximum is written. |
Definition at line 171 of file imgminmax.c.
Referenced by img2svol().
|
extern |
Copy Analyze 7.5 header information into IMG.
img | image structure |
h | Analyze header structure |
Definition at line 427 of file img_ana.c.
Referenced by imgReadAnalyzeHeader().
|
extern |
Return the IMG fileformat based on ECAT 6.3 file_type.
h | Ecat 6.3 main header |
Definition at line 1288 of file img_e63.c.
Referenced by imgReadEcat63Header().
|
extern |
Copy ECAT 6.3 main header information into IMG
img | target image structure |
h | source Ecat 6.3 main header |
Definition at line 1172 of file img_e63.c.
Referenced by imgReadEcat63Header().
|
extern |
Return the IMG fileformat based on ECAT7 file_type.
h | Ecat7 main header |
Definition at line 827 of file img_e7.c.
Referenced by imgReadEcat7Header().
|
extern |
Copy ECAT 7 main header information into IMG
img | target structure |
h | source structure |
Definition at line 742 of file img_e7.c.
Referenced by imgReadEcat7(), and imgReadEcat7Header().
Search the frame with maximum pixel value for each image pixel separately.
img | Image to search for max frames; not modified |
mimg | Pointer to empty IMG struct in which the nr of frame with max pixel value will be written; 0 is written if max value is <= 0; any old contents are deleted. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 454 of file imgminmax.c.
Search the time of maximum value for each image pixel separately.
img | Image to search for max frames; not modified. |
mimg | Pointer to empty IMG struct in which the max time (sec) will be written; any old contents are deleted. |
w | Just save the frame middle time (0), or compute value weighted average time of all frames (1), or, value weighted average time of 3 or 5 subsequent frames (2). Option (1) uses the equation for mean residence time (MRT) for PTACs in pharmacokinetics. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 345 of file imgminmax.c.
|
extern |
Read frame information from MicroPET header into one-frame-IMG.
fp | File pointer to Concorde/MicroPET header. |
img | Pointer to IMG struct, allocated for one frame; frame information is written in frame 0. |
frame_index | Frame index [0..tdim-1]. |
verbose | Verbose level. |
Definition at line 457 of file img_upet.c.
Referenced by imgMicropetPETToEcat7().
|
extern |
Copy microPET header information from IFT structure to IMG structure.
img | Pointer to initiated IMG struct |
Definition at line 583 of file img_upet.c.
Referenced by imgReadMicropetHeader().
|
extern |
Read main header information from MicroPET header into one-frame-IMG.
fp | MicroPET header file pointer. |
img | Pointer to allocated IMG structure. |
calibration_factor | Calibration factor / Branching fraction. |
verbose | Verbose level. |
Definition at line 300 of file img_upet.c.
Referenced by imgMicropetCTToEcat7(), and imgMicropetPETToEcat7().
|
extern |
Read Scan Information from Concorde/MicroPET header file.
fp | File pointer to Concorde/MicroPET header file. |
sif | Pointer to initiated but non-allocated SIF struct; Studynr should be filled afterwards. |
Definition at line 517 of file img_upet.c.
Copy Nifti header information into IMG.
img | Pointer to IMG struct |
dsr | Pointer to Nifti header contents |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 218 of file img_nii.c.
Referenced by imgFormatDetermine(), imgReadNiftiHeader(), and imgWriteNiftiFrame().
Searches the max pixel value in the IMG data, which occurs before specified time.
img | Pointer to IMG struct |
beforeTime | Time (sec) after which max value is not searched |
p | Pointer to struct where max pixel position is written |
verbose | Verbose level; 0 if nothing is to be printed in stdout |
Definition at line 294 of file imgminmax.c.
|
extern |
Prints img information to stdout; mainly for testing purposes.
image | Pointer to IMG data. |
Definition at line 359 of file img.c.
Referenced by ecat63AddImg(), img_k1_using_ki(), img_logan(), img_patlak(), imgAnalyzeToEcat(), imgNiftiToEcat(), imgReadAnalyzeFirstFrame(), imgReadEcat63FirstFrame(), imgReadEcat7FirstFrame(), imgReadFrame(), imgReadMicropetFirstFrame(), imgReadNifti(), and imgReadNiftiFirstFrame().
|
extern |
Call this once before any use of IMG data.
image | Pointer to IMG struct. |
Definition at line 60 of file img.c.
Referenced by imgAnalyzeToEcat(), imgFlipAbove(), imgFlipRight(), imgFormatDetermine(), imgMaskDilate(), imgMaskErode(), imgMicropetCTToEcat7(), imgMicropetPETToEcat7(), imgNiftiToEcat(), imgOutlierFilter(), imgPVCRRL(), imgPVCRVC(), imgReadFrame(), imgReadMinMax(), imgReadModelingData(), imgsegmSimilar(), imgThresholding(), imgThresholdingLowHigh(), imgWriteAnalyzeFrame(), imgWriteEcat63Frame(), imgWriteEcat7Frame(), and imgWriteNiftiFrame().
|
extern |
Returns pointer to string describing the isotope in image data
img | image structure |
Definition at line 76 of file imgdecayc.c.
Referenced by ecat63AddImg(), ecat63WriteAllImg(), img2sif(), imgSetEcat63MHeader(), imgSetEcat7MHeader(), and sifAllocateWithIMG().
Checks if two IMG data contents are similar (header information, frame times, data dimensions, matrix contents inside specified accuracy).
img1 | Pointer to the first IMG data. |
img2 | Pointer to the second IMG data to be compared against the first one. |
accuracy | Pixel values must satisfy condition abs(x1-x2)/abs(mean(x1,x2)) <= accuracy (for example 0.01). If you want exact match, set accuracy=0.0. |
Definition at line 15 of file imgcomp.c.
Checks if the frame times of two IMG data do match:
Definition at line 286 of file imgcomp.c.
Referenced by imgMatch().
Checks if two image headers match.
Definition at line 128 of file imgcomp.c.
Referenced by imgMatch().
Checks if two image matrices match in the accuracy of argument "accuracy".
For example, set accuracy=0.99 and you will get match if all matrix values satisfy abs(x1-x2)/abs(mean(x1,x2))<=0.01). If you want exact match, set accuracy=0.0.
img1 | Pointer to the first IMG structure. |
img2 | Pointer to the second IMG structure. |
accuracy | Required accuracy |
Definition at line 47 of file imgcomp.c.
Referenced by imgMatch().
Check whether two IMG data have the same matrix (x,y,z) size.
Checks if the planes of two IMG data do match: number of planes and plane numbers.
Definition at line 307 of file imgcomp.c.
Referenced by imgMatch().
Checks if the transform parameters of two image headers match.
Definition at line 85 of file imgcomp.c.
Referenced by imgMatch().
|
extern |
Search the max pixel value in the IMG data.
img | Pointer to IMG structure. |
maxvalue | Pointer to output. |
Definition at line 15 of file imgminmax.c.
Referenced by imgThresholding(), and imgThresholdingLowHigh().
|
extern |
Calculates the maximal pixel value differences (absolute and relational) between two image matrices.
img1 | Pointer to the first IMG structure. |
img2 | Pointer to the second IMG, with the same dimensions as img1. |
absdiff | Voxel where absolute difference was found largest; enter NULL if not needed; returns [0,0,0,0] if no difference was found. |
abs_max | Pointer where max absolute difference is written; NULL if not needed. |
reldiff | Voxel where relational difference was found largest; enter NULL if not needed; returns [0,0,0,0] if no difference was found. |
rel_max | Pointer where max relational difference is written; NULL if not needed. |
Definition at line 328 of file imgcomp.c.
|
extern |
Read MicroPET CT image and write ECAT 7 image volume.
fph | MicroPET header file pointer |
fpi | MicroPET image datafile pointer |
ecatfile | ECAT image file name |
verbose | Verbose level |
Definition at line 196 of file img_upet.c.
Referenced by imgMicropetToEcat7().
|
extern |
Read MicroPET static or dynamic PET image and write ECAT 7 image volume frame-by-frame.
fph | MicroPET header file pointer. |
fpi | MicroPET image datafile pointer. |
ecatfile | ECAT image file name. |
verbose | Verbose level. |
Definition at line 85 of file img_upet.c.
Referenced by imgMicropetToEcat7().
|
extern |
Read MicroPET image and write ECAT 7 image volume frame-by-frame.
upetname | MicroPET image filename. |
ecatfile | ECAT image filename. |
verbose | Verbose level |
Definition at line 15 of file img_upet.c.
|
extern |
Searches the min and max pixel value in the IMG data.
img | Pointer to IMG struct from where min and pixels are searched. |
minvalue | Pointer to min pixel value; Enter NULL if not needed. |
maxvalue | Pointer to max pixel value; Enter NULL if not needed. |
Definition at line 154 of file imgminmax.c.
Referenced by imgPVCRRL(), imgPVCRVC(), imgReadMinMax(), imgSetAnalyzeHeader(), imgWriteAnalyze(), and imgWriteNifti().
|
extern |
Searches the image data for missing pixel values, optionally setting those to zero.
img | Pointer to IMG structure. |
fix | Set (1) or do not set (0) missing pixels to zero. |
Definition at line 658 of file img.c.
|
extern |
Finds max and/or min voxel inside specified image range.
img | Pointer to IMG structure. |
r | Pointer to image range inside IMG; enter NULL if whole IMG is used. |
maxp | Pixel where max pixel position is written; NULL if not needed. |
maxv | Target for max value; NULL if not needed. |
minp | Pixel where min pixel position is written; NULL if not needed. |
minv | Target for min value; NULL if not needed. |
Definition at line 71 of file imgminmax.c.
Referenced by imgMinMax().
|
extern |
Read an image or sinogram file in ECAT 6.3 or ECAT 7.x format, or image in NIfTI-1, Analyze 7.5, or microPET format.
fname | Input filename. |
img | Pointer to initialized IMG structure. |
Definition at line 26 of file imgfile.c.
Referenced by imgReadModelingData().
|
extern |
Read Analyze 7.5 image.
Analyze database name must be given with path. Image and header files with .img and .hdr extensions must exist. Also SIF file with .sif extension is used, if it exists. anaFlipping() determines whether image is flipped in z-direction; image is always flipped in x,y-directions.
dbname | Analyze database name with path, with or without extension |
img | Pointer to initialized IMG structure |
Definition at line 24 of file img_ana.c.
Referenced by imgRead().
|
extern |
Read the first frame from an Analyze 7.5 database into IMG data structure.
fname | Name of Analyze database from which IMG contents will be read |
img | pointer to the initiated but not preallocated IMG data |
Definition at line 592 of file img_ana.c.
Referenced by imgAnalyzeToEcat().
|
extern |
Read a specified frame from an Analyze 7.5 database into preallocated IMG data structure.
Analyze database consists of two or three files in the same directory: fname.hdr, fname.img, and optionally fname.sif. IMG header is assumed to be filled correctly before calling this function, except for information concerning separate planes and this frame, which is filled here. If frame does not exist, then and only then STATUS_NOMATRIX is returned.
fname | name of Analyze database from which IMG contents will be read |
frame_to_read | frame which will be read [1..frameNr] |
img | pointer to the IMG data. Place for the frame must be preallocated |
frame_index | IMG frame index [0..dimt-1] where data will be placed |
Definition at line 639 of file img_ana.c.
Referenced by imgAnalyzeToEcat(), imgReadAnalyzeFirstFrame(), and imgReadFrame().
|
extern |
Fill IMG struct header information from Analyze 7.5 database files.
SIF file is read if available. Information concerning separate frames or planes is not filled though.
dbname | name of Analyze database, may contain filename extension |
img | pointer to the initiated IMG data |
Definition at line 360 of file img_ana.c.
Referenced by imgFormatDetermine(), imgReadAnalyzeFirstFrame(), imgReadHeader(), and imgWriteAnalyzeFrame().
|
extern |
Read the first frame from an ECAT 6.3 file into IMG data structure.
fname | name of file from which IMG contents will be read |
img | pointer to the initiated but not preallocated IMG data |
Definition at line 1457 of file img_e63.c.
|
extern |
Read a specified frame from an ECAT 6.3 file into preallocated IMG data structure.
IMG header is assumed to be filled correctly before calling this function, except for information concerning separate planes and this frame, which is filled here.
fname | name of file from which IMG contents will be read |
frame_to_read | frame which will be read (1..frameNr) |
img | pointer to the IMG data. Place for the frame must be preallocated |
frame_index | IMG frame index (0..dimt-1) where data will be placed |
Definition at line 1503 of file img_e63.c.
Referenced by imgReadEcat63FirstFrame(), and imgReadFrame().
|
extern |
Fill IMG structure header information from an image or sinogram file in ECAT 6.3 format. Information concerning separate frames or planes is not filled.
fname | image or sinogram filename |
img | pointer to initialized IMG structure |
Definition at line 1318 of file img_e63.c.
Referenced by imgFormatDetermine(), imgReadEcat63FirstFrame(), imgReadHeader(), and imgWriteEcat63Frame().
|
extern |
Read ECAT 7 image, volume or 2D sinogram.
fname | Name of the input ECAT 7 file. |
img | Data structure in which the file is read; must be initialized before using this function. |
Definition at line 19 of file img_e7.c.
Referenced by imgRead().
|
extern |
Read the first frame from an ECAT 7 file into IMG data structure.
fname | name of file from which IMG contents will be read |
img | pointer to the initiated but not preallocated IMG data |
Definition at line 1060 of file img_e7.c.
|
extern |
Read a specified frame from an ECAT 7 file into preallocated IMG data structure. IMG header is assumed to be filled correctly before calling this function, except for information concerning separate planes and this frame, which is filled here. If frame does not exist, then and only then STATUS_NOMATRIX is returned.
fname | name of file from which IMG contents will be read |
frame_to_read | frame which will be read [1..frameNr] |
img | pointer to the IMG data. Place for the frame must be preallocated |
frame_index | IMG frame index [0..dimt-1] where data will be placed |
Definition at line 1103 of file img_e7.c.
Referenced by imgReadEcat7FirstFrame(), and imgReadFrame().
|
extern |
Fill IMG struct header information from an image or sinogram file in ECAT 7 format. Information concerning separate frames or planes is not filled.
fname | image or sinogram filename |
img | pointer to initialized IMG structure |
Definition at line 860 of file img_e7.c.
Referenced by imgFormatDetermine(), imgReadEcat7FirstFrame(), imgReadHeader(), and imgWriteEcat7Frame().
|
extern |
Read one time frame from a supported PET image or sinogram file into IMG data structure.
This functions can be called repeatedly to read all the frames one at a time to conserve memory.
fname | Name of file from which IMG contents will be read. Currently supported file formats are ECAT 6.3 images and sinograms, ECAT 7.x 2D and 3D images and sinograms, and NIfTI-1, Analyze 7.5, and microPET 3D and 4D images. |
frame_to_read | Frame which will be read [1..frameNr]. |
img | Pointer to initiated or occupied IMG data. If occupied, then new frame is tested to match the previous file type, dimensions, and other fundamental information contained in the IMG. If not occupied, then memory is allocated here. |
frame_index | IMG frame index (0..dimt-1) where data will be placed. If index is >0, then the memory for that frame must be allocated before calling this function. |
Definition at line 269 of file imgfile.c.
Referenced by imgReadMinMax().
|
extern |
Fill IMG struct header information from an image or sinogram file in ECAT 6.3, ECAT 7.x or Analyze 7.5 format.
Information concerning separate frames or planes is not filled.
fname | Image or sinogram file name |
img | Pointer to initialized but not allocated IMG structure. |
format | Image file format, if known (IMG_E63, IMG_E7, ...); if not known, set to IMG_UNKNOWN or 0. |
Definition at line 199 of file imgfile.c.
Referenced by imgReadFrame().
|
extern |
Read the whole dynamic microPET image into IMG data structure.
Note that microPET images are often too large for 32-bit systems.
fname | Name of microPET image (hdr or img file, or without extension) from which IMG contents will be read. |
img | Pointer to the initiated but not preallocated IMG data. |
Definition at line 971 of file img_upet.c.
Referenced by imgRead().
|
extern |
Read the first frame from a microPET image into IMG data structure.
fname | Name of microPET image (hdr or img file, or without extension) from which IMG contents will be read. |
img | Pointer to the initiated but not preallocated IMG data. |
Definition at line 925 of file img_upet.c.
Referenced by imgReadMicropet().
|
extern |
Read a specified frame from microPET image into preallocated IMG data structure.
MicroPET image consists of two files in the same directory: fname.hdr and fname.img. IMG header is assumed to be filled correctly before calling this function, except for information concerning separate planes and this frame, which is filled here. If frame does not exist, then and only then STATUS_NOMATRIX is returned.
fname | Name of microPET image (hdr or img file, or without extension) from which IMG contents will be read. |
frame_to_read | Frame which will be read [1..frameNr]. |
img | Pointer to the IMG data. Place for the frame must be preallocated. |
frame_index | IMG frame index [0..dimt-1] where data will be placed. |
Definition at line 819 of file img_upet.c.
Referenced by imgReadFrame(), imgReadMicropet(), and imgReadMicropetFirstFrame().
|
extern |
Fill IMG struct header information from microPET database files.
Information concerning separate frames or planes is not filled though.
dbname | Name of microPET database, may contain filename extension |
img | Pointer to the initiated IMG data |
Definition at line 767 of file img_upet.c.
Referenced by imgFormatDetermine(), imgReadHeader(), and imgReadMicropetFirstFrame().
|
extern |
Read the calibrated maximum and minimum pixel values in the specified file in ECAT 7, ECAT 6.3, or Analyze 7.5 format.
File is read frame-by-frame with normal IMG functions.
fname | ECAT 7 or ECAT 6.3 filename, or Analyze 7.5 database. |
fmin | Pointer to minimum pixel value that will be set by this function. |
fmax | Pointer to maximum pixel value that will be set by this function. |
Definition at line 211 of file imgminmax.c.
|
extern |
Read Nifti-1 image.
Nifti database name must be given with path. Either one file with extension .nii, or image and header files with extensions .img and .hdr must exist. Also SIF file with .sif extension is used, if it exists.
filename | Nifti database name with path, with or without extension |
img | Pointer to initialized IMG structure |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 23 of file img_nii.c.
Referenced by imgRead().
|
extern |
Read the first frame of Nifti-1 image into IMG data structure.
Nifti database name must be given with path. Either one file with extension .nii, or image and header files with extensions .img and .hdr must exist. Also SIF file with .sif extension is used, if it exists.
filename | Nifti database name with path, with or without extension |
img | Pointer to initialized IMG structure |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 78 of file img_nii.c.
Referenced by imgNiftiToEcat().
|
extern |
Read a specified frame from a Nifti database files into preallocated IMG data structure.
IMG header is assumed to be filled correctly before calling this function, except for information concerning separate planes and this frame, which is filled here.
filename | Pointer to string that contains the name of NIfTI database with path, with or without filename extension. Either one file with extension .nii, or image and header files with extensions .img and .hdr must exist. Also SIF file with .sif extension is used, if it exists; however, information concerning separate frames or planes is not filled. |
frame_to_read | Frame which will be read from database [1..frameNr] |
img | Pointer to the IMG data. Place for the frame must be preallocated |
frame_index | IMG frame index [0..dimt-1] where data will be placed |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 311 of file img_nii.c.
Referenced by imgNiftiToEcat(), imgReadFrame(), imgReadNifti(), and imgReadNiftiFirstFrame().
|
extern |
Fill IMG struct header information from Nifti database files.
Nifti database name must be given with path. Either one file with extension .nii, or image and header files with extensions .img and .hdr must exist. Also SIF file with .sif extension is used, if it exists; however, information concerning separate frames or planes is not filled.
filename | Nifti database name with path, with or without extension |
img | Pointer to initialized IMG structure |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 134 of file img_nii.c.
Referenced by imgReadHeader(), imgReadNifti(), and imgReadNiftiFirstFrame().
|
extern |
Copy header information in IMG struct into Analyze 7.5 header struct.
Min, max, and scale factor are set here and they apply to all frames.
img | pointer to IMG struct from which header information is read |
dbname | Analyze 7.5 database name |
dsr | pointer to Analyze header struct to be filled |
fmin | minimum pixel value in all frames that will be written |
fmax | maximum pixel value in all frames that will be written |
Definition at line 486 of file img_ana.c.
Referenced by imgWriteAnalyzeFrame().
|
extern |
Sets (mode=1) or removes (mode=0) decay correction factors in IMG. IMG pixel data is not changed.
image | Pointer to IMG data. |
mode | Factors are calculated for decay correction (1) or for removing decay correction (0). |
Definition at line 87 of file imgdecayc.c.
|
extern |
Copy information from IMG struct into ECAT 6.3 main header
img | source image structure |
h | target Ecat 6.3 main header |
Definition at line 1223 of file img_e63.c.
Referenced by imgWriteEcat63Frame().
|
extern |
Copies Ecat6.3 image or scan sub header information from IMG struct.
img | source image structure |
h | target sub header structure |
Definition at line 1872 of file img_e63.c.
Referenced by imgWriteEcat63Frame().
|
extern |
Copy information from IMG to ECAT 7 main header
img | source structure |
h | target structure |
Definition at line 781 of file img_e7.c.
Referenced by imgWrite2DEcat7(), imgWriteEcat7(), imgWriteEcat7Frame(), and imgWritePolarmap().
|
extern |
Set ECAT7 subheader based on IMG contents
img | image structure |
h | Ecat7 image, scan, 2D scan or polar map header |
Definition at line 1482 of file img_e7.c.
Referenced by imgWriteEcat7Frame(), and imgWritePolarmap().
|
extern |
Copy header information in IMG structure into NIfTI header structure.
Min, max, and scale factor are set here and they apply to all frames.
img | pointer to IMG structure from which header information is read |
dbname | NIfTI database name |
dsr | pointer to NIfTI header struct to be filled |
fmin | minimum pixel value in all frames that will be written |
fmax | maximum pixel value in all frames that will be written |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 471 of file img_nii.c.
Referenced by imgWriteNiftiFrame().
|
extern |
Set the IMG image error status message pointer (statmsg) and index
img | Pointer to IMG struct where statmsg will be set |
status_index | Index of img_status_string |
Definition at line 345 of file img.c.
Referenced by ecat63ReadAllToImg(), imgAllocate(), imgEmpty(), imgExtractRange(), imgGetAnalyzeHeader(), imgGetMicropetHeader(), imgGetNiftiHeader(), imgInit(), imgReadAnalyze(), imgReadAnalyzeFirstFrame(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), imgReadEcat63FirstFrame(), imgReadEcat63Frame(), imgReadEcat63Header(), imgReadEcat7(), imgReadEcat7FirstFrame(), imgReadEcat7Frame(), imgReadEcat7Header(), imgReadFrame(), imgReadHeader(), imgReadMicropet(), imgReadMicropetFirstFrame(), imgReadMicropetFrame(), imgReadMicropetHeader(), imgReadNifti(), imgReadNiftiFirstFrame(), imgReadNiftiFrame(), imgReadNiftiHeader(), imgSetAnalyzeHeader(), imgTimeIntegral(), imgWrite(), imgWrite2DEcat7(), imgWriteAnalyze(), imgWriteEcat7(), imgWriteFrame(), imgWriteNifti(), imgWriteNiftiFrame(), and imgWritePolarmap().
|
extern |
Sets the unit in IMG based on specified unit string.
Definition at line 328 of file imgunits.c.
Searches the spatially (3x3) smoothed max pixel value in the IMG data.
img | Pointer to IMG struct |
maxvalue | Pointer to float in which max pixel value will be written; enter NULL if not needed |
p | Pointer to struct in which the position of max pixel will be written (1-based positions); enter NULL if not needed |
Definition at line 248 of file imgminmax.c.
Calculates the sum-of-squares between pixels values of two images.
img1 | Pointer to the first IMG data. |
img2 | Pointer to the second IMG data. |
ss | Pointer to the double variable to write the SS into. |
Definition at line 412 of file imgcomp.c.
|
extern |
Return pointer to string describing the image error status message
status_index | index of img_status_string |
Definition at line 330 of file img.c.
Referenced by ecatFixMatrixlist(), imgRead(), and imgWriteNifti().
|
extern |
Return pointer to string describing the calibrated image data unit
dunit | Unit id number. |
Definition at line 315 of file imgunits.c.
Referenced by clusterTACs(), cunit_check_dft_vs_img(), dftAllocateWithIMG(), imgInfo(), and sif2dft().
|
extern |
Set IMG calibration unit based on ECAT 6.3 unit.
img | Pointer to target IMG structure. |
ecat_unit | Calibration unit code id. |
Definition at line 95 of file imgunits.c.
Referenced by ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), imgGetEcat63MHeader(), and imgReadEcat63Header().
|
extern |
Set IMG calibration unit based on ECAT7 main header.
img | Pointer to target IMG structure. |
h | Pointer to source ECAT 7 main header structure. |
Definition at line 149 of file imgunits.c.
Referenced by imgGetEcat7MHeader().
|
extern |
Identify the specified unit string as IMG unit.
unit | Pointer to string containing the unit to be identified. |
Definition at line 14 of file imgunits.c.
Referenced by imgConvertUnit(), imgSetUnit(), and imgUnitFromEcat7().
|
extern |
Return ECAT 6.3 calibration unit based on IMG unit
img | Pointer to IMG structure. |
Definition at line 175 of file imgunits.c.
Referenced by ecat63AddImg(), ecat63WriteAllImg(), imgSetEcat63MHeader(), and imgSetEcat63SHeader().
|
extern |
Set ECAT 7 main header calibration units based on IMG unit.
img | Pointer to source IMG structure. |
h | Pointer to target ECAT 7 main header structure. |
Definition at line 209 of file imgunits.c.
Referenced by imgSetEcat7MHeader().
|
extern |
Write an image or sinogram file.
Format depends on _fileFormat or file name extension.
fname | File name for output image. |
img | Pointer to IMG data. |
Definition at line 136 of file imgfile.c.
Referenced by imgMicropetCTToEcat7().
|
extern |
Write ECAT 7 2D image or 2D sinogram.
fname | output filename |
img | pointer to image structure |
Definition at line 526 of file img_e7.c.
Referenced by imgWrite().
|
extern |
Write Analyze 7.5 image.
Analyze database name must be given with path. Path must exist. Image and header files with .img and .hdr extensions are created. Existing files are overwritten. anaFlipping() determines whether image is flipped in z-direction; image is always flipped in x,y-directions. Byte order is determined based on _fileFormat field.
dbname | analyze database name with path, without extension |
img | pointer to IMG data |
Definition at line 162 of file img_ana.c.
Referenced by imgWrite().
|
extern |
Write one PET frame from IMG data struct into Analyze 7.5 database file. This function can be called repeatedly to write all frames one at a time to conserve memory. This function does not write SIF.
dbname | name of file where IMG contents will be written. If file does not exist, it is created. Make sure to delete existing file, unless you want to add data |
frame_to_write | PET frame number (1..frameNr) which will be written: If set to 0, frame data will be written to an existing or new PET file as a new frame, never overwriting existing data. If >0, then frame data is written as specified frame number, overwriting any data existing with the same frame number. |
img | pointer to the IMG data struct |
frame_index | IMG frame index (0..dimt-1) which will be written |
fmin | minimum pixel value in all frames that will be written; used only when writing the first frame |
fmax | maximum pixel value in all frames that will be written; used only when writing the first frame |
Definition at line 751 of file img_ana.c.
|
extern |
Write one PET frame from IMG data struct into ECAT 6.3 image or sinogram file; format is specified in IMG struct. This function can be called repeatedly to write all frames one at a time to conserve memory. However, file with just mainheader and matrix list without any previous frame is not accepted.
fname | name of file where IMG contents will be written. If file does not exist, it is created. Make sure to delete existing file, unless you want to add data |
frame_to_write | PET frame number (1..frameNr) which will be written: If set to 0, frame data will be written to an existing or new PET file as a new frame, never overwriting existing data. If >0, then frame data is written as specified frame number, overwriting any data existing with the same frame number |
img | pointer to the IMG data struct |
frame_index | IMG frame index (0..dimt-1) which will be written |
Definition at line 1711 of file img_e63.c.
Referenced by imgWriteFrame().
|
extern |
Write ECAT 7 3D image volume or 3D sinogram.
fname | output filename |
img | pointer to IMG data |
Definition at line 382 of file img_e7.c.
Referenced by imgWrite().
|
extern |
Write one PET frame from IMG data struct into ECAT 7 image or sinogram file; format is specified in IMG struct. This function can be called repeatedly to write all frames one at a time to conserve memory. However, file with just mainheader and matrix list without any previous frame is not accepted.
fname | name of file where IMG contents will be written. If file does not exist, it is created. Make sure to delete existing file, unless you want to add data |
frame_to_write | PET frame number (1..frameNr) which will be written: If set to 0, frame data will be written to an existing or new PET file as a new frame, never overwriting existing data. If >0, then frame data is written as specified frame number, overwriting any data existing with the same frame number |
img | pointer to the IMG data struct |
frame_index | IMG frame index (0..dimt-1) which will be written |
Definition at line 1295 of file img_e7.c.
Referenced by imgWriteFrame().
|
extern |
Write one PET frame from IMG data struct into a supported PET image or sinogram file.
This function can be called repeatedly to write all frames one at a time to conserve memory.
Currently supported file formats are ECAT 6.3 images and sinograms, and ECAT 7.x 2D and 3D images and sinograms, and NIfTI-1 images. Analyze 7.5 images are NOT supported (because global min and max would be needed). SIF for NIfTI-1 files is not written by this function.
fname | Name of file where IMG contents will be written. If file exists, data is either overwritten or catenated as a new frame, depending on the following arguments. If file does not exist, it is created. |
frame_to_write | PET frame number (1..frameNr) which will be written: If set to 0, frame data will be written to an existing or new PET file as a new frame, never overwriting existing data. If >0, then frame data is written as specified frame number, overwriting any data existing with the same frame number |
img | Pointer to the IMG data structure. |
frame_index | IMG frame index (0..dimt-1) which will be written. |
Definition at line 392 of file imgfile.c.
Referenced by imgAnalyzeToEcat(), imgMicropetPETToEcat7(), and imgNiftiToEcat().
|
extern |
Write NIfTI-1 image.
Nifti database name can be given with path, however, path is not created in here. IMG field _fileFormat determines whether NIfTI is written in single file format (*.nii) or dual file format (*.hdr and *.img). Optionally SIF file with .sif extension is saved to store frame times.
dbname | Nifti database name with path, with or without extension |
img | Pointer to IMG structure containing the image data to be written |
save_sif | Save (1) or do not save (0) SIF |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 811 of file img_nii.c.
Referenced by imgWrite().
|
extern |
Write one PET frame from IMG data struct into NIfTI file.
This function can be called repeatedly to write all frames one at a time to conserve memory. This function does not write SIF. Single or dual file format is determined based on _fileFormat field in IMG struct. Byte order is the not changed.
dbname | Name of NIfTI file where IMG contents will be written. If file does not exist, it is created. Make sure to delete existing file, unless you want to add data. |
frame_to_write | PET frame number (1..frameNr) which will be written: If set to 0, frame data will be written to an existing or new PET file as a new additional frame, never overwriting existing data. If >0, then frame data is written as specified frame number, overwriting any data existing with the same frame number |
img | pointer to the IMG data struct. |
frame_index | IMG frame index (0..dimt-1) which will be written. |
fmin | minimum pixel value in all frames that will be written; used only when writing the first frame. |
fmax | maximum pixel value in all frames that will be written; used only when writing the first frame. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 594 of file img_nii.c.
Referenced by imgWriteFrame(), and imgWriteNifti().
|
extern |
Write ECAT 7 polar map.
fname | output filename |
img | pointer to image structure |
Definition at line 661 of file img_e7.c.
Referenced by imgWrite().
|
extern |
The function searches the keyword in the header and passes the value belonging to that value back to the main program. The name of the header (string 'headerName') and the requested keyword (string 'searchWord') are passed to the function. It passes back the value of the keyword (string 'returnValue') and possibly an error message or warning (string 'errorMessage'). So the values are passed back as strings. The interpretation (conversion to integer, float, time etc) is up to the programmer.
The interfile header has to comply to the following rules:
headerName | header file name |
searchWord | keyword to look for |
returnValue | value for keyword in header |
errorMessage | error message/warnings. In case there is a error message it will be returnd as string in the variable 'errmsg'. |
Definition at line 43 of file interfile.c.
|
extern |
Check if specified image file name is a Interfile data.
fname | File name, either header file, image file, or base name without extensions. |
hdrfile | If fname is Interfile, then header file name will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
imgfile | If fname is Interfile, then image file name will be written in this char pointer (space needs to allocated by caller); NULL if not needed. Note that file name is stored without path. |
verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
Definition at line 193 of file interfile.c.
Referenced by imgFormatDetermine().
|
extern |
Verify that given file is a valid Interfile header file.
hdrfile | Interfile header file name, with correct extension |
imgfile | Pointer to allocated string where Interfile image data file name is written if found in header; enter NULL if not needed. |
Definition at line 154 of file interfile.c.
Referenced by interfileExists().
Check that image range definition is inside image data. If time frames are zero, then fix those to image frame range.
r | Pointer to image volume range data. |
img | Pointer to image data. |
Definition at line 152 of file ird.c.
|
extern |
Read Image Range Definition File.
irdfile | Image Range Definition File name, which contains 4D image volume corners (x y z f) in IFT format: corner1 = x y z f corner2 = x y z f; If time frames (f) are missing, then frame coordinate is set to 0. |
img_range | Image volume range |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 75 of file ird.c.
|
extern |
Reorder Image Range Definition.
Function name was previously ifrReorder
img_range | Image volume range; start and end range are set in correct order |
Definition at line 44 of file ird.c.
Referenced by irdRead().
|
extern |
Returns the matrix identifier
frame | frame number [0..4096] |
plane | plane number [0..256] |
gate | gate number [0..64] |
data | data number [0..8] |
bed | bed position [0..16] |
Definition at line 242 of file ecat63ml.c.
Referenced by atnMake(), ecat63AddImg(), ecat63GatherMatlist(), ecat63WriteAllImg(), and imgWriteEcat63Frame().
|
extern |
Conversion of matrix identifier to numerical values
matnum | matrix identifier coding |
matval | target matrix value structure |
Definition at line 254 of file ecat63ml.c.
Referenced by atnMake(), ecat63AddImg(), ecat63DeleteLateFrames(), ecat63GatherMatlist(), ecat63GetNums(), ecat63GetPlaneAndFrameNr(), ecat63PrintMatlist(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63SortMatlistByFrame(), ecat63SortMatlistByPlane(), ecat6PrintSubheader(), imgReadEcat63Frame(), roi_mframe(), and roi_mplane().
|
extern |
Construct the file names for NIfTI image.
filename | Filename, either header file, image file, or base name without extensions, but possibly with path name. This string is never modified. |
hdrfile | Header filename will be written in this char pointer (space needs to allocated by caller); If header and image are combined, then this will be the name of combined file; enter NULL if not needed. |
imgfile | Image filename will be written in this char pointer (space needs to allocated by caller); If header and image are combined, then this will be the name of combined file; enter NULL if not needed. |
siffile | SIF filename will be written in this char pointer (space needs to allocated by caller); enter NULL if not needed. |
fileformat | NIfTI file format, either IMG_NIFTI_1D (31) or IMG_NIFTI_1S (32). |
Definition at line 44 of file nifti.c.
Referenced by imgWriteNifti(), imgWriteNiftiFrame(), and niftiRemove().
|
extern |
Verify if specified filename is a NIfTI file.
filename | Filename, either header file, image file, or base name without extensions. This string is never modified. |
hdrfile | If filename refers to a Nifti file, then header filename will be written in this char pointer (space needs to allocated by caller); If header and image are combined, then this will be the name of combined file; enter NULL if not needed. |
imgfile | If filename refers to a Nifti file, then image filename will be written in this char pointer (space needs to allocated by caller); If header and image are combined, then this will be the name of combined file; enter NULL if not needed. |
siffile | If filename refers to a Nifti file, and if SIF exists, then SIF filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
header | Pointer to Nifti header, which is filled in this function; enter NULL, if not needed. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed. |
Definition at line 160 of file nifti.c.
Referenced by imgFormatDetermine(), imgRead(), imgReadNiftiFrame(), imgReadNiftiHeader(), and imgWriteNiftiFrame().
|
extern |
Print the contents of Nifti header to specified file pointer.
dsr | Pointer to combined Nifti header. |
fp | File pointer where header information is printed. |
Definition at line 501 of file nifti.c.
Referenced by niftiExists().
|
extern |
Read Nifti header contents. Currently, does not read Nifti-1 header extension.
filename | Name of file to read (including path and extension) |
dsr | Pointer to previously allocated header structure |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 293 of file nifti.c.
Referenced by niftiExists().
|
extern |
Read Nifti image data, convert byte order if necessary, and scale values to floats. Reads only one frame at a time!
fp | File pointer to start of image data file, opened previously in binary mode. |
dsr | Pointer to previously filled Nifti header structure |
frame | Frame number to read [1..number of frames]. |
data | Pointer to image float data allocated previously for dimz*dimy*dimx floats. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed. |
Definition at line 619 of file nifti.c.
Referenced by imgReadNiftiFrame().
|
extern |
Remove header and voxel data files or the single .nii file belonging to specified NIfTI database.
SIF is not deleted in any case. Validity of NIfTI is not verified, therefore this can be used to delete any files with similar name as NIfTI would have.
dbname | NIfTI database name with path, possibly with filename extension |
fileformat | NIfTI file format, either IMG_NIFTI_1D (31) or IMG_NIFTI_1S (32), or IMG_UNKNOWN (0) in case both are to be deleted. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 100 of file nifti.c.
Referenced by imgWriteNifti().
|
extern |
Remove any extensions from Nifti file name, leaving only base file name.
fname | Full name of file. |
Definition at line 23 of file nifti.c.
Referenced by imgReadNiftiFrame(), imgReadNiftiHeader(), niftiCreateFNames(), and niftiExists().
|
extern |
Write NIfTI-1 header contents.
Currently, does not write header extension. Header field 'byte_order' is used to determine the required byte order.
filename | Name of file to write (including path and extension). |
dsr | Pointer to previously allocated header structure. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed. |
Definition at line 844 of file nifti.c.
Referenced by imgWriteNiftiFrame().
|
extern |
Add given pixel into IMG_PIXELS data.
list | Pointer to IMG_PIXELS struct, which must be initiated. Memory is added if needed, and pxlNr increased. |
pxl | Pointer to IMG_PIXEL struct to add. |
Definition at line 139 of file pixel.c.
Referenced by imgMaskFloodFill().
|
extern |
Add pixel(s) from mask image into IMG_PIXELS data.
list | Pointer to IMG_PIXELS struct, which must be initiated. Memory is added if needed, and pxlNr increased. |
img | Pointer to mask image. |
Definition at line 185 of file pixel.c.
|
extern |
Allocate memory for IMG_PIXELS data. Any previous contents are deleted. Return Returns 0 when successful.
pxl | Pointer to initiated IMG_PIXELS struct data; any old contents are deleted. pxlNr inside the struct is set to or kept at zero. |
pxlNr | Nr of pixels to allocate |
Definition at line 44 of file pixel.c.
Referenced by pxlAllocateMore().
|
extern |
Allocate memory for more IMG_PIXELS data. Any previous contents are preserved. Return Returns 0 when successful.
pxl | Pointer to initiated IMG_PIXELS struct data; any old contents are preserved, but existing data is not required. pxlNr inside the struct is set to or kept at zero. |
pxlNr | Nr of additional pixels to allocate; if struct contains unused space for requested pixels already, then nothing is done. |
Definition at line 74 of file pixel.c.
Referenced by pxlAdd(), pxlAddFromMask(), pxlMakeRoom(), and pxlRead().
|
extern |
Free memory allocated for IMG_PIXELS. All data is cleared.
pxl | Pointer to IMG_PIXELS struct |
Definition at line 28 of file pixel.c.
Referenced by imgMaskFloodFill(), and pxlAllocate().
|
extern |
Get a pixel from IMG_PIXELS list.
list | Pointer to IMG_PIXELS struct, containing the list of pixels. |
i | Pixel list index [0..list->pxlNr-1]. |
pxl | Pointer to IMG_PIXEL struct into which pixel coordinates are written. |
Definition at line 163 of file pixel.c.
Referenced by imgMaskFloodFill().
|
extern |
Initiate the IMG_PIXELS struct before any use.
pxl | Pointer to IMG_PIXELS |
Definition at line 14 of file pixel.c.
Referenced by imgMaskFloodFill(), and pxlFree().
|
extern |
Make room for new pixels in the IMG_PIXELS list, allocating more memory if needed. Previous contents are preserved but moved in the list.
list | Pointer to IMG_PIXELS struct with existing contents. |
i | Index [0..pxlNr] of the new room start position. |
n | Nr of empty list items to add. |
Definition at line 110 of file pixel.c.
Referenced by imgMaskFloodFill().
|
extern |
Move pixel from one slot to another inside IMG_PIXELS data, changing the position of others accordingly.
list | Pointer to IMG_PIXELS struct, which must be initiated. |
from | Index [0.._pxlNr-1] of source position. |
to | Index [0.._pxlNr-1] of target position. |
Definition at line 220 of file pixel.c.
Referenced by pxlRm().
|
extern |
Read IMG_PIXELS data from specified file.
pxl | Pointer to IMG_PIXELS struct, into which contents of file are to be added; call pxlInit() once before using this function. |
fname | Pointer to the file name; this string is not modified. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 331 of file pixel.c.
|
extern |
Remove specified pixel from IMG_PIXELS data.
list | Pointer to IMG_PIXELS struct, which must be initiated. Allocated memory is not reduced, but pxlNr is decreased. |
index | Index [0..pxlNr-1] of pixel to delete. |
Definition at line 249 of file pixel.c.
Referenced by pxlRmDuplicates().
|
extern |
Remove duplicates from IMG_PIXELS data.
list | Pointer to IMG_PIXELS struct, which must be initiated. Allocated memory is not reduced, but pxlNr is decreased. |
Definition at line 273 of file pixel.c.
|
extern |
Write IMG_PIXELS data into specified file.
pxl | Pointer to IMG_PIXELS struct, contents of which are to be written |
fp | Output file pointer |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 299 of file pixel.c.
|
extern |
Set IMG contents based on data in SIF.
sif | Pointer to SIF struct from which content is copied to IMG. |
img | Pointer to IMG. Must be initiated with imgInit(), and allocated if frame time or count information is to be copied. |
copy_header | Select whether SIF header contents are copied (1) or not (0) |
copy_frames | Select whether SIF frame times are copied (1) or not (0). |
copy_counts | Select whether SIF count contents are copied (1) or not (0). |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 13 of file img_sif.c.
Referenced by imgReadAnalyze().
|
extern |
Free memory allocated for SIF. All contents are destroyed.
data | Pointer to sif data struct. |
Definition at line 33 of file sif.c.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), imgReadModelingData(), imgReadNiftiFrame(), imgReadNiftiHeader(), imgSetWeights(), imgWriteNifti(), sifAllocateWithIMG(), sifRead(), and sifSetmem().
|
extern |
Verify that SIF contains prompts and randoms.
sif | Pointer to SIF struct |
Definition at line 207 of file weight.c.
|
extern |
Initiate SIF structure. This should be called once before first use.
data | Pointer to sif data struct. |
Definition at line 17 of file sif.c.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), imgReadModelingData(), imgReadNiftiFrame(), imgReadNiftiHeader(), imgSetWeights(), imgWriteAnalyze(), and imgWriteNifti().
|
extern |
Moderate the trues in SIF.
True values in SIF are used to calculate weight factors for time frames. If trues are very low in certain frames, the weight factors in other frames may become very low. This function finds the maximum trues, and adds max/limit to each trues value, if min trues < max trues / limit. Negative trues are always eliminated.
sif | Pointer to SIF in which the trues are moderated |
limit | Max trues / limit is added to all trues values; 100.0 might be good |
Definition at line 131 of file weight.c.
Referenced by imgSetWeights().
|
extern |
Moderate the weights in SIF.
This function finds the maximum weight, and adds max/limit to each weight value (except if weight is 0), if min weight < max/limit. Negative weights are set to zero.
sif | Pointer to SIF in which the weights are moderated |
limit | Max weight / limit is added to all weights; 100.0 might be good |
Definition at line 167 of file weight.c.
|
extern |
Prints to stdout the contents of SIF data structure.
data | Pointer to SIF structure. |
Definition at line 234 of file sifio.c.
Referenced by imgSetWeights(), and sifAllocateWithIMG().
|
extern |
Reads SIF file contents to the specified data structure.
Weights are set to 1.
filename | SIF file name to be read. |
data | Pointer to initiated SIF structure; any existing contents will be deleted. |
Definition at line 21 of file sifio.c.
Referenced by imgReadAnalyze(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), imgReadModelingData(), imgReadNiftiFrame(), imgReadNiftiHeader(), imgWriteAnalyze(), and imgWriteNifti().
|
extern |
Allocates memory for SIF data.
data | Pointer to initiated sif data struct. Any existing data is destroyed. |
frameNr | Number of PET time frames. |
Definition at line 56 of file sif.c.
Referenced by img2sif(), imgGetMicropetSIF(), sifAllocateWithIMG(), and sifRead().
|
extern |
Calculate weights for frames in SIF data based on true counts. Weights are normalized to have an average of 1.0.
Weights are calculated from formula weight=(frame duration)^2 / (trues in a frame). Before calling this routine, trues must be calculated as total counts - randoms. Counts in SIF are not corrected for physical decay. Therefore, isotope halflife must be known, if weights are to be calculated for decay corrected TACs. Isotope halflife must be set to 0, if weights are used for TACs that are not corrected for decay.
Reference: Mazoyer BM, Huesman RH, Budinger TF, Knittel BL. Dynamic PET data analysis. J Comput Assist Tomogr 1986; 10:645-653.
data | Pointer to SIF data. |
halflife | Halflife (in seconds) of the isotope; If halflife is 0, the weights are calculated for non-decay corrected data. If halflife is >0, the weights are calculated using decay corrected trues, but trues data in SIF are not changed. |
Definition at line 28 of file weight.c.
Referenced by imgSetWeights().
|
extern |
Calculate weights for frames in SIF data based on frame lengths. Weights are normalized to have an average of 1.0.
Weights are calculated from the simple formula weight=(frame duration), if isotope halflife is set to 0, and using formula weight=(frame duration)*exp(-t*ln(2)/halflife), if isotope halflife is given (less weight for late frames, which may be more suitable for PET data that is corrected for physical decay).
data | Pointer to SIF data. |
halflife | Halflife (in seconds) of the isotope; If halflife is >0, the late frames are given less weight. |
Definition at line 72 of file weight.c.
|
extern |
Scale weights in SIF data so that average weight is 1.0, and the sum of weights equals the nr of frames.
d | Pointer to SIF data. |
Definition at line 105 of file weight.c.
Referenced by sifWeight(), and sifWeightByFrames().
|
extern |
Write SIF data to a standard SIF file, emptying files old contents.
data | Pointer to SIF structure containing data to be written in file. |
filename | File name for SIF; Set to 'stdout' to print the contents on console. File is overwritten without backup. |
Definition at line 145 of file sifio.c.
Referenced by imgWriteAnalyze(), and imgWriteNifti().
|
extern |
Read pixel location from a string representation of it.
str | String in format x,y,z or x y z ; this string is not changed |
x | Pixel location in x dimension |
y | Pixel location in y dimension |
z | Pixel location in z dimension |
Definition at line 653 of file vol.c.
Referenced by vrdRead().
|
extern |
Read voxel coordinates including time frame from a string representation.
str | String in format x,y,z,f or x y z f; frame (f) is optional; if f is not specified, then 0 is written in its place. |
v | Pointer to image pixel struct; obligatory. |
Definition at line 14 of file ird.c.
Referenced by irdRead().
Copy 3D short int volume as one time frame (1..dimt) into 4D image. Img must be allocated.
svol | short volume structure |
img | image structure |
frame | frame number [1..img->dimt] |
Definition at line 385 of file vol.c.
|
extern |
Allocate memory for 3D short int volume. Returns 0 if ok.
svol | short volume structure |
planes | number of planes [>=1] |
rows | number of rows [>=1] |
columns | number of columns [>=1] |
Definition at line 204 of file vol.c.
Referenced by img2svol().
|
extern |
Free memory allocated for short int volume.
svol | short int volume structure |
Definition at line 103 of file vol.c.
Referenced by svolAllocate().
|
extern |
Prints short int volume information to specified file pointer, e.g. stdout
svol | short volume structure |
fp | target file pointer |
Definition at line 439 of file vol.c.
|
extern |
Initiate short int volume before any use of SVOL data; this should be called once.
svol | short int volume structure |
Definition at line 50 of file vol.c.
|
extern |
Check if specified image filename is a Concorde/microPET file
upetname | Filename, either header file, image file, or base name without extensions. |
hdrfile | If upetname is a Concorde/microPET file, then header filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
imgfile | If upetname is a Concorde/microPET file, then image filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. |
verbose | Verbose level; if <=0, then nothing is printed into stdout |
Definition at line 86 of file micropet.c.
Referenced by imgFormatDetermine(), imgMicropetToEcat7(), imgRead(), imgReadMicropetFrame(), and imgReadMicropetHeader().
|
extern |
Read image dimensions from header.
fp | File pointer to MicroPET image header |
z | Pointers to dimensions: planes |
x | Pointers to dimensions: columns |
y | Pointers to dimensions: rows |
f | Pointers to dimensions: frames; if not existent (CT), enter NULL |
Definition at line 154 of file micropet.c.
Referenced by imgMicropetCTToEcat7(), and imgMicropetPETToEcat7().
|
extern |
Read specified parameter value from Concorde/MicroPET header.
fp | File pointer to Concorde/MicroPET header; parameter is read starting from file pointer forward, therefore rewind file pointer before calling this routine if you want to search parameter from beginning. |
parameter | Pointer to string which contains the header parameter name. |
value | Pointer to allocated string where parameter value will be written; memory for at least MAX_MICROPET_LINE_LEN chars must be allocated; NULL if not needed. |
Definition at line 16 of file micropet.c.
Referenced by imgGetMicropetFrameHeader(), imgGetMicropetMainHeader(), imgGetMicropetSIF(), imgMicropetCTToEcat7(), imgMicropetToEcat7(), upetGetImageDimensions(), upetIsHeader(), and upetScanStart().
|
extern |
Verify that given file is a valid Concorde/microPET file header file.
hdrfile | Concorde/microPET file header filename, with correct extension |
Definition at line 55 of file micropet.c.
Referenced by upetExists().
|
extern |
Reads microPET image data, scaling values to floats if necessary.
Reads only one frame at a time!
fp | file opened previously in binary mode |
ift | microPET header in IFT struct |
frame | frame number to read [1..number of frames] |
data | pointer to image float data allocated previously |
Definition at line 243 of file micropet.c.
Referenced by imgReadMicropetFrame().
|
extern |
Read scan start time from Concorde/MicroPET header.
fp | File pointer to Concorde/MicroPET header |
scant | Pointer to time_t where time and date will be saved |
Definition at line 194 of file micropet.c.
Referenced by imgGetMicropetSIF(), imgMicropetCTToEcat7(), and imgMicropetPETToEcat7().
Copy 3D volume as one time frame (1..dimt) into 4D image. Img must be allocated.
vol | volume structure |
img | image structure |
frame | frame number [1..number of frames] |
Definition at line 351 of file vol.c.
|
extern |
Allocate memory for 3D image volume. Returns 0 if ok.
vol | volume structure |
planes | number of planes [>=1] |
rows | number of rows [>=1] |
columns | number of columns [>=1] |
Definition at line 139 of file vol.c.
Referenced by img2vol().
Calculates average voxel value inside specified volume range.
vol | Pointer to VOL image structure |
r | Pointer to volume range inside VOL; enter NULL if whole VOL is used |
avg | Target for mean value |
Prints matrix values inside specified range to file pointer.
vol | volume structure |
r | volume range structure |
fp | target file pointer |
Definition at line 464 of file vol.c.
|
extern |
Free memory allocated for volume.
vol | volume structure |
Definition at line 74 of file vol.c.
Referenced by volAllocate().
|
extern |
Prints volume information to specified file pointer, e.g. stdout
vol | volume structure |
fp | target file pointer |
Definition at line 415 of file vol.c.
|
extern |
Initiate volume before any use of VOL data; this should be called once.
vol | pointer to volume structure |
|
extern |
Finds max and/or min voxel inside specified volume range.
vol | Pointer to VOL image structure |
r | Pointer to volume range inside VOL; enter NULL if whole VOL is used |
maxp | Pixel where max pixel position is written; NULL if not needed |
maxv | Target for max value; NULL if not needed |
minp | Pixel where min pixel position is written; NULL if not needed |
minv | Target for min value; NULL if not needed |
Definition at line 492 of file vol.c.
Set volume voxel values based on volume range definition.
r | Image volume range. |
vol | Pre-allocated image volume data structure. |
in | Value to write into voxels inside the given volume range; enter nanf("") to not change the values. |
out | Value to write into voxels outside the given volume range; enter nanf("") to not change the values. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 681 of file vol.c.
|
extern |
Read Volume Range Definition File.
vrdfile | Volume Range Definition File filename, which contains image volume corners (x y z) in IFT format: corner1 = x y z corner2 = x y z |
vol_range | Image volume range |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 742 of file vol.c.
|
extern |
Reorder Volume Range Definition.
vol_range | Image volume range; start and end range are set in correct order |
Definition at line 607 of file vol.c.
|
extern |
Get the number of voxels in Volume Range Definition.
vol_range | Image volume range; start and end range must be in correct order |
|
extern |
Verbose prints from Analyze functions
Definition at line 8 of file analyze.c.
Referenced by anaDatabaseExists(), anaExistsNew(), anaFlipping(), anaReadHeader(), anaReadImagedata(), anaRemove(), and anaWriteHeader().
|
extern |
Verbose prints from ECAT 6.3 functions
Definition at line 6 of file ecat63h.c.
Referenced by ecat63Create(), ecat63Matenter(), ecat63PrintAttnheader(), ecat63PrintImageheader(), ecat63PrintMainheader(), ecat63PrintNormheader(), ecat63PrintScanheader(), ecat63ReadAllToImg(), ecat63ReadAttnheader(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadMainheader(), ecat63ReadMatdata(), ecat63ReadNormheader(), ecat63ReadScanheader(), ecat63ReadScanMatrix(), ecat63WriteAttn(), ecat63WriteAttnheader(), ecat63WriteImage(), ecat63WriteImageheader(), ecat63WriteImageMatrix(), ecat63WriteMainheader(), ecat63WriteMatdata(), ecat63WriteNorm(), ecat63WriteNormheader(), ecat63WriteScan(), ecat63WriteScanheader(), ecat63WriteScanMatrix(), ecat6PrintSubheader(), and imgWriteEcat63Frame().
|
extern |
Error message from ECAT 6.3 functions
Definition at line 7 of file ecat63h.c.
Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadAttnMatrix(), ecat63ReadImageMatrix(), ecat63ReadPlaneToImg(), ecat63ReadScanMatrix(), ecat63WriteAllImg(), ecat63WriteImageMatrix(), ecat63WriteScanMatrix(), imgRead(), and imgWriteEcat63Frame().
|
extern |
Verbose prints from ECAT 7 functions
Definition at line 6 of file ecat7h.c.
Referenced by ecat7Create(), ecat7EnterMatrix(), ecat7Print2DNormheader(), ecat7Print2DScanheader(), ecat7PrintAttenheader(), ecat7PrintImageheader(), ecat7PrintMainheader(), ecat7PrintNormheader(), ecat7PrintPolmapheader(), ecat7PrintScanheader(), ecat7PrintSubheader(), ecat7Read2DNormheader(), ecat7Read2DScanheader(), ecat7Read2DScanMatrix(), ecat7ReadAttenheader(), ecat7ReadImageheader(), ecat7ReadImageMatrix(), ecat7ReadMainheader(), ecat7ReadMatrixdata(), ecat7ReadNormheader(), ecat7ReadPolarmapMatrix(), ecat7ReadPolmapheader(), ecat7ReadScanheader(), ecat7ReadScanMatrix(), ecat7Write2DNormheader(), ecat7Write2DScanheader(), ecat7Write2DScanMatrix(), ecat7WriteAttenheader(), ecat7WriteImageheader(), ecat7WriteImageMatrix(), ecat7WriteMainheader(), ecat7WriteMatrixdata(), ecat7WriteNormheader(), ecat7WritePolarmapMatrix(), ecat7WritePolmapheader(), ecat7WriteScanheader(), ecat7WriteScanMatrix(), imgWrite2DEcat7(), imgWriteEcat7(), and imgWritePolarmap().
|
extern |
Error message from ECAT 7 functions
Definition at line 7 of file ecat7h.c.
Referenced by ecat7Read2DScanMatrix(), ecat7ReadImageMatrix(), ecat7ReadPolarmapMatrix(), ecat7ReadScanMatrix(), ecat7Write2DScanMatrix(), ecat7WriteImageMatrix(), ecat7WritePolarmapMatrix(), ecat7WriteScanMatrix(), and imgReadEcat7().
|
extern |
Verbose printing from IMG functions
Definition at line 6 of file img.c.
Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), img2cube(), imgAllocate(), imgCopyhdr(), imgDecayCorrection(), imgDeleteFrameOverlap(), imgDeleteFrameOverlap_old(), imgEmpty(), imgExtractRange(), imgFormatFromFName(), imgGetAnalyzeHeader(), imgGetEcat63MHeader(), imgInfo(), imgInit(), imgRead(), imgReadAnalyze(), imgReadAnalyzeFirstFrame(), imgReadAnalyzeFrame(), imgReadAnalyzeHeader(), imgReadEcat63FirstFrame(), imgReadEcat63Frame(), imgReadEcat63Header(), imgReadEcat7(), imgReadEcat7FirstFrame(), imgReadEcat7Frame(), imgReadEcat7Header(), imgReadFrame(), imgReadHeader(), imgReadMicropet(), imgReadMicropetFirstFrame(), imgReadMicropetFrame(), imgReadMicropetHeader(), imgReadMinMax(), imgSetAnalyzeHeader(), imgSetEcat63MHeader(), imgSmoothOverFrames(), imgWrite(), imgWrite2DEcat7(), imgWriteAnalyze(), imgWriteAnalyzeFrame(), imgWriteEcat63Frame(), imgWriteEcat7(), imgWriteEcat7Frame(), imgWriteFrame(), and imgWritePolarmap().
|
extern |
Verbose prints from microPET functions
Definition at line 6 of file micropet.c.
Referenced by imgGetMicropetHeader(), upetHeaderReadParameter(), upetIsHeader(), and upetReadImagedata().
|
extern |
Verbose prints from SIF functions
Definition at line 6 of file sif.c.
Referenced by sifEmpty(), sifInit(), sifModerateTrues(), sifModerateWeights(), sifRead(), sifSetmem(), sifWeight(), sifWeightByFrames(), sifWeightNorm(), and sifWrite().
|
extern |
Error message from SIF functions
Definition at line 7 of file sif.c.
Referenced by imgReadModelingData(), sifRead(), sifSetmem(), and sifWrite().
|
extern |
Verbose prints from Vol functions
Definition at line 6 of file vol.c.
Referenced by img2svol(), img2vol(), svol2img(), svolAllocate(), svolEmpty(), svolInfo(), svolInit(), vol2img(), volAllocate(), volEmpty(), volInfo(), and volInit().