TPCCLIB
Loading...
Searching...
No Matches
IMG Struct Reference

#include <tpcimage.h>

Data Fields

char studyNr [MAX_STUDYNR_LEN+1]
isotope isot
decaycorrection decayCorrection
char scanStart [20]
imgcontent content
imgmodality modality
imgformat format
imgformat oformat
unsigned short int dimt
unsigned short int dimx
unsigned short int dimy
unsigned short int dimz
float sizex
float sizey
float sizez
float gapx
float gapy
float gapz
short int xform [2]
float quatern [6]
float srow [12]
float iop [6]
float ipp [3]
float mt [12]
float **** m
float * p
float * x1
float * x2
float * x
weights weighting
float * weight
float * prompts
float * randoms
unit cunit
unit tunit
IFT ih
IFT oh

Detailed Description

4D IMG data structure for dynamic image

Definition at line 82 of file tpcimage.h.

Field Documentation

◆ content

imgcontent IMG::content

Data content

See also
imgcontent, imgContentDescr

Definition at line 97 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), and imgReadDICOM().

◆ cunit

unit IMG::cunit

Unit of pixel values (concentrations): UNIT_*

See also
unitName

Definition at line 203 of file tpcimage.h.

Referenced by imgCompareUnit(), imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), imgSetNiftiHeader(), and tacAllocateWithIMG().

◆ decayCorrection

decaycorrection IMG::decayCorrection

Status of decay correction.

Definition at line 91 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), and imgReadDICOM().

◆ dimt

◆ dimx

◆ dimy

◆ dimz

◆ format

◆ gapx

float IMG::gapx

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

Definition at line 126 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), and imgInit().

◆ gapy

float IMG::gapy

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

Definition at line 128 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), and imgInit().

◆ gapz

float IMG::gapz

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

Definition at line 130 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), and imgInit().

◆ ih

IFT IMG::ih

Original header information.

Definition at line 208 of file tpcimage.h.

Referenced by imgContents(), imgFillOHeader(), imgFree(), and imgInit().

◆ iop

float IMG::iop[6]

DICOM Image orientation patient (0x0020, 0x0037), [xa, xb, xc, ya, yb, yc].

Definition at line 139 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgInit(), and imgReadDICOM().

◆ ipp

float IMG::ipp[3]

DICOM Image position patient (0x0020, 0x0032), [Xd, Yd, Zd].

Definition at line 141 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgInit(), and imgReadDICOM().

◆ isot

isotope IMG::isot

◆ m

float**** IMG::m

Pointer to image data in matrix format; use as m[plane][row][column][frame].

Definition at line 161 of file tpcimage.h.

Referenced by imgAllocate(), imgCompareConc(), imgHasData(), imgInit(), imgReadDICOM(), imgReadNifti(), imgVb(), imgWrite(), and imgWriteNifti().

◆ modality

imgmodality IMG::modality

Modality

See also
imgmodality, imgModalityDescr

Definition at line 100 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgInit(), and imgReadDICOM().

◆ mt

float IMG::mt[12]

ECAT 7 image matrix transformation parameters (1,1), (1,2), (1,3), (1,4), ... (3,4); or XFORM matrix.

Definition at line 144 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), and imgInit().

◆ oformat

imgformat IMG::oformat

Output data format

See also
imgformat, imgFormatDescr

Definition at line 105 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgInit(), imgSetNiftiHeader(), imgWrite(), and imgWriteNifti().

◆ oh

IFT IMG::oh

Header information for output.

Definition at line 210 of file tpcimage.h.

Referenced by imgFillOHeader(), imgFree(), imgInit(), and imgWrite().

◆ p

float* IMG::p

Pointer to image data in array format.

Example 1: to get pointer to the TAC of concentrations of pixel at 10th plane (z=9), 6th row from up (y=5), and 3rd column from left (x=2), use unsigned int z=9, y=5, x=2; float *c=img->p[z*dimy*dimx*dimt + y*dimx*dimt + x*dimt].

Example 2: to get the value of pixel at 2nd plane, 3rd row, 4th column, and first time frame, use: unsigned int z=1, y=2, x=3, f=0; float c=img->p[z*dimy*dimx*dimt + y*dimx*dimt + x*dimt + f];

Definition at line 174 of file tpcimage.h.

Referenced by imgAllocate(), imgHasData(), imgInit(), imgMinMax(), and imgNaNs().

◆ prompts

float* IMG::prompts

Prompts / frame

Definition at line 195 of file tpcimage.h.

Referenced by imgAllocate(), imgFree(), imgFromSIF(), imgHasCounts(), imgInit(), and imgToSIF().

◆ quatern

float IMG::quatern[6]

NIfTI-1 Quaternion parameters b, c, d, and x, y, z shift.

Definition at line 135 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().

◆ randoms

float* IMG::randoms

Randoms (delayed) / frame

Definition at line 197 of file tpcimage.h.

Referenced by imgAllocate(), imgFree(), imgFromSIF(), imgHasCounts(), imgInit(), and imgToSIF().

◆ scanStart

char IMG::scanStart[20]

Scan start date and time, YYYY-MM-DD hh:mm:ss

Definition at line 94 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgFromSIF(), imgInit(), imgReadDICOM(), and imgToSIF().

◆ sizex

float IMG::sizex

Pixel size (mm).

Definition at line 119 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().

◆ sizey

float IMG::sizey

Pixel size (mm).

Definition at line 121 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().

◆ sizez

float IMG::sizez

Pixel size (mm).

Definition at line 123 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), imgSetNiftiHeader(), and imgWriteDICOM().

◆ srow

float IMG::srow[12]

NIfTI-1 affine transform parameters for the 1st, 2nd and 3rd row, x[4], y[4], and z[4].

Definition at line 137 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().

◆ studyNr

char IMG::studyNr[MAX_STUDYNR_LEN+1]

Study identification code, i.e. (consequential) study number

Definition at line 85 of file tpcimage.h.

Referenced by imgCopyHeader(), imgFromSIF(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgToSIF().

◆ tunit

unit IMG::tunit

◆ weight

float* IMG::weight

Frame weight factor

Definition at line 193 of file tpcimage.h.

Referenced by imgAllocate(), imgFree(), imgFromSIF(), and imgInit().

◆ weighting

weights IMG::weighting

Weighting: WEIGHTING_UNKNOWN, WEIGHTING_OFF, WEIGHTING_ON_COUNTS, ...

See also
imgHasWeights

Definition at line 191 of file tpcimage.h.

Referenced by imgFromSIF(), imgHasWeights(), and imgInit().

◆ x

float* IMG::x

Frame mid time (tunit; by default sec)

Definition at line 184 of file tpcimage.h.

Referenced by imgAllocate(), imgCompareTimes(), imgFree(), imgFromSIF(), imgInit(), imgReadDICOM(), imgToSIF(), and imgXUnitConvert().

◆ x1

float* IMG::x1

◆ x2

◆ xform

short int IMG::xform[2]

NIfTI-1 XForm codes qform and sform.

Definition at line 133 of file tpcimage.h.

Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().


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