12#include "tpcclibConfig.h"
115 TAC *ttac,
const int i,
TAC *btac,
double Vb,
const int simVb,
const int petVolume,
131 TAC *d,
double *startTime,
double *endTime,
int *first,
int *last,
135 const char *tissuefile,
const char *inputfile1,
136 const char *inputfile2,
const char *inputfile3,
137 double *fitdur,
int cutInput,
int *fitSampleNr,
TAC *tis,
TAC *inp,
141 TAC *tis,
const char *reference,
TAC *ref,
int *refIndex,
TPCSTATUS *status
144 const char *inputfile1,
const char *inputfile2,
const char *inputfile3,
152 TAC *tac1,
TAC *tac2,
const char *main_title,
153 const double x1,
const double x2,
const double y1,
const double y2,
157 TAC *tac,
const char *main_title,
158 const double x1,
const double x2,
const double y1,
const double y2,
162 MTAC *mtac,
const char *main_title,
const char *fname,
TPCSTATUS *status
169 TAC *d,
const char *main_title,
const double x1,
const double x2,
const double y1,
const double y2,
187 TAC *btac,
TAC *ttac,
int ci,
double dtmin,
double dtmax,
double fitend,
double dtstep,
void freeDelayCMFitData(DELAYCMFITDATA *d)
After last use, free memory in the data structure for delay time estimation.
int tacDelay(TAC *tac, double dt, int ti, TPCSTATUS *status)
Move TAC y values (concentrations) in time, keeping sample times (x values) intact.
void initDelayCMFitData(DELAYCMFITDATA *d)
Before first use, initiate the data structure for delay time estimation.
int tacDelayCMFit(TAC *btac, TAC *ttac, int ci, double dtmin, double dtmax, double fitend, double dtstep, double *dt, int mode, int model, DELAYCMFITDATA *tdata, TPCSTATUS *status)
Fit time delay between PET tissue and plasma or blood curve.
int tacPlotHistogramSVG(TAC *d, const char *main_title, const double x1, const double x2, const double y1, const double y2, const char *fname, TPCSTATUS *status)
int tacInterpolateToEqualLengthFrames(TAC *inp, double minfdur, double maxfdur, TAC *tac, TPCSTATUS *status)
int tacVb(TAC *ttac, const int i, TAC *btac, double Vb, const int simVb, const int petVolume, TPCSTATUS *status)
Correct TTACs for vascular blood, or simulate its effect.
int tacInput2sim(TAC *itac, TAC *ttac, TAC *stac, TPCSTATUS *status)
Modify input TAC based on tissue TAC, for use in simulations.
int tacInterpolateInto(TAC *inp, TAC *tac, TAC *itac, TAC *iitac, TPCSTATUS *status)
Add TACs from one TAC structure into another TAC structure, interpolating the input TACs and allocati...
int tacInterpolate(TAC *inp, TAC *xinp, TAC *tac, TAC *itac, TAC *iitac, TPCSTATUS *status)
Interpolate and/or integrate TACs from one TAC structure into a new TAC structure,...
int tacIntegrateFE(TAC *inp, TAC *out, TAC *out2, TPCSTATUS *status)
Integrate TACs from one TAC structure into a new TAC structure. Integrals are calculated at frame end...
int tacIntegrate(TAC *inp, TAC *out, TPCSTATUS *status)
Integrate TACs from one TAC structure into a new TAC structure.
double tacAUC(TAC *tac, int ti, double t1, double t2, TPCSTATUS *status)
Calculates TAC AUC from t1 to t2.
int mfCreateTAC(PAR *par, double endx, double dx, TAC *tac, TPCSTATUS *status)
Make TAC(s) based on mathematical functions in PAR format.
int tacAllocateWithPAR(TAC *tac, PAR *par, int sampleNr, TPCSTATUS *status)
Allocate TAC based on data in PAR.
int parAllocateWithTAC(PAR *par, TAC *tac, int parNr, TPCSTATUS *status)
Allocate PAR based on data in TAC.
int tacToPAR(TAC *tac, PAR *par, TPCSTATUS *status)
Copy the contents of TAC struct into PAR struct.
int mtgaPlotSVG(MTAC *mtac, const char *main_title, const char *fname, TPCSTATUS *status)
int tacPlotLineSVG(TAC *tac, const char *main_title, const double x1, const double x2, const double y1, const double y2, const char *fname, TPCSTATUS *status)
int tacPlotFitSVG(TAC *tac1, TAC *tac2, const char *main_title, const double x1, const double x2, const double y1, const double y2, const char *fname, TPCSTATUS *status)
Header file for library libtpcextensions.
Header file for libtpcfunc.
Header file for libtpcli.
Header file for libtpcmodels.
Header file for libtpcpar.
Header file for library libtpctac.