8 #include "oArterialInputCurve.hh" 9 #include "sOutputManager.hh" 10 #include "gOptions.hh" 56 Cerr(
"***** oArterialInputCurve::CheckParameters() -> AIC datapoints need to start before the first frame " << endl);
62 Cerr(
"***** oArterialInputCurve::CheckParameters() -> Requested reconstruction framing is longer than the provided AIC time points" << endl);
79 if (
m_verbose>=2)
Cout(
"oArterialInputCurve::InitializeInputData() -> Initializing input from the provided Arterial Input Curve " << endl );
84 Cerr(
"***** oArterialInputCurve::InitializeInputData() -> Error while reading number of data points from AIC file )" << endl);
98 Cerr(
"***** oArterialInputCurve::InitializeInputData() -> Error while trying to read Data points from AIC file: " <<
m_pathToAICfile << endl);
103 Cerr(
"***** oArterialInputCurve::InitializeInputData() -> Error while trying to read Time Data points from AIC file: " <<
m_pathToAICfile << endl);
111 bool time_points_inMinutes =
false;
113 if (Units==
"minutes" || Units==
"Minutes")
115 time_points_inMinutes = true ;
119 if (time_points_inMinutes)
132 if (input_time_points_FLTNB)
delete [] (input_time_points_FLTNB);
137 Cout(
"oArterialInputCurve::InitializeInputData() -> Printing input Data \n Time(ms),Datapoint (Bq/ml) " << endl );
158 for (
int i=0;i<(m_nbinputDataPoints-1);i++)
190 for (uint32_t k = 0; k <= mp_frameTimeStopInMs[
m_nbTimeFrames - 1]; k++)
195 Cout (
" Negative interpolated AIF value detected at: " << k <<
"ms --> setting AIF to zero" << endl);
200 if (slopes)
delete[] (slopes);
201 if (intercepts)
delete[] (intercepts);
221 int total_samples_forDownsample = (int)(((
float)mp_frameTimeStopInMs[
m_nbTimeFrames - 1] / 1000.) * 10);
223 total_samples_forDownsample+=1;
224 if (
m_verbose>=3)
Cout(
" Downsampling to 100 msec time intervals " << endl);
230 for (
int i=1;i<=int(mp_frameTimeStopInMs[
m_nbTimeFrames - 1]);i++)
239 if (
m_verbose>=3)
Cout(
" Downsampling complete to total # of points : " << index << endl);
#define KEYWORD_MANDATORY
int ReadDataASCIIFile(const string &a_file, const string &a_keyword, T *ap_return, int a_nbElts, bool a_mandatoryFlag)
Look for "a_nbElts" elts in the "a_file" file matching the "a_keyword" string passed as parameter a...