|
TPCCLIB
|
#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 |
4D IMG data structure for dynamic image
Definition at line 82 of file tpcimage.h.
| imgcontent IMG::content |
Data content
Definition at line 97 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), and imgReadDICOM().
| unit IMG::cunit |
Unit of pixel values (concentrations): UNIT_*
Definition at line 203 of file tpcimage.h.
Referenced by imgCompareUnit(), imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), imgSetNiftiHeader(), and tacAllocateWithIMG().
| decaycorrection IMG::decayCorrection |
Status of decay correction.
Definition at line 91 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), and imgReadDICOM().
| unsigned short int IMG::dimt |
Dimension of Time (f/t).
Definition at line 110 of file tpcimage.h.
Referenced by imgAllocate(), imgCompareConc(), imgCompareTimes(), imgContents(), imgFromSIF(), imgGetNiftiHeader(), imgHasCounts(), imgHasTimes(), imgHasWeights(), imgInit(), imgMinMax(), imgNaNs(), imgReadDICOM(), imgReadNifti(), imgSetNiftiHeader(), imgToSIF(), imgVb(), imgWrite(), imgWriteDICOM(), imgWriteNifti(), imgXRange(), imgXUnitConvert(), tacAllocateWithIMG(), tacimgXCopy(), and tacimgXMatch().
| unsigned short int IMG::dimx |
Dimension of Column (c/x).
Definition at line 112 of file tpcimage.h.
Referenced by imgAllocate(), imgCompareConc(), imgCompareMatrixSize(), imgContents(), imgGetNiftiHeader(), imgHasData(), imgInit(), imgMinMax(), imgNaNs(), imgReadDICOM(), imgReadNifti(), imgSetNiftiHeader(), imgVb(), imgWrite(), and imgWriteNifti().
| unsigned short int IMG::dimy |
Dimension of Row (r/y).
Definition at line 114 of file tpcimage.h.
Referenced by imgAllocate(), imgCompareConc(), imgCompareMatrixSize(), imgContents(), imgGetNiftiHeader(), imgHasData(), imgInit(), imgMinMax(), imgNaNs(), imgReadDICOM(), imgReadNifti(), imgSetNiftiHeader(), imgVb(), imgWrite(), and imgWriteNifti().
| unsigned short int IMG::dimz |
Dimension of Plane (p/z).
Definition at line 116 of file tpcimage.h.
Referenced by imgAllocate(), imgCompareConc(), imgCompareMatrixSize(), imgContents(), imgFillOHeader(), imgGetNiftiHeader(), imgHasData(), imgInit(), imgMinMax(), imgNaNs(), imgReadDICOM(), imgReadNifti(), imgSetNiftiHeader(), imgVb(), imgWrite(), imgWriteDICOM(), and imgWriteNifti().
| imgformat IMG::format |
Original data format
Definition at line 103 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgGetNiftiHeader(), imgInit(), imgRead(), imgReadDICOM(), imgReadNifti(), imgWrite(), and imgWriteNifti().
| 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().
| 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().
| 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().
| IFT IMG::ih |
Original header information.
Definition at line 208 of file tpcimage.h.
Referenced by imgContents(), imgFillOHeader(), imgFree(), and imgInit().
| 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().
| 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().
| isotope IMG::isot |
Isotope.
Definition at line 88 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgFromSIF(), imgInit(), imgReadDICOM(), imgToSIF(), and imgWriteDICOM().
| 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().
| imgmodality IMG::modality |
Modality
Definition at line 100 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgInit(), and imgReadDICOM().
| 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().
| imgformat IMG::oformat |
Output data format
Definition at line 105 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgFillOHeader(), imgInit(), imgSetNiftiHeader(), imgWrite(), and imgWriteNifti().
| IFT IMG::oh |
Header information for output.
Definition at line 210 of file tpcimage.h.
Referenced by imgFillOHeader(), imgFree(), imgInit(), and imgWrite().
| 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().
| float* IMG::prompts |
Prompts / frame
Definition at line 195 of file tpcimage.h.
Referenced by imgAllocate(), imgFree(), imgFromSIF(), imgHasCounts(), imgInit(), and imgToSIF().
| 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().
| float* IMG::randoms |
Randoms (delayed) / frame
Definition at line 197 of file tpcimage.h.
Referenced by imgAllocate(), imgFree(), imgFromSIF(), imgHasCounts(), imgInit(), and imgToSIF().
| 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().
| float IMG::sizex |
Pixel size (mm).
Definition at line 119 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().
| float IMG::sizey |
Pixel size (mm).
Definition at line 121 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), and imgSetNiftiHeader().
| float IMG::sizez |
Pixel size (mm).
Definition at line 123 of file tpcimage.h.
Referenced by imgContents(), imgCopyHeader(), imgGetNiftiHeader(), imgInit(), imgReadDICOM(), imgSetNiftiHeader(), and imgWriteDICOM().
| 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().
| 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().
| unit IMG::tunit |
Unit of sample times: UNIT_*
Definition at line 205 of file tpcimage.h.
Referenced by imgCompareUnit(), imgContents(), imgCopyHeader(), imgFillOHeader(), imgFromSIF(), imgInit(), imgXUnitConvert(), tacAllocateWithIMG(), tacimgXCopy(), and tacimgXMatch().
| float* IMG::weight |
Frame weight factor
Definition at line 193 of file tpcimage.h.
Referenced by imgAllocate(), imgFree(), imgFromSIF(), and imgInit().
| weights IMG::weighting |
Weighting: WEIGHTING_UNKNOWN, WEIGHTING_OFF, WEIGHTING_ON_COUNTS, ...
Definition at line 191 of file tpcimage.h.
Referenced by imgFromSIF(), imgHasWeights(), and imgInit().
| 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().
| float* IMG::x1 |
Frame start time (tunit; by default sec)
Definition at line 180 of file tpcimage.h.
Referenced by imgAllocate(), imgCompareTimes(), imgFree(), imgFromSIF(), imgHasData(), imgInit(), imgReadDICOM(), imgToSIF(), imgXRange(), imgXUnitConvert(), tacAllocateWithIMG(), tacimgXCopy(), and tacimgXMatch().
| float* IMG::x2 |
Frame end time (tunit; by default sec)
Definition at line 182 of file tpcimage.h.
Referenced by imgAllocate(), imgCompareTimes(), imgFree(), imgFromSIF(), imgHasData(), imgHasTimes(), imgInit(), imgReadDICOM(), imgToSIF(), imgXRange(), imgXUnitConvert(), tacAllocateWithIMG(), tacimgXCopy(), and tacimgXMatch().
| 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().