My Project
ecat7.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  ecat7.h (c) 2003-2010 Turku PET Centre
4 
5  Date:
6  2003-07-26 Vesa Oikonen
7  2003-08-03 VO
8  Included definitions for patient orientation.
9  2003-09-04 VO
10  Introduced functions for 3D scan r/w.
11  2003-10-08 VO
12  ECAT7_MAGICNR changed from MATRIX7 to MATRIX72v
13  2004-02-07 VO
14  ECAT7_MAGICNR replaced by separate defines for image volumes and sinograms:
15  ECAT7V_MAGICNR and ECAT7S_MAGICNR.
16  Included define for sw_version = 72.
17  2004-05-23 VO
18  Introduced new function for ecat7p.c.
19  Added a few comments.
20  2004-06-27 VO
21  Introduced new function for ecat7ml.c.
22  2004-07-26 VO
23  Comment style changes.
24  2004-09-20 VO
25  Added empty comments.
26  2004-09-24 VO
27  Added comments.
28  2004-12-28 VO
29  Introduced new function ecat7_is_scaling_needed().
30  2007-02-27 VO
31  Introduced new functions.
32  2007-03-13 VO
33  Introduced new functions.
34  2007-03-27 VO
35  Introduced new functions.
36  2008-07-24 VO
37  Introduced new functions.
38  2010-08-19 VO
39  Changed comment, not affecting compiled code.
40 
41 
42 ******************************************************************************/
43 #ifndef _ECAT7_H_
44 #define _ECAT7_H_
45 /*****************************************************************************/
46 #ifndef MatBLKSIZE
47 #define MatBLKSIZE 512
48 #endif
49 #ifndef MatFirstDirBlk
50 #define MatFirstDirBlk 2
51 #endif
52 /*****************************************************************************/
53 #define ECAT7V_MAGICNR "MATRIX72v"
54 #define ECAT7S_MAGICNR "MATRIX7011"
55 #define ECAT7_SW_VERSION 72
56 /*****************************************************************************/
58 #define ECAT7_BYTE 1
59 #define ECAT7_VAXI2 2
60 #define ECAT7_VAXI4 3
61 #define ECAT7_VAXR4 4
62 #define ECAT7_IEEER4 5
63 #define ECAT7_SUNI2 6
64 #define ECAT7_SUNI4 7
65 /*****************************************************************************/
67 #define ECAT7_UNKNOWN 0
68 #define ECAT7_2DSCAN 1
69 #define ECAT7_IMAGE16 2
70 #define ECAT7_ATTEN 3
71 #define ECAT7_2DNORM 4
72 #define ECAT7_POLARMAP 5
73 #define ECAT7_VOLUME8 6
74 #define ECAT7_VOLUME16 7
75 #define ECAT7_PROJ 8
76 #define ECAT7_PROJ16 9
77 #define ECAT7_IMAGE8 10
78 #define ECAT7_3DSCAN 11
79 #define ECAT7_3DSCAN8 12
80 #define ECAT7_3DNORM 13
81 #define ECAT7_3DSCANFIT 14
82 /*****************************************************************************/
84 #define ECAT7_Feet_First_Prone 0
85 #define ECAT7_Head_First_Prone 1
86 #define ECAT7_Feet_First_Supine 2
87 #define ECAT7_Head_First_Supine 3
88 #define ECAT7_Feet_First_Decubitus_Right 4
89 #define ECAT7_Head_First_Decubitus_Right 5
90 #define ECAT7_Feet_First_Decubitus_Left 6
91 #define ECAT7_Head_First_Decubitus_Left 7
92 #define ECAT7_Unknown_Orientation 8
93 /*****************************************************************************/
94 /* Backup file extension */
95 #ifndef BACKUP_EXTENSION
96 #define BACKUP_EXTENSION ".bak"
97 #endif
98 /*****************************************************************************/
99 char ecat7errmsg[128];
100 /*****************************************************************************/
102 /*****************************************************************************/
103 typedef struct ecat7_mainheader { /* 512 bytes */
105  char magic_number[14];
109  short int sw_version;
111  short int system_type;
113  short int file_type;
115  char serial_number[10];
119  char isotope_name[8];
125  float gantry_tilt;
133  short int wobble_speed;
143  short int coin_samp_mode;
145  short int axial_samp_mode;
148  short int calibration_units;
152  short int compression_code;
154  char study_type[12];
156  char patient_id[16];
158  char patient_name[32];
164  float patient_age;
174  char physician_name[32];
176  char operator_name[32];
181  short int acquisition_type;
185  char facility_name[20];
187  short int num_planes;
189  short int num_frames;
191  short int num_gates;
193  short int num_bed_pos;
197  float bed_position[15];
201  short int lwr_sctr_thres;
203  short int lwr_true_thres;
205  short int upr_true_thres;
209  short int acquisition_mode;
211  float bin_size;
217  float dosage;
221  char data_units[32];
223  short int septa_state;
225  short int fill_cti[6];
227 /*****************************************************************************/
228 typedef struct ecat7_imageheader { /* 512 bytes */
230  short int data_type;
232  short int num_dimensions;
234  short int x_dimension;
236  short int y_dimension;
238  short int z_dimension;
240  float x_offset;
242  float y_offset;
244  float z_offset;
246  float recon_zoom;
250  short int image_min;
252  short int image_max;
264  short int filter_code;
274  float num_angles;
294  short int filter_order;
300  char annotation[40];
302  float mt_1_1;
304  float mt_1_2;
306  float mt_1_3;
308  float mt_2_1;
310  float mt_2_2;
312  float mt_2_3;
314  float mt_3_1;
316  float mt_3_2;
318  float mt_3_3;
324  short int rfilter_code;
326  short int rfilter_order;
332  short int zfilter_code;
334  short int zfilter_order;
336  float mt_1_4;
338  float mt_2_4;
340  float mt_3_4;
342  short int scatter_type;
344  short int recon_type;
346  short int recon_views;
348  short int fill_cti[87];
350  short int fill_user[49];
352 /*****************************************************************************/
353 typedef struct ecat7_scanheader { /* 1024 bytes */
355  short int data_type;
357  short int num_dimensions;
359  short int num_r_elements;
361  short int num_angles;
365  short int num_z_elements[64];
367  short int ring_difference;
369  short int storage_order;
371  short int axial_compression;
381  short int fill_gate[6];
391  short int scan_min;
393  short int scan_max;
395  int prompts;
397  int delayed;
403  float tot_avg_cor;
415  short int fill_cti[90];
417  short int fill_user[50];
419  float uncor_singles[128];
421 /*****************************************************************************/
422 typedef struct ecat7_2Dscanheader { /* 512 bytes */
423  short int data_type;
424  short int num_dimensions;
425  short int num_r_elements;
426  short int num_angles;
428  short int num_z_elements;
429  short int ring_difference;
434  short int fill_gate[6];
439  short int scan_min;
440  short int scan_max;
441  int prompts;
442  int delayed;
445  float cor_singles[16];
446  float uncor_singles[16];
447  float tot_avg_cor;
453  short int physical_planes[8];
454  short int fill_cti[83];
455  short int fill_user[50];
457 /*****************************************************************************/
458 typedef struct ecat7_2Dnormheader {
459  short int data_type;
460  short int num_dimensions;
461  short int num_r_elements;
462  short int num_angles;
463  short int num_z_elements;
464  short int ring_difference;
466  float norm_min;
467  float norm_max;
471  short int storage_order;
472  short int span;
473  short int z_elements[64];
474  short int fill_cti[123];
475  short int fill_user[50];
477 /*****************************************************************************/
478 typedef struct ecat7_attenheader {
480  short int data_type;
482  short int num_dimensions;
484  short int attenuation_type;
486  short int num_r_elements;
488  short int num_angles;
490  short int num_z_elements;
492  short int ring_difference;
504  float x_offset;
506  float y_offset;
508  float x_radius;
510  float y_radius;
512  float tilt_angle;
528  short int storage_order;
530  short int span;
532  short int z_elements[64];
534  short int fill_cti[86];
536  short int fill_user[50];
538 /*****************************************************************************/
539 typedef struct ecat7_normheader {
540  short int data_type;
542  short int num_r_elements;
546  short int num_crystal_rings;
547  short int crystals_per_ring;
551  short int uld;
553  short int lld;
555  short int scatter_energy;
561  float ring_dtcor1[32];
563  float ring_dtcor2[32];
565  float crystal_dtcor[8];
567  short int span;
569  short int max_ring_diff;
571  short int fill_cti[48];
573  short int fill_user[50];
575 /*****************************************************************************/
576 typedef struct ecat7_polmapheader {
577  short int data_type;
578  short int polar_map_type;
579  short int num_rings;
580  short int sectors_per_ring[32];
581  float ring_position[32];
582  short int ring_angle[32];
583  short int start_angle;
584  short int long_axis_left[3];
585  short int long_axis_right[3];
586  short int position_data;
587  short int image_min;
588  short int image_max;
590  float pixel_size;
593  short int processing_code;
594  short int quant_units;
595  char annotation[40];
600  char database_name[30];
601  short int fill_cti[27];
602  short int fill_user[27];
604 /*****************************************************************************/
605 typedef struct {
606  int id;
607  int strtblk;
608  int endblk;
609  int status;
610 } ECAT7_MatDir;
611 typedef struct {
612  int matrixNr;
616 typedef struct {
617  int frame, plane, gate, data, bed;
618 } ECAT7_Matval;
619 /*****************************************************************************/
620 /* Read functions */
621 extern int ecat7ReadMainheader(FILE *fp, ECAT7_mainheader *h);
622 extern int ecat7ReadImageheader(FILE *fp, int blk, ECAT7_imageheader *h);
623 extern int ecat7ReadAttenheader(FILE *fp, int blk, ECAT7_attenheader *h);
624 extern int ecat7ReadPolmapheader(FILE *fp, int blk, ECAT7_polmapheader *h);
625 extern int ecat7ReadNormheader(FILE *fp, int blk, ECAT7_normheader *h);
626 extern int ecat7ReadScanheader(FILE *fp, int blk, ECAT7_scanheader *h);
627 extern int ecat7Read2DScanheader(FILE *fp, int blk, ECAT7_2Dscanheader *h);
628 extern int ecat7Read2DNormheader(FILE *fp, int blk, ECAT7_2Dnormheader *h);
629 extern int ecat7ReadMatrixdata(FILE *fp, int start_block, int block_nr,
630  char *data, int dtype);
631 extern float ecat7rFloat(void *bufi, int isvax, int islittle);
632 extern int ecat7rInt(void *bufi, int isvax, int islittle);
633 extern int ecat7ReadImageMatrix(FILE *fp, int first_block, int last_block,
634  ECAT7_imageheader *h, float **fdata);
635 extern int ecat7Read2DScanMatrix(FILE *fp, int first_block, int last_block,
636  ECAT7_2Dscanheader *h, float **fdata);
637 extern int ecat7ReadScanMatrix(FILE *fp, int first_block, int last_block,
638  ECAT7_scanheader *h, float **fdata);
639 extern int ecat7ReadPolarmapMatrix(FILE *fp, int first_block, int last_block,
640  ECAT7_polmapheader *h, float **fdata);
641 extern int ecat7pxlbytes(short int data_type);
642 /*****************************************************************************/
643 /* Matrix list functions */
644 extern void ecat7InitMatlist(ECAT7_MATRIXLIST *mlist);
645 extern void ecat7EmptyMatlist(ECAT7_MATRIXLIST *mlist);
646 extern int ecat7ReadMatlist(FILE *fp, ECAT7_MATRIXLIST *ml);
647 extern void ecat7PrintMatlist(ECAT7_MATRIXLIST *ml);
648 extern int ecat7EnterMatrix(FILE *fp, int matrix_id, int block_nr);
649 extern int ecat7_val_to_id(int frame, int plane, int gate, int data, int bed);
650 extern void ecat7_id_to_val(int matrix_id, ECAT7_Matval *matval);
653 extern int ecat7CheckMatlist(ECAT7_MATRIXLIST *ml);
654 extern int ecat7DeleteLateFrames(ECAT7_MATRIXLIST *ml, int frame_nr);
656  int *plane_nr, int *frame_nr);
657 extern int ecat7GetMatrixBlockSize(ECAT7_MATRIXLIST *mlist, int *blk_nr);
658 extern int ecat7GetNums(ECAT7_MATRIXLIST *ml, ECAT7_mainheader *mh, FILE *fp,
659  short int *num_planes, short int *num_frames, short int *num_gates,
660  short int *num_bed_pos);
661 extern int ecat7GatherMatlist(ECAT7_MATRIXLIST *ml, short int do_planes,
662  short int do_frames, short int do_gates, short int do_beds);
663 /*****************************************************************************/
664 /* Write functions */
665 extern int ecat7WriteMainheader(FILE *fp, ECAT7_mainheader *h);
666 extern int ecat7WriteImageheader(FILE *fp, int blk, ECAT7_imageheader *h);
667 extern int ecat7WriteAttenheader(FILE *fp, int blk, ECAT7_attenheader *h);
668 extern int ecat7WritePolmapheader(FILE *fp, int blk, ECAT7_polmapheader *h);
669 extern int ecat7WriteNormheader(FILE *fp, int blk, ECAT7_normheader *h);
670 extern int ecat7WriteScanheader(FILE *fp, int blk, ECAT7_scanheader *h);
671 extern int ecat7Write2DScanheader(FILE *fp, int blk, ECAT7_2Dscanheader *h);
672 extern int ecat7Write2DNormheader(FILE *fp, int blk, ECAT7_2Dnormheader *h);
673 extern int ecat7WritePolarmapMatrix(FILE *fp, int matrix_id,
674  ECAT7_polmapheader *h, float *fdata);
675 extern int ecat7WriteMatrixdata(FILE *fp, int start_block, char *data,
676  int pxl_nr, int pxl_size);
677 /*void ecat7wFloat(float *bufi, void *bufo, int tovax, int islittle);*/
678 /*void ecat7wInt(int *bufi, void *bufo, int tovax, int islittle);*/
679 extern FILE *ecat7Create(const char *fname, ECAT7_mainheader *h);
680 extern int ecat7WriteImageMatrix(FILE *fp, int matrix_id, ECAT7_imageheader *h,
681  float *fdata);
682 extern int ecat7Write2DScanMatrix(FILE *fp, int matrix_id, ECAT7_2Dscanheader *h,
683  float *fdata);
684 extern int ecat7WriteScanMatrix(FILE *fp, int matrix_id, ECAT7_scanheader *h,
685  float *fdata);
686 extern int ecat7_is_scaling_needed(float amax, float *data, int nr);
687 /*****************************************************************************/
688 /* Printing functions */
689 extern void ecat7PrintMainheader(ECAT7_mainheader *h, FILE *fp);
690 extern void ecat7PrintImageheader(ECAT7_imageheader *h, FILE *fp);
691 extern void ecat7PrintScanheader(ECAT7_scanheader *h, FILE *fp);
692 extern void ecat7PrintAttenheader(ECAT7_attenheader *h, FILE *fp);
693 extern void ecat7PrintPolmapheader(ECAT7_polmapheader *h, FILE *fp);
694 extern void ecat7PrintNormheader(ECAT7_normheader *h, FILE *fp);
695 extern void ecat7Print2DScanheader(ECAT7_2Dscanheader *h, FILE *fp);
696 extern void ecat7Print2DNormheader(ECAT7_2Dnormheader *h, FILE *fp);
697 extern int ecat7PrintSubheader(ECAT7_mainheader mh, FILE *fp,
698  int plane, int frame, FILE *ofp);
699 /* Descriptive strings for printing */
700 extern char* ecat7filetype(short int file_type);
701 extern char* ecat7acquisitiontype(short int acquisition_type);
702 extern char* ecat7datatype(short int data_type);
703 /*****************************************************************************/
704 /* Header edit functions */
705 extern int ecat7EditMHeader(ECAT7_mainheader *h, char *field, char *value);
706 extern int ecat7EditSHeader(ECAT7_scanheader *h, char *field, char *value);
707 extern int ecat7EditVHeader(ECAT7_imageheader *h, char *field, char *value);
708 /*****************************************************************************/
709 #endif
710 
ecat7ReadNormheader
int ecat7ReadNormheader(FILE *fp, int blk, ECAT7_normheader *h)
Definition: ecat7r.c:378
ecat7_scanheader::axial_compression
short int axial_compression
Definition: ecat7.h:371
ecat7_2Dnormheader::data_type
short int data_type
Definition: ecat7.h:459
ecat7ReadMatlist
int ecat7ReadMatlist(FILE *fp, ECAT7_MATRIXLIST *ml)
Definition: ecat7ml.c:86
ecat7_imageheader::mt_3_1
float mt_3_1
Definition: ecat7.h:314
ECAT7_MatDir::status
int status
Definition: ecat7.h:609
ecat7WriteMatrixdata
int ecat7WriteMatrixdata(FILE *fp, int start_block, char *data, int pxl_nr, int pxl_size)
Definition: ecat7w.c:1027
ecat7_imageheader::filter_cutoff_frequency
float filter_cutoff_frequency
Definition: ecat7.h:288
ecat7_mainheader::num_gates
short int num_gates
Definition: ecat7.h:191
ecat7acquisitiontype
char * ecat7acquisitiontype(short int acquisition_type)
Definition: ecat7p.c:498
ecat7_mainheader::wobble_speed
short int wobble_speed
Definition: ecat7.h:133
ecat7filetype
char * ecat7filetype(short int file_type)
Definition: ecat7p.c:479
ecat7_normheader::scatter_energy
short int scatter_energy
Definition: ecat7.h:555
ecat7_normheader::num_crystal_rings
short int num_crystal_rings
Definition: ecat7.h:546
ecat7_attenheader::scale_factor
float scale_factor
Definition: ecat7.h:502
ecat7_polmapheader::frame_start_time
int frame_start_time
Definition: ecat7.h:592
ecat7_mainheader::lwr_true_thres
short int lwr_true_thres
Definition: ecat7.h:203
ecat7_attenheader::z_elements
short int z_elements[64]
Definition: ecat7.h:532
ecat7_mainheader::plane_separation
float plane_separation
Definition: ecat7.h:199
ECAT7_MATRIXLIST::matdir
ECAT7_MatDir * matdir
Definition: ecat7.h:614
ecat7_mainheader::gantry_tilt
float gantry_tilt
Definition: ecat7.h:125
ecat7_imageheader::y_dimension
short int y_dimension
Definition: ecat7.h:236
ecat7GetPlaneAndFrameNr
int ecat7GetPlaneAndFrameNr(ECAT7_MATRIXLIST *mlist, ECAT7_mainheader *h, int *plane_nr, int *frame_nr)
Definition: ecat7ml.c:409
ecat7_mainheader::transm_source_type
short int transm_source_type
Definition: ecat7.h:135
ecat7_imageheader::image_max
short int image_max
Definition: ecat7.h:252
ecat7_polmapheader::processing_code
short int processing_code
Definition: ecat7.h:593
ecat7_id_to_val
void ecat7_id_to_val(int matrix_id, ECAT7_Matval *matval)
Definition: ecat7ml.c:299
ecat7_2Dscanheader::total_coin_rate
int total_coin_rate
Definition: ecat7.h:449
ecat7_scanheader::ring_difference
short int ring_difference
Definition: ecat7.h:367
ecat7_mainheader
Definition: ecat7.h:103
ecat7_imageheader::rfilter_code
short int rfilter_code
Definition: ecat7.h:324
ecat7_imageheader::x_resolution
float x_resolution
Definition: ecat7.h:266
ecat7_polmapheader::position_data
short int position_data
Definition: ecat7.h:586
ecat7_polmapheader::r_wave_offset
int r_wave_offset
Definition: ecat7.h:597
ECAT7_attenheader
struct ecat7_attenheader ECAT7_attenheader
ecat7_polmapheader::ring_position
float ring_position[32]
Definition: ecat7.h:581
ecat7_2Dscanheader::w_resolution
float w_resolution
Definition: ecat7.h:433
ecat7_2Dscanheader::uncor_singles
float uncor_singles[16]
Definition: ecat7.h:446
ecat7_attenheader::num_z_elements
short int num_z_elements
Definition: ecat7.h:490
ecat7_imageheader::mt_1_2
float mt_1_2
Definition: ecat7.h:304
ecat7_2Dscanheader
Definition: ecat7.h:422
ecat7_mainheader::serial_number
char serial_number[10]
Definition: ecat7.h:115
ecat7_scanheader::num_angles
short int num_angles
Definition: ecat7.h:361
ecat7_attenheader::x_resolution
float x_resolution
Definition: ecat7.h:494
ecat7_mainheader::facility_name
char facility_name[20]
Definition: ecat7.h:185
ecat7_attenheader::attenuation_coeff
float attenuation_coeff
Definition: ecat7.h:514
ecat7_imageheader::zfilter_cutoff
float zfilter_cutoff
Definition: ecat7.h:328
ecat7_mainheader::file_type
short int file_type
Definition: ecat7.h:113
ecat7_mainheader::calibration_units
short int calibration_units
Definition: ecat7.h:148
ecat7_scanheader::x_resolution
float x_resolution
Definition: ecat7.h:373
ecat7_imageheader::mt_2_4
float mt_2_4
Definition: ecat7.h:338
ecat7_imageheader::image_min
short int image_min
Definition: ecat7.h:250
ecat7ReadImageheader
int ecat7ReadImageheader(FILE *fp, int blk, ECAT7_imageheader *h)
Definition: ecat7r.c:177
ecat7_imageheader::mt_3_3
float mt_3_3
Definition: ecat7.h:318
ecat7_attenheader::data_type
short int data_type
Definition: ecat7.h:480
ecat7_mainheader::well_counter_corr_factor
float well_counter_corr_factor
Definition: ecat7.h:219
ecat7PrintScanheader
void ecat7PrintScanheader(ECAT7_scanheader *h, FILE *fp)
Definition: ecat7p.c:215
ecat7_imageheader::num_accepted_beats
int num_accepted_beats
Definition: ecat7.h:286
ecat7_mainheader::patient_name
char patient_name[32]
Definition: ecat7.h:158
ecat7_2Dscanheader::data_type
short int data_type
Definition: ecat7.h:423
ecat7_2Dscanheader::frame_start_time
int frame_start_time
Definition: ecat7.h:450
ecat7_imageheader
Definition: ecat7.h:228
ecat7_scanheader::z_resolution
float z_resolution
Definition: ecat7.h:377
ecat7_2Dnormheader::scale_factor
float scale_factor
Definition: ecat7.h:465
ecat7_imageheader::x_pixel_size
float x_pixel_size
Definition: ecat7.h:254
ecat7_imageheader::z_offset
float z_offset
Definition: ecat7.h:244
ecat7_mainheader::patient_weight
float patient_weight
Definition: ecat7.h:168
ecat7_imageheader::scale_factor
float scale_factor
Definition: ecat7.h:248
ecat7_imageheader::x_offset
float x_offset
Definition: ecat7.h:240
ecat7_mainheader::patient_dexterity
char patient_dexterity
Definition: ecat7.h:162
ecat7pxlbytes
int ecat7pxlbytes(short int data_type)
Definition: ecat7r.c:1055
ecat7_2Dscanheader::tot_avg_uncor
float tot_avg_uncor
Definition: ecat7.h:448
ecat7_polmapheader::sectors_per_ring
short int sectors_per_ring[32]
Definition: ecat7.h:580
ecat7_normheader::span
short int span
Definition: ecat7.h:567
ecat7ReadMainheader
int ecat7ReadMainheader(FILE *fp, ECAT7_mainheader *h)
Definition: ecat7r.c:78
ecat7_scanheader::delayed
int delayed
Definition: ecat7.h:397
ecat7EditMHeader
int ecat7EditMHeader(ECAT7_mainheader *h, char *field, char *value)
Definition: ecat7h.c:30
ecat7_attenheader::num_additional_atten_coeff
short int num_additional_atten_coeff
Definition: ecat7.h:522
ecat7_mainheader::angular_compression
short int angular_compression
Definition: ecat7.h:141
ecat7EmptyMatlist
void ecat7EmptyMatlist(ECAT7_MATRIXLIST *mlist)
Definition: ecat7ml.c:70
ecat7_imageheader::rfilter_cutoff
float rfilter_cutoff
Definition: ecat7.h:320
ECAT7_MATRIXLIST
Definition: ecat7.h:611
ecat7PrintImageheader
void ecat7PrintImageheader(ECAT7_imageheader *h, FILE *fp)
Definition: ecat7p.c:137
ecat7_imageheader::rfilter_order
short int rfilter_order
Definition: ecat7.h:326
ecat7_2Dscanheader::delayed
int delayed
Definition: ecat7.h:442
ecat7_polmapheader::image_min
short int image_min
Definition: ecat7.h:587
ecat7_mainheader::bed_position
float bed_position[15]
Definition: ecat7.h:197
ecat7_imageheader::z_resolution
float z_resolution
Definition: ecat7.h:270
ecat7_val_to_id
int ecat7_val_to_id(int frame, int plane, int gate, int data, int bed)
Definition: ecat7ml.c:282
ecat7_2Dnormheader::num_z_elements
short int num_z_elements
Definition: ecat7.h:463
ecat7_mainheader::transaxial_fov
float transaxial_fov
Definition: ecat7.h:139
ecat7_2Dscanheader::scale_factor
float scale_factor
Definition: ecat7.h:438
ecat7_mainheader::distance_scanned
float distance_scanned
Definition: ecat7.h:137
ecat7_mainheader::magic_number
char magic_number[14]
Definition: ecat7.h:105
ecat7_mainheader::bed_elevation
float bed_elevation
Definition: ecat7.h:129
ecat7_attenheader::tilt_angle
float tilt_angle
Definition: ecat7.h:512
ecat7_imageheader::processing_code
int processing_code
Definition: ecat7.h:280
ecat7_attenheader::attenuation_min
float attenuation_min
Definition: ecat7.h:516
ecat7_imageheader::zfilter_order
short int zfilter_order
Definition: ecat7.h:334
ecat7_imageheader::mt_3_2
float mt_3_2
Definition: ecat7.h:316
ECAT7_MatDir::strtblk
int strtblk
Definition: ecat7.h:607
ecat7_mainheader::patient_id
char patient_id[16]
Definition: ecat7.h:156
ecat7_imageheader::filter_ramp_slope
float filter_ramp_slope
Definition: ecat7.h:292
ecat7_mainheader::lwr_sctr_thres
short int lwr_sctr_thres
Definition: ecat7.h:201
ecat7_imageheader::filter_order
short int filter_order
Definition: ecat7.h:294
ecat7_2Dnormheader::num_dimensions
short int num_dimensions
Definition: ecat7.h:460
ecat7_attenheader::storage_order
short int storage_order
Definition: ecat7.h:528
ecat7_attenheader::fill_cti
short int fill_cti[86]
Definition: ecat7.h:534
ecat7_scanheader::scale_factor
float scale_factor
Definition: ecat7.h:389
ECAT7_normheader
struct ecat7_normheader ECAT7_normheader
ecat7_mainheader::original_file_name
char original_file_name[32]
Definition: ecat7.h:107
ecat7_mainheader::isotope_name
char isotope_name[8]
Definition: ecat7.h:119
ecat7_attenheader::y_radius
float y_radius
Definition: ecat7.h:510
ecat7_2Dscanheader::num_angles
short int num_angles
Definition: ecat7.h:426
ecat7_polmapheader::fill_user
short int fill_user[27]
Definition: ecat7.h:602
ecat7_polmapheader::num_rings
short int num_rings
Definition: ecat7.h:579
ecat7Create
FILE * ecat7Create(const char *fname, ECAT7_mainheader *h)
Definition: ecat7w.c:616
ecat7GatherMatlist
int ecat7GatherMatlist(ECAT7_MATRIXLIST *ml, short int do_planes, short int do_frames, short int do_gates, short int do_beds)
Definition: ecat7ml.c:572
ecat7_mainheader::branching_fraction
float branching_fraction
Definition: ecat7.h:213
ecat7_mainheader::dosage
float dosage
Definition: ecat7.h:217
ecat7_normheader::data_type
short int data_type
Definition: ecat7.h:540
ecat7_mainheader::num_frames
short int num_frames
Definition: ecat7.h:189
ecat7_mainheader::upr_true_thres
short int upr_true_thres
Definition: ecat7.h:205
ecat7_imageheader::mt_1_4
float mt_1_4
Definition: ecat7.h:336
ecat7_attenheader::span
short int span
Definition: ecat7.h:530
ecat7datatype
char * ecat7datatype(short int data_type)
Definition: ecat7p.c:517
ecat7PrintNormheader
void ecat7PrintNormheader(ECAT7_normheader *h, FILE *fp)
Definition: ecat7p.c:359
ecat7rFloat
float ecat7rFloat(void *bufi, int isvax, int islittle)
Definition: ecat7r.c:1015
ecat7_attenheader::num_angles
short int num_angles
Definition: ecat7.h:488
ecat7_polmapheader
Definition: ecat7.h:576
ecat7_mainheader::acquisition_type
short int acquisition_type
Definition: ecat7.h:181
ecat7_attenheader::y_resolution
float y_resolution
Definition: ecat7.h:496
ecat7_imageheader::frame_start_time
int frame_start_time
Definition: ecat7.h:262
ecat7_mainheader::data_units
char data_units[32]
Definition: ecat7.h:221
ecat7_attenheader::y_offset
float y_offset
Definition: ecat7.h:506
ecat7_attenheader::w_resolution
float w_resolution
Definition: ecat7.h:500
ecat7_imageheader::gate_duration
int gate_duration
Definition: ecat7.h:282
ecat7_2Dnormheader::storage_order
short int storage_order
Definition: ecat7.h:471
ecat7_scanheader::deadtime_correction_factor
float deadtime_correction_factor
Definition: ecat7.h:413
ecat7_mainheader::physician_name
char physician_name[32]
Definition: ecat7.h:174
ecat7_scanheader
Definition: ecat7.h:353
ecat7_scanheader::num_r_elements
short int num_r_elements
Definition: ecat7.h:359
ecat7_polmapheader::quant_units
short int quant_units
Definition: ecat7.h:594
ecat7_imageheader::y_resolution
float y_resolution
Definition: ecat7.h:268
ecat7_attenheader::x_offset
float x_offset
Definition: ecat7.h:504
ecat7_2Dnormheader::norm_quality_factor_code
short int norm_quality_factor_code
Definition: ecat7.h:470
ecat7_attenheader::additional_atten_coeff
float additional_atten_coeff[8]
Definition: ecat7.h:524
ecat7_mainheader::init_bed_position
float init_bed_position
Definition: ecat7.h:195
ecat7DeleteLateFrames
int ecat7DeleteLateFrames(ECAT7_MATRIXLIST *ml, int frame_nr)
Definition: ecat7ml.c:383
ecat7_mainheader::fill_cti
short int fill_cti[6]
Definition: ecat7.h:225
ecat7WritePolarmapMatrix
int ecat7WritePolarmapMatrix(FILE *fp, int matrix_id, ECAT7_polmapheader *h, float *fdata)
Definition: ecat7w.c:939
ECAT7_polmapheader
struct ecat7_polmapheader ECAT7_polmapheader
ecat7_imageheader::filter_code
short int filter_code
Definition: ecat7.h:264
ECAT7_MatDir
Definition: ecat7.h:605
ecat7_imageheader::y_pixel_size
float y_pixel_size
Definition: ecat7.h:256
ecat7_imageheader::num_angles
float num_angles
Definition: ecat7.h:274
ecat7_imageheader::rfilter_resolution
float rfilter_resolution
Definition: ecat7.h:322
ecat7_mainheader::num_bed_pos
short int num_bed_pos
Definition: ecat7.h:193
ecat7_polmapheader::start_angle
short int start_angle
Definition: ecat7.h:583
ecat7_scanheader::net_trues
int net_trues
Definition: ecat7.h:401
ecat7_scanheader::tot_avg_cor
float tot_avg_cor
Definition: ecat7.h:403
ecat7_2Dscanheader::fill_cti
short int fill_cti[83]
Definition: ecat7.h:454
ecat7_scanheader::r_wave_offset
int r_wave_offset
Definition: ecat7.h:385
ecat7_scanheader::uncor_singles
float uncor_singles[128]
Definition: ecat7.h:419
ecat7_imageheader::annotation
char annotation[40]
Definition: ecat7.h:300
ecat7WriteScanMatrix
int ecat7WriteScanMatrix(FILE *fp, int matrix_id, ECAT7_scanheader *h, float *fdata)
Definition: ecat7w.c:852
ecat7_attenheader::z_resolution
float z_resolution
Definition: ecat7.h:498
ecat7_2Dscanheader::y_resolution
float y_resolution
Definition: ecat7.h:431
ecat7WriteAttenheader
int ecat7WriteAttenheader(FILE *fp, int blk, ECAT7_attenheader *h)
Definition: ecat7w.c:258
ecat7_attenheader::num_r_elements
short int num_r_elements
Definition: ecat7.h:486
ecat7_mainheader::user_process_code
char user_process_code[10]
Definition: ecat7.h:207
ecat7_mainheader::sw_version
short int sw_version
Definition: ecat7.h:109
ECAT7_Matval::plane
int plane
Definition: ecat7.h:617
ecat7_2Dscanheader::cor_singles
float cor_singles[16]
Definition: ecat7.h:445
ecat7_imageheader::fill_user
short int fill_user[49]
Definition: ecat7.h:350
ecat7_polmapheader::database_name
char database_name[30]
Definition: ecat7.h:600
ecat7_polmapheader::image_max
short int image_max
Definition: ecat7.h:588
ECAT7_MATRIXLIST::matrixNr
int matrixNr
Definition: ecat7.h:612
ecat7_2Dscanheader::prompts
int prompts
Definition: ecat7.h:441
ecat7_normheader::ring_dtcor2
float ring_dtcor2[32]
Definition: ecat7.h:563
ecat7Read2DScanMatrix
int ecat7Read2DScanMatrix(FILE *fp, int first_block, int last_block, ECAT7_2Dscanheader *h, float **fdata)
Definition: ecat7r.c:749
ecat7_imageheader::mt_2_3
float mt_2_3
Definition: ecat7.h:312
ecat7ReadPolmapheader
int ecat7ReadPolmapheader(FILE *fp, int blk, ECAT7_polmapheader *h)
Definition: ecat7r.c:325
ecat7_polmapheader::polar_map_protocol
char polar_map_protocol[20]
Definition: ecat7.h:599
ecat7_2Dnormheader
Definition: ecat7.h:458
ecat7_normheader::max_ring_diff
short int max_ring_diff
Definition: ecat7.h:569
ecat7_2Dnormheader::fill_cti
short int fill_cti[123]
Definition: ecat7.h:474
ecat7_scanheader::v_resolution
float v_resolution
Definition: ecat7.h:375
ecat7_2Dnormheader::ring_difference
short int ring_difference
Definition: ecat7.h:464
ecat7SortMatlistByFrame
void ecat7SortMatlistByFrame(ECAT7_MATRIXLIST *ml)
Definition: ecat7ml.c:340
ecat7_attenheader::attenuation_max
float attenuation_max
Definition: ecat7.h:518
ecat7_normheader::crystal_dtcor
float crystal_dtcor[8]
Definition: ecat7.h:565
ecat7_2Dnormheader::norm_min
float norm_min
Definition: ecat7.h:466
ECAT7_2Dscanheader
struct ecat7_2Dscanheader ECAT7_2Dscanheader
ecat7_scanheader::w_resolution
float w_resolution
Definition: ecat7.h:379
ecat7ReadMatrixdata
int ecat7ReadMatrixdata(FILE *fp, int start_block, int block_nr, char *data, int dtype)
Definition: ecat7r.c:595
ecat7GetMatrixBlockSize
int ecat7GetMatrixBlockSize(ECAT7_MATRIXLIST *mlist, int *blk_nr)
Definition: ecat7ml.c:455
ecat7_mainheader::patient_sex
char patient_sex
Definition: ecat7.h:160
ecat7GetNums
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)
Definition: ecat7ml.c:489
ecat7Read2DNormheader
int ecat7Read2DNormheader(FILE *fp, int blk, ECAT7_2Dnormheader *h)
Definition: ecat7r.c:546
ecat7_mainheader::septa_state
short int septa_state
Definition: ecat7.h:223
ecat7_2Dscanheader::z_resolution
float z_resolution
Definition: ecat7.h:432
ecat7_scanheader::fill_user
short int fill_user[50]
Definition: ecat7.h:417
ecat7_2Dnormheader::num_r_elements
short int num_r_elements
Definition: ecat7.h:461
ecat7_2Dnormheader::span
short int span
Definition: ecat7.h:472
ecat7ReadImageMatrix
int ecat7ReadImageMatrix(FILE *fp, int first_block, int last_block, ECAT7_imageheader *h, float **fdata)
Definition: ecat7r.c:656
ECAT7_Matval
Definition: ecat7.h:616
ecat7WriteScanheader
int ecat7WriteScanheader(FILE *fp, int blk, ECAT7_scanheader *h)
Definition: ecat7w.c:433
ecat7_mainheader::patient_height
float patient_height
Definition: ecat7.h:166
ecat7_scanheader::total_coin_rate
int total_coin_rate
Definition: ecat7.h:407
ECAT7_2Dnormheader
struct ecat7_2Dnormheader ECAT7_2Dnormheader
ecat7_scanheader::scan_min
short int scan_min
Definition: ecat7.h:391
ecat7_polmapheader::frame_duration
int frame_duration
Definition: ecat7.h:591
ecat7_normheader::norm_quality_factor
float norm_quality_factor
Definition: ecat7.h:557
ecat7_2Dscanheader::fill_user
short int fill_user[50]
Definition: ecat7.h:455
ecat7_imageheader::y_offset
float y_offset
Definition: ecat7.h:242
ecat7_2Dscanheader::physical_planes
short int physical_planes[8]
Definition: ecat7.h:453
ecat7_polmapheader::polar_map_type
short int polar_map_type
Definition: ecat7.h:578
ecat7_2Dscanheader::ring_difference
short int ring_difference
Definition: ecat7.h:429
ecat7_imageheader::mt_1_1
float mt_1_1
Definition: ecat7.h:302
ecat7_mainheader::isotope_halflife
float isotope_halflife
Definition: ecat7.h:121
ecat7WriteMainheader
int ecat7WriteMainheader(FILE *fp, ECAT7_mainheader *h)
Definition: ecat7w.c:73
ecat7_2Dscanheader::num_z_elements
short int num_z_elements
Definition: ecat7.h:428
ecat7_2Dscanheader::multiples
int multiples
Definition: ecat7.h:443
ecat7PrintMainheader
void ecat7PrintMainheader(ECAT7_mainheader *h, FILE *fp)
Definition: ecat7p.c:49
ecat7_mainheader::gantry_rotation
float gantry_rotation
Definition: ecat7.h:127
ecat7_scanheader::tot_avg_uncor
float tot_avg_uncor
Definition: ecat7.h:405
ecat7_imageheader::recon_zoom
float recon_zoom
Definition: ecat7.h:246
ecat7_imageheader::z_dimension
short int z_dimension
Definition: ecat7.h:238
ecat7PrintPolmapheader
void ecat7PrintPolmapheader(ECAT7_polmapheader *h, FILE *fp)
Definition: ecat7p.c:310
ecat7_imageheader::z_rotation_angle
float z_rotation_angle
Definition: ecat7.h:276
ecat7_mainheader::patient_orientation
short int patient_orientation
Definition: ecat7.h:183
ecat7_polmapheader::long_axis_left
short int long_axis_left[3]
Definition: ecat7.h:584
ecat7_mainheader::operator_name
char operator_name[32]
Definition: ecat7.h:176
ecat7_imageheader::z_pixel_size
float z_pixel_size
Definition: ecat7.h:258
ecat7_mainheader::dose_start_time
int dose_start_time
Definition: ecat7.h:215
ecat7_normheader::fill_user
short int fill_user[50]
Definition: ecat7.h:573
ecat7Print2DScanheader
void ecat7Print2DScanheader(ECAT7_2Dscanheader *h, FILE *fp)
Definition: ecat7p.c:396
ecat7_scanheader::fill_gate
short int fill_gate[6]
Definition: ecat7.h:381
ecat7Write2DScanMatrix
int ecat7Write2DScanMatrix(FILE *fp, int matrix_id, ECAT7_2Dscanheader *h, float *fdata)
Definition: ecat7w.c:767
ECAT7_mainheader
struct ecat7_mainheader ECAT7_mainheader
ecat7_attenheader::attenuation_type
short int attenuation_type
Definition: ecat7.h:484
ecat7_mainheader::scan_start_time
int scan_start_time
Definition: ecat7.h:117
ecat7_mainheader::ecat_calibration_factor
float ecat_calibration_factor
Definition: ecat7.h:146
ECAT7_MATRIXLIST::matrixSpace
int matrixSpace
Definition: ecat7.h:613
ecat7_polmapheader::fill_cti
short int fill_cti[27]
Definition: ecat7.h:601
ecat7_normheader::crystals_per_ring
short int crystals_per_ring
Definition: ecat7.h:547
ecat7_polmapheader::pixel_size
float pixel_size
Definition: ecat7.h:590
ecat7WriteImageMatrix
int ecat7WriteImageMatrix(FILE *fp, int matrix_id, ECAT7_imageheader *h, float *fdata)
Definition: ecat7w.c:682
ecat7_2Dscanheader::deadtime_correction_factor
float deadtime_correction_factor
Definition: ecat7.h:452
ecat7_imageheader::data_type
short int data_type
Definition: ecat7.h:230
ecat7_normheader::num_geo_corr_planes
short int num_geo_corr_planes
Definition: ecat7.h:549
ecat7_2Dnormheader::fill_user
short int fill_user[50]
Definition: ecat7.h:475
ecat7_attenheader::ring_difference
short int ring_difference
Definition: ecat7.h:492
ecat7_polmapheader::scale_factor
float scale_factor
Definition: ecat7.h:589
ecat7_imageheader::mt_2_2
float mt_2_2
Definition: ecat7.h:310
ecat7_2Dnormheader::norm_max
float norm_max
Definition: ecat7.h:467
ecat7Write2DScanheader
int ecat7Write2DScanheader(FILE *fp, int blk, ECAT7_2Dscanheader *h)
Definition: ecat7w.c:499
ecat7_2Dscanheader::x_resolution
float x_resolution
Definition: ecat7.h:430
ecat7_mainheader::axial_samp_mode
short int axial_samp_mode
Definition: ecat7.h:145
ecat7EditSHeader
int ecat7EditSHeader(ECAT7_scanheader *h, char *field, char *value)
Definition: ecat7h.c:195
ECAT7_imageheader
struct ecat7_imageheader ECAT7_imageheader
ecat7_scanheader::corrections_applied
short int corrections_applied
Definition: ecat7.h:363
ecat7_normheader::norm_quality_factor_code
short int norm_quality_factor_code
Definition: ecat7.h:559
ecat7_2Dscanheader::net_trues
int net_trues
Definition: ecat7.h:444
ecat7CheckMatlist
int ecat7CheckMatlist(ECAT7_MATRIXLIST *ml)
Definition: ecat7ml.c:366
ecat7_2Dscanheader::scan_max
short int scan_max
Definition: ecat7.h:440
ecat7_mainheader::system_type
short int system_type
Definition: ecat7.h:111
ecat7_scanheader::multiples
int multiples
Definition: ecat7.h:399
ecat7WriteImageheader
int ecat7WriteImageheader(FILE *fp, int blk, ECAT7_imageheader *h)
Definition: ecat7w.c:164
ecat7ReadPolarmapMatrix
int ecat7ReadPolarmapMatrix(FILE *fp, int first_block, int last_block, ECAT7_polmapheader *h, float **fdata)
Definition: ecat7r.c:939
ecat7InitMatlist
void ecat7InitMatlist(ECAT7_MATRIXLIST *mlist)
Definition: ecat7ml.c:59
ecat7_normheader::ring_dtcor1
float ring_dtcor1[32]
Definition: ecat7.h:561
ecat7_normheader::num_transaxial_crystals
short int num_transaxial_crystals
Definition: ecat7.h:544
ecat7_scanheader::gate_duration
int gate_duration
Definition: ecat7.h:383
ecat7_scanheader::fill_cti
short int fill_cti[90]
Definition: ecat7.h:415
ecat7_2Dscanheader::gate_duration
int gate_duration
Definition: ecat7.h:435
ecat7_scanheader::frame_duration
int frame_duration
Definition: ecat7.h:411
ECAT7_MatDir::id
int id
Definition: ecat7.h:606
ecat7_2Dscanheader::r_wave_offset
int r_wave_offset
Definition: ecat7.h:436
ecat7_2Dscanheader::frame_duration
int frame_duration
Definition: ecat7.h:451
ecat7_mainheader::acquisition_mode
short int acquisition_mode
Definition: ecat7.h:209
ecat7_imageheader::frame_duration
int frame_duration
Definition: ecat7.h:260
ecat7Print2DNormheader
void ecat7Print2DNormheader(ECAT7_2Dnormheader *h, FILE *fp)
Definition: ecat7p.c:447
ecat7_mainheader::intrinsic_tilt
float intrinsic_tilt
Definition: ecat7.h:131
ecat7_polmapheader::long_axis_right
short int long_axis_right[3]
Definition: ecat7.h:585
ecat7_mainheader::compression_code
short int compression_code
Definition: ecat7.h:152
ecat7PrintMatlist
void ecat7PrintMatlist(ECAT7_MATRIXLIST *ml)
Definition: ecat7ml.c:149
ecat7rInt
int ecat7rInt(void *bufi, int isvax, int islittle)
Definition: ecat7r.c:1038
ECAT7_MatDir::endblk
int endblk
Definition: ecat7.h:608
ecat7_mainheader::patient_age
float patient_age
Definition: ecat7.h:164
ecat7_imageheader::num_r_elements
float num_r_elements
Definition: ecat7.h:272
ecat7_scanheader::frame_start_time
int frame_start_time
Definition: ecat7.h:409
ecat7_imageheader::filter_scatter_slope
float filter_scatter_slope
Definition: ecat7.h:298
ecat7_mainheader::coin_samp_mode
short int coin_samp_mode
Definition: ecat7.h:143
ecat7WritePolmapheader
int ecat7WritePolmapheader(FILE *fp, int blk, ECAT7_polmapheader *h)
Definition: ecat7w.c:321
ecat7_imageheader::zfilter_resolution
float zfilter_resolution
Definition: ecat7.h:330
ecat7ReadScanheader
int ecat7ReadScanheader(FILE *fp, int blk, ECAT7_scanheader *h)
Definition: ecat7r.c:424
ecat7_imageheader::x_dimension
short int x_dimension
Definition: ecat7.h:234
ecat7_imageheader::mt_3_4
float mt_3_4
Definition: ecat7.h:340
ecat7_polmapheader::gate_duration
int gate_duration
Definition: ecat7.h:596
ecat7_2Dnormheader::fov_source_width
float fov_source_width
Definition: ecat7.h:468
ecat7PrintAttenheader
void ecat7PrintAttenheader(ECAT7_attenheader *h, FILE *fp)
Definition: ecat7p.c:264
ecat7_2Dnormheader::z_elements
short int z_elements[64]
Definition: ecat7.h:473
ecat7_mainheader::radiopharmaceutical
char radiopharmaceutical[32]
Definition: ecat7.h:123
ecat7_imageheader::decay_corr_fctr
float decay_corr_fctr
Definition: ecat7.h:278
ecat7_2Dscanheader::num_dimensions
short int num_dimensions
Definition: ecat7.h:424
ecat7_attenheader::num_dimensions
short int num_dimensions
Definition: ecat7.h:482
ecat7PrintSubheader
int ecat7PrintSubheader(ECAT7_mainheader mh, FILE *fp, int plane, int frame, FILE *ofp)
Definition: ecat7p.c:532
ecat7_2Dscanheader::num_accepted_beats
int num_accepted_beats
Definition: ecat7.h:437
ecat7_scanheader::num_accepted_beats
int num_accepted_beats
Definition: ecat7.h:387
ecat7_2Dscanheader::fill_gate
short int fill_gate[6]
Definition: ecat7.h:434
ecat7_imageheader::recon_views
short int recon_views
Definition: ecat7.h:346
ECAT7_scanheader
struct ecat7_scanheader ECAT7_scanheader
ecat7_scanheader::num_dimensions
short int num_dimensions
Definition: ecat7.h:357
ecat7_mainheader::patient_birth_date
int patient_birth_date
Definition: ecat7.h:172
ecat7_mainheader::study_type
char study_type[12]
Definition: ecat7.h:154
ecat7_attenheader::x_radius
float x_radius
Definition: ecat7.h:508
ecat7ReadAttenheader
int ecat7ReadAttenheader(FILE *fp, int blk, ECAT7_attenheader *h)
Definition: ecat7r.c:268
ecat7_mainheader::calibration_units_label
short int calibration_units_label
Definition: ecat7.h:150
ecat7Read2DScanheader
int ecat7Read2DScanheader(FILE *fp, int blk, ECAT7_2Dscanheader *h)
Definition: ecat7r.c:485
ecat7_imageheader::scatter_type
short int scatter_type
Definition: ecat7.h:342
ecat7_attenheader::edge_finding_threshold
float edge_finding_threshold
Definition: ecat7.h:526
ecat7_scanheader::data_type
short int data_type
Definition: ecat7.h:355
ecat7_polmapheader::ring_angle
short int ring_angle[32]
Definition: ecat7.h:582
ecat7_imageheader::mt_1_3
float mt_1_3
Definition: ecat7.h:306
ecat7_2Dnormheader::norm_quality_factor
float norm_quality_factor
Definition: ecat7.h:469
ecat7_scanheader::storage_order
short int storage_order
Definition: ecat7.h:369
ecat7_attenheader::skull_thickness
float skull_thickness
Definition: ecat7.h:520
ecat7_mainheader::bin_size
float bin_size
Definition: ecat7.h:211
ecat7_mainheader::study_description
char study_description[32]
Definition: ecat7.h:178
ecat7_2Dscanheader::tot_avg_cor
float tot_avg_cor
Definition: ecat7.h:447
ecat7_imageheader::num_dimensions
short int num_dimensions
Definition: ecat7.h:232
ecat7_imageheader::filter_scatter_fraction
float filter_scatter_fraction
Definition: ecat7.h:296
ecat7_scanheader::prompts
int prompts
Definition: ecat7.h:395
ecat7_mainheader::num_planes
short int num_planes
Definition: ecat7.h:187
ECAT7_TEST
int ECAT7_TEST
Definition: ecat7.h:101
ecat7_imageheader::recon_type
short int recon_type
Definition: ecat7.h:344
ecat7_normheader::num_r_elements
short int num_r_elements
Definition: ecat7.h:542
ecat7_imageheader::zfilter_code
short int zfilter_code
Definition: ecat7.h:332
ecat7_normheader::fill_cti
short int fill_cti[48]
Definition: ecat7.h:571
ecat7_scanheader::num_z_elements
short int num_z_elements[64]
Definition: ecat7.h:365
ecat7_imageheader::filter_resolution
float filter_resolution
Definition: ecat7.h:290
ecat7_normheader::lld
short int lld
Definition: ecat7.h:553
ecat7_polmapheader::annotation
char annotation[40]
Definition: ecat7.h:595
ecat7_attenheader::fill_user
short int fill_user[50]
Definition: ecat7.h:536
ecat7_normheader
Definition: ecat7.h:539
ecat7EditVHeader
int ecat7EditVHeader(ECAT7_imageheader *h, char *field, char *value)
Definition: ecat7h.c:312
ecat7_normheader::uld
short int uld
Definition: ecat7.h:551
ecat7Write2DNormheader
int ecat7Write2DNormheader(FILE *fp, int blk, ECAT7_2Dnormheader *h)
Definition: ecat7w.c:566
ecat7_polmapheader::data_type
short int data_type
Definition: ecat7.h:577
ecat7_attenheader
Definition: ecat7.h:478
ecat7_2Dscanheader::corrections_applied
short int corrections_applied
Definition: ecat7.h:427
ecat7SortMatlistByPlane
void ecat7SortMatlistByPlane(ECAT7_MATRIXLIST *ml)
Definition: ecat7ml.c:314
ecat7_2Dscanheader::num_r_elements
short int num_r_elements
Definition: ecat7.h:425
ecat7_scanheader::scan_max
short int scan_max
Definition: ecat7.h:393
ecat7_is_scaling_needed
int ecat7_is_scaling_needed(float amax, float *data, int nr)
Definition: ecat7w.c:657
ecat7ReadScanMatrix
int ecat7ReadScanMatrix(FILE *fp, int first_block, int last_block, ECAT7_scanheader *h, float **fdata)
Definition: ecat7r.c:844
ecat7_polmapheader::num_accepted_beats
int num_accepted_beats
Definition: ecat7.h:598
ecat7_2Dscanheader::scan_min
short int scan_min
Definition: ecat7.h:439
ecat7_imageheader::mt_2_1
float mt_2_1
Definition: ecat7.h:308
ecat7EnterMatrix
int ecat7EnterMatrix(FILE *fp, int matrix_id, int block_nr)
Definition: ecat7ml.c:184
ecat7_imageheader::fill_cti
short int fill_cti[87]
Definition: ecat7.h:348
ecat7WriteNormheader
int ecat7WriteNormheader(FILE *fp, int blk, ECAT7_normheader *h)
Definition: ecat7w.c:380
ecat7_2Dnormheader::num_angles
short int num_angles
Definition: ecat7.h:462
ecat7_imageheader::r_wave_offset
int r_wave_offset
Definition: ecat7.h:284
ecat7errmsg
char ecat7errmsg[128]
Definition: ecat7.h:99