libtpcmodext
 All Files Functions Variables Defines
Functions
img_patlak.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_patlak.c:

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, IMG *ki_img, IMG *ic_img, IMG *nr_img, char *status)

Function Documentation

int img_patlak ( DFT *  input,
IMG *  dyn_img,
int  start,
int  end,
linefit_range  fit_range,
IMG *  ki_img,
IMG *  ic_img,
IMG *  nr_img,
char *  status 
)

Computing pixel-by-pixel the graphical analysis for irreversible PET tracers (Gjedde-Patlak plot).

Returns:
Returns 0 if succesful, and >0 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
startThe range of frames where line is fitted, given as the frame start here and next the end index, i.e. [0..frame_nr-1]
endThe 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_rangeUse the whole range or based on data leave out points from the beginning; PRESET or EXCLUDE_BEGIN
ki_imgPointer to initiated IMG structure where Ki values will be placed
ic_imgPointer to initiated IMG structure where plot y axis intercept values will be placed; enter NULL, if not needed
nr_imgPointer to initiated IMG structure where the number of plot data points actually used in the fit is written; enter NULL, when 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 61 of file img_patlak.c.

References check_times_dft_vs_img(), copy_times_from_img_to_dft(), and MODEXT_TEST.

Here is the call graph for this function: