|
TPCCLIB
|
Header file for libtpctacimg. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include "tpcextensions.h"#include "tpctac.h"#include "tpcimage.h"Go to the source code of this file.
Functions | |
| int | tacAllocateWithIMG (TAC *tac, IMG *img, int tacNr) |
| Allocate TAC based on data in IMG. | |
| int | imgVb (IMG *img, TAC *btac, double Vb, const int simVb, const int petVolume) |
| Correct pixel TACs for vascular blood, or simulate its effect. | |
| int | tacimgXMatch (TAC *tac, IMG *img) |
| int | tacimgXCopy (TAC *tac, IMG *img) |
Header file for libtpctacimg.
Header file for template library libtpctacimg.
Definition in file tpctacimg.h.
Correct pixel TACs for vascular blood, or simulate its effect.
| img | Pointer to IMG data to process. |
| btac | Pointer to BTAC data to subtract or add; must contain the same sample times as IMG and y values must be in the same units. |
| Vb | Vb fraction [0,1]. |
| simVb | Switch to either subtract vascular volume (0) or to simulate it (1). |
| petVolume | Switch to model vascular volume as either 0 : Cpet = (1-Vb)*Ct + Vb*Cb, or 1 : Cpet = Ct + Vb*Cb |
Definition at line 56 of file misc.c.
Allocate TAC based on data in IMG.
| tac | Pointer to initiated TAC structure; any old contents are deleted. TAC sampleNr and tacNr will be set, although contents will be empty. |
| img | Pointer to IMG structure which contains frame times and units. |
| tacNr | Number of TACs to allocate. |
Definition at line 16 of file misc.c.
Copy x values (time frames) from IMG structure into TAC structure. If IMG has more frames than has been allocated for TAC (_sampleNr), then additional frames are ignored. If IMG has less frames than TAC, then error is returned.
Check whether sample (frame) times are the same (or very close to) in TAC and IMG structure structures. If number of samples/frames is different, then only common number of samples are compared.
Definition at line 17 of file x.c.