libtpcmodext
 All Files Functions Variables Defines
Functions
img_k1.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "include/libtpcmodext.h"
Include dependency graph for img_k1.c:

Go to the source code of this file.

Functions

int img_k1_using_ki (DFT *input, IMG *dyn_img, int frame_nr, IMG *ki_img, IMG *k1_img, IMG *k2k3_img, char *status)

Function Documentation

int img_k1_using_ki ( DFT *  input,
IMG *  dyn_img,
int  frame_nr,
IMG *  ki_img,
IMG *  k1_img,
IMG *  k2k3_img,
char *  status 
)

Computing pixel-by-pixel the K1 for irreversible PET tracers using previously determined Ki (K1*k3/(k2+k3) and bilinear regression.

Returns:
Returns 0 if succesful, and >1 in case of an error.
Parameters:
inputPointer to the TAC data to be used as model input. Sample times in minutes. Curve is interpolated to PET frame times, if necessary
dyn_imgPointer to dynamic PET image data. Image and input data must be in the same calibration units
frame_nrNr of frames that will be included in the fit [3-frame_nr]
ki_imgPointer to previously calculated Ki image
k1_imgPointer to initiated IMG structure where K1 values will be placed
k2k3_imgPointer to initiated IMG structure where (k2+k3) values will be placed; enter NULL, if not needed
statusPointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed

Definition at line 52 of file img_k1.c.

References MODEXT_TEST.