TPCCLIB
|
Functions for extracting TACs from image data. More...
#include "libtpcimgp.h"
Go to the source code of this file.
Functions | |
int | imgAverageTAC (IMG *img, float *tac) |
int | imgAverageMaskTAC (IMG *img, IMG *timg, float *tac) |
int | imgAverageAUC (IMG *img, float *avgauc) |
int | imgMaskTAC (IMG *img, IMG *mask, double *tac, int verbose) |
int | imgMaskRoiNr (IMG *img, INTEGER_LIST *list) |
int | imgVoiMaskTAC (IMG *img, IMG *mask, int mv, double *tac, int verbose) |
Functions for extracting TACs from image data.
Definition in file imgeval.c.
int imgAverageAUC | ( | IMG * | img, |
float * | avgauc ) |
Calculates the Area-Under-Curve of an average time-activity curve of all pixels or bins in the specified IMG data.
img | (Dynamic) IMG data. |
avgauc | Pointer to a float were the average TAC AUC will be written. |
Definition at line 91 of file imgeval.c.
Calculates an average time-activity curve of pixels or bins in the specified IMG data.
Mask image specifies the pixels that are included in the average. If all pixels are to be averaged, then NULL can be given instead of mask image.
img | (Dynamic) IMG data from which cluster TAC is computed. |
timg | Mask: 0=excluded, otherwise included. Enter NULL to include all pixels in the average. |
tac | Allocated float array for the TAC. |
Definition at line 34 of file imgeval.c.
Referenced by imgAverageTAC().
int imgAverageTAC | ( | IMG * | img, |
float * | tac ) |
Calculates an average time-activity curve of all pixels or bins in the specified IMG data.
img | (Dynamic) IMG data from which TAC is computed. |
tac | Allocated float array for the TAC. |
Definition at line 15 of file imgeval.c.
Referenced by imgNoiseTemplate(), and sifAllocateWithIMG().
int imgMaskRoiNr | ( | IMG * | img, |
INTEGER_LIST * | list ) |
Get the list of ROIs in the mask image.
img | Pointer to mask image. Pixel values <=0 represent pixels outside any ROI, and each rounded positive integer value represents one ROI. |
list | Initiated list of integers. |
Definition at line 176 of file imgeval.c.
Calculate TAC as weighted average of voxels in specified image data with relative weights given in a mask image.
img | Pointer to allocated image from which the weighted TAC is calculated. |
mask | Pointer to mask image; x, y, and z dimensions must be the same as in the image to which the mask is applied. |
tac | Pointer to an array where weighted pixel averages are written; it must be allocated for size >= dimt. |
verbose | Verbose level; set to <=0 to prevent all prints to stdout. |
Definition at line 126 of file imgeval.c.
Calculate TAC as average of voxels in image data, including only voxels which have specified value in the mask image.
img | Pointer to allocated image from which the mean TAC is calculated. |
mask | Pointer to mask image; x, y, and z dimensions must be the same as in the image to which the mask is applied. |
mv | Voxels with this value in mask image are included in the average. |
tac | Pointer to an array where weighted pixel averages are written; it must be allocated for size >= dimt. |
verbose | Verbose level; set to <=0 to prevent all prints to stdout. |
Definition at line 214 of file imgeval.c.