My Project
Data Fields
IMG Struct Reference

#include <img.h>

Collaboration diagram for IMG:
Collaboration graph

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

◆ _col

float** IMG::_col

Definition at line 268 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

◆ _dataType

int IMG::_dataType

◆ _fileFormat

int IMG::_fileFormat

◆ _header

float* IMG::_header

Definition at line 271 of file img.h.

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

◆ _pln

float**** IMG::_pln

Definition at line 270 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

◆ _pxl

float* IMG::_pxl

'Hidden' pointers for actual data

Definition at line 267 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

◆ _row

float*** IMG::_row

Definition at line 269 of file img.h.

Referenced by imgAllocate(), and imgEmpty().

◆ axialFOV

float IMG::axialFOV

◆ column

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().

◆ decayCorrected

char IMG::decayCorrected

◆ decayCorrFactor

float* IMG::decayCorrFactor

◆ dimt

unsigned short int IMG::dimt

◆ dimx

unsigned short int IMG::dimx

◆ dimy

unsigned short int IMG::dimy

◆ dimz

unsigned short int IMG::dimz

◆ end

float* IMG::end

◆ errstatus

int IMG::errstatus

Error status: STATUS_OK, STATUS_FAULT, STATUS_NOMEMORY, etc

Definition at line 317 of file img.h.

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

◆ gapx

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().

◆ gapy

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().

◆ gapz

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().

◆ isotopeHalflife

float IMG::isotopeHalflife

◆ isWeight

char IMG::isWeight

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().

◆ m

float**** IMG::m

◆ mid

float* IMG::mid

◆ orientation

int IMG::orientation

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().

◆ patientID

char IMG::patientID[16]

◆ patientName

char IMG::patientName[32]

◆ pixel

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().

◆ plane

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().

◆ planeNumber

int* IMG::planeNumber

◆ polarmap_num_rings

int IMG::polarmap_num_rings

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().

◆ polarmap_ring_angle

short int IMG::polarmap_ring_angle[MAX_POLARMAP_NUM_RINGS]

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().

◆ polarmap_ring_position

float IMG::polarmap_ring_position[MAX_POLARMAP_NUM_RINGS]

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().

◆ polarmap_sectors_per_ring

int IMG::polarmap_sectors_per_ring[MAX_POLARMAP_NUM_RINGS]

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().

◆ polarmap_start_angle

short int IMG::polarmap_start_angle

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().

◆ prompts

float* IMG::prompts

◆ radiopharmaceutical

char IMG::radiopharmaceutical[32]

◆ randoms

float* IMG::randoms

◆ resolutionx

float IMG::resolutionx

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().

◆ resolutiony

float IMG::resolutiony

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().

◆ resolutionz

float IMG::resolutionz

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().

◆ row

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().

◆ sampleDistance

float IMG::sampleDistance

◆ scanner

int IMG::scanner

◆ scanStart

time_t IMG::scanStart

◆ sd

float* IMG::sd

Frame S.D. for weighting

Definition at line 304 of file img.h.

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

◆ sizex

float IMG::sizex

◆ sizey

float IMG::sizey

◆ sizez

float IMG::sizez

◆ start

float* IMG::start

◆ statmsg

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().

◆ status

char IMG::status

◆ studyDescription

char IMG::studyDescription[32]

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().

◆ studyNr

char IMG::studyNr[MAX_STUDYNR_LEN+1]

◆ transaxialFOV

float IMG::transaxialFOV

◆ type

char IMG::type

◆ unit

char IMG::unit

◆ userProcessCode

char IMG::userProcessCode[11]

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().

◆ weight

float* IMG::weight

Frame weight factor

Definition at line 302 of file img.h.

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

◆ zoom

float IMG::zoom

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