TPCCLIB
|
Functions for computing pixel-by-pixel the MTGA (Gjedde-Patlak and Logan plot). More...
#include "libtpcmodext.h"
Go to the source code of this file.
Functions | |
int | img_patlak (DFT *input, IMG *dyn_img, int start, int end, linefit_range fit_range, float thrs, IMG *ki_img, IMG *ic_img, IMG *nr_img, char *status, int verbose) |
int | img_logan (DFT *input, IMG *dyn_img, int start, int end, linefit_range fit_range, float thrs, double k2, IMG *vt_img, IMG *ic_img, IMG *nr_img, char *status, int verbose) |
Functions for computing pixel-by-pixel the MTGA (Gjedde-Patlak and Logan plot).
Definition in file img_mtga.c.
int img_logan | ( | DFT * | input, |
IMG * | dyn_img, | ||
int | start, | ||
int | end, | ||
linefit_range | fit_range, | ||
float | thrs, | ||
double | k2, | ||
IMG * | vt_img, | ||
IMG * | ic_img, | ||
IMG * | nr_img, | ||
char * | status, | ||
int | verbose ) |
Computing pixel-by-pixel the graphical analysis for reversible PET tracers (Logan plot).
input | Pointer to the TAC data to be used as model input. Sample times in minutes. Curve is interpolated to PET frame times, if necessary. |
dyn_img | Pointer to dynamic PET image data. Image and input data must be in the same calibration units. |
start | The range of frames where line is fitted, given as the frame start here and next the end index, i.e. [0..frame_nr-1]. |
end | The range of frames where line is fitted, given as the frame start above and here the end index, i.e. [0..frame_nr-1]. |
fit_range | Use the whole range or based on data leave out points from the beginning; PRESET or EXCLUDE_BEGIN. |
thrs | Threshold as fraction of input AUC. |
k2 | Reference region k2; set to <=0 if not needed. |
vt_img | Pointer to initiated IMG structure where Vt (or DVR) values will be placed. |
ic_img | Pointer to initiated IMG structure where plot y axis intercept values times -1 will be placed; enter NULL, if not needed. |
nr_img | Pointer to initiated IMG structure where the number of plot data points actually used in the fit is written; enter NULL, when not needed. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 228 of file img_mtga.c.
int img_patlak | ( | DFT * | input, |
IMG * | dyn_img, | ||
int | start, | ||
int | end, | ||
linefit_range | fit_range, | ||
float | thrs, | ||
IMG * | ki_img, | ||
IMG * | ic_img, | ||
IMG * | nr_img, | ||
char * | status, | ||
int | verbose ) |
Computing pixel-by-pixel the graphical analysis for irreversible PET tracers (Gjedde-Patlak plot).
input | Pointer to the TAC data to be used as model input. Sample times in minutes. Curve is interpolated to PET frame times, if necessary. |
dyn_img | Pointer to dynamic PET image data. Image and input data must be in the same calibration units. |
start | The range of frames where line is fitted, given as the frame start here and next the end index, i.e. [0..frame_nr-1]. |
end | The range of frames where line is fitted, given as the frame start above and here the end index, i.e. [0..frame_nr-1]. |
fit_range | Use the whole range or based on data leave out points from the beginning; PRESET or EXCLUDE_BEGIN. |
thrs | Threshold as fraction of input AUC. |
ki_img | Pointer to initiated IMG structure where Ki values will be placed. |
ic_img | Pointer to initiated IMG structure where plot y axis intercept values will be placed; enter NULL, if not needed. |
nr_img | Pointer to initiated IMG structure where the number of plot data points actually used in the fit is written; enter NULL, when not needed. |
status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 17 of file img_mtga.c.