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,
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.
void freeDelayCMFitData(DELAYCMFITDATA *d)
After last use, free memory in the data structure for delay time estimation.
int tacAllocateWithPAR(TAC *tac, PAR *par, int sampleNr, TPCSTATUS *status)
Allocate TAC based on data in PAR.
int tacInterpolateToEqualLengthFrames(TAC *inp, double minfdur, double maxfdur, TAC *tac, TPCSTATUS *status)
int tacFittime(TAC *d, double *startTime, double *endTime, int *first, int *last, 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 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 tacReadModelingData(const char *tissuefile, const char *inputfile1, const char *inputfile2, const char *inputfile3, double *fitdur, int cutInput, int *fitSampleNr, TAC *tis, TAC *inp, TPCSTATUS *status)
Read tissue and input data for modelling.
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 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 tacReadModelingInput(const char *inputfile1, const char *inputfile2, const char *inputfile3, TAC *inp, TPCSTATUS *status)
Read arterial input data for modelling.
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 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 tacInput2sim(TAC *itac, TAC *ttac, TAC *stac, TPCSTATUS *status)
Modify input TAC based on tissue TAC, for use in simulations.
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)
int parAllocateWithTAC(PAR *par, TAC *tac, int parNr, TPCSTATUS *status)
Allocate PAR based on data in TAC.
int tacDelay(TAC *tac, double dt, int ti, TPCSTATUS *status)
Move TAC y values (concentrations) in time, keeping sample times (x values) intact.
int tacReadReference(TAC *tis, const char *reference, TAC *ref, int *refIndex, TPCSTATUS *status)
Read reference tissue TAC.
int tacToPAR(TAC *tac, PAR *par, TPCSTATUS *status)
Copy the contents of TAC struct into PAR struct.
int tacIntegrate(TAC *inp, TAC *out, TPCSTATUS *status)
Integrate TACs from one TAC structure into a new TAC structure.
int mfCreateTAC(PAR *par, double endx, double dx, TAC *tac, TPCSTATUS *status)
Make TAC(s) based on mathematical functions in PAR format.
void initDelayCMFitData(DELAYCMFITDATA *d)
Before first use, initiate the data structure for delay time estimation.
double tacAUC(TAC *tac, int ti, double t1, double t2, TPCSTATUS *status)
Calculates TAC AUC from t1 to t2.
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.