|
TPCCLIB
|
Misc functions processing both IMG and TAC structures. More...
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. | |
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.