My Project
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

◆ _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

◆ 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

◆ decayCorrFactor

◆ dimt

◆ dimx

◆ dimy

◆ dimz

◆ 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

◆ 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

◆ 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

◆ patientName

◆ 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

◆ 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

◆ radiopharmaceutical

◆ 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

◆ scanner

◆ 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

◆ sizey

◆ sizez

◆ 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

◆ 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

◆ transaxialFOV

◆ type

◆ 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


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