Data Fields
IMG Struct Reference

#include <img.h>

Data Fields

char status
const char * statmsg
char unit
char studyNr [MAX_STUDYNR_LEN+1]
char patientName [32]
char patientID [16]
char radiopharmaceutical [32]
float isotopeHalflife
char decayCorrected
time_t scanStart
int orientation
char userProcessCode [11]
char studyDescription [32]
char type
float zoom
float axialFOV
float transaxialFOV
float sampleDistance
float sizex
float sizey
float sizez
float gapx
float gapy
float gapz
float resolutionx
float resolutiony
float resolutionz
int _dataType
int _fileFormat
int scanner
int polarmap_num_rings
int polarmap_sectors_per_ring [MAX_POLARMAP_NUM_RINGS]
float polarmap_ring_position [MAX_POLARMAP_NUM_RINGS]
short int polarmap_ring_angle [MAX_POLARMAP_NUM_RINGS]
short int polarmap_start_angle
unsigned short int dimt
unsigned short int dimx
unsigned short int dimy
unsigned short int dimz
float * _pxl
float ** _col
float *** _row
float **** _pln
float * _header
float **** m
float **** plane
float *** row
float ** column
float * pixel
int * planeNumber
float * start
float * end
float * mid
char isWeight
float * weight
float * sd
float * prompts
float * randoms
float * decayCorrFactor
int errstatus

Detailed Description

4D image data structure

Definition at line 156 of file img.h.


Field Documentation

float** IMG::_col

Definition at line 268 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

float* IMG::_header

Definition at line 271 of file img.h.

Referenced by imgAllocate(), imgEmpty(), and imgInit().

float**** IMG::_pln

Definition at line 270 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

float* IMG::_pxl

'Hidden' pointers for actual data

Definition at line 267 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

float*** IMG::_row

Definition at line 269 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

float** IMG::column

Pointer to image data in matrix format column[col][frame]

Definition at line 280 of file img.h.

Referenced by imgAllocate(), imgEmpty(), and imgInit().

unsigned short int IMG::dimt
unsigned short int IMG::dimx
unsigned short int IMG::dimy
unsigned short int IMG::dimz
float* IMG::end

Error status: STATUS_OK, STATUS_FAULT, STATUS_NOMEMORY, etc

Definition at line 317 of file img.h.

Referenced by imgEmpty(), imgInit(), and imgSetStatus().

float IMG::gapx

Gaps between pixels in x direction (mm); negative value means overlap

Definition at line 214 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), and imgInit().

float IMG::gapy

Gaps between pixels in y direction (mm); negative value means overlap

Definition at line 216 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), and imgInit().

float IMG::gapz

Gaps between pixels in z direction (mm); negative value means overlap

Definition at line 218 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), and imgInit().

Weights: 0=not weighted, 1=weighted, 2=also SD known

Definition at line 300 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInfo(), and imgInit().

float**** IMG::m
float* IMG::mid

Patient orientation (see ECAT 7.2 format)

Definition at line 188 of file img.h.

Referenced by img2svol(), img2vol(), imgCopyhdr(), imgEmpty(), imgGetEcat7MHeader(), imgInfo(), imgInit(), and imgSetEcat7MHeader().

char IMG::patientID[16]
char IMG::patientName[32]
float* IMG::pixel

Pointer to image data in matrix format pixel[frame]

Definition at line 282 of file img.h.

Referenced by imgAllocate(), imgEmpty(), and imgInit().

float**** IMG::plane

Pointer to image data in matrix format plane[plane][row][col][frame]

Definition at line 276 of file img.h.

Referenced by imgAllocate(), imgEmpty(), and imgInit().

If data is not a polar map, polarmap_num_rings=0. If data is a polar map, polarmap_num_rings is between 1 and MAX_POLARMAP_NUM_RINGS.

Definition at line 239 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInfo(), imgInit(), imgReadEcat7Header(), imgSetEcat7SHeader(), and test_create_polarmap().

Polar map ring angle relative to long axis (90 degrees along cylinder, decreasing to 0 at the apex), as defined in ECAT 7 header

Definition at line 250 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInfo(), imgInit(), imgReadEcat7Header(), imgSetEcat7SHeader(), and test_create_polarmap().

Polar map: fractional distance aong the long axis from base to apex, as defined in ECAT 7 header

Definition at line 247 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInfo(), imgInit(), imgReadEcat7Header(), imgSetEcat7SHeader(), and test_create_polarmap().

Number of sectors in each polar map ring; defined only in polar map data. In case of polar map, dimz=dimy=1, dimx= sum of sectors in each ring. Polar map can contain dynamic data (time frames), in that case dimz>1.

Definition at line 244 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInfo(), imgInit(), imgReadEcat7Header(), imgSetEcat7SHeader(), and test_create_polarmap().

Polar map start angle for rings, as defined in ECAT 7 header

Definition at line 252 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInfo(), imgInit(), imgReadEcat7Header(), and test_create_polarmap().

float* IMG::prompts
float* IMG::randoms

Image resolution in x direction (mm)

Definition at line 220 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInit(), imgReadEcat7(), imgReadEcat7Header(), imgSetEcat7SHeader(), imgWrite2DEcat7(), and imgWriteEcat7().

Image resolution in y direction (mm)

Definition at line 222 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInit(), imgReadEcat7(), imgReadEcat7Header(), imgSetEcat7SHeader(), imgWrite2DEcat7(), and imgWriteEcat7().

Image resolution in z direction (mm)

Definition at line 224 of file img.h.

Referenced by imgCopyhdr(), imgEmpty(), imgInit(), imgReadEcat7(), imgReadEcat7Header(), imgSetEcat7SHeader(), imgWrite2DEcat7(), and imgWriteEcat7().

float*** IMG::row

Pointer to image data in matrix format row[row][col][frame]

Definition at line 278 of file img.h.

Referenced by imgAllocate(), imgEmpty(), and imgInit().

float* IMG::sd

Frame S.D. for weighting

Definition at line 304 of file img.h.

Referenced by imgAllocate(), imgCopyhdr(), imgEmpty(), imgExtractRange(), and imgInit().

float IMG::sizex
float IMG::sizey
float IMG::sizez
float* IMG::start
const char* IMG::statmsg

Pointer to _imgStatusMessage, describing current status

Definition at line 166 of file img.h.

Referenced by imgInfo(), imgRead(), imgReadFrame(), and imgSetStatus().

Study description (currently free text field for user to fill)

Definition at line 192 of file img.h.

Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), imgCopyhdr(), imgEmpty(), imgGetEcat63MHeader(), imgGetEcat7MHeader(), imgSetEcat63MHeader(), and imgSetEcat7MHeader().

char IMG::studyNr[MAX_STUDYNR_LEN+1]
char IMG::type
char IMG::unit

User process code (which may contain valid study number)

Definition at line 190 of file img.h.

Referenced by ecat63AddImg(), ecat63ReadAllToImg(), ecat63ReadPlaneToImg(), ecat63WriteAllImg(), imgCopyhdr(), imgEmpty(), imgGetEcat63MHeader(), imgGetEcat7MHeader(), imgSetEcat63MHeader(), and imgSetEcat7MHeader().

float* IMG::weight

Frame weight factor

Definition at line 302 of file img.h.

Referenced by imgAllocate(), imgCopyhdr(), imgEmpty(), imgExtractRange(), imgGetMicropetFrameHeader(), imgInit(), and imgMicropetPETToEcat7().

float IMG::zoom

The documentation for this struct was generated from the following file: