#include <iostream>
#include <cmath>
namespace afwGeom = lsst::afw::geom;
template<typename T>
return 0;
}
};
template<typename T>
setVal(T
val) : _val(val) {}
return _val;
}
private:
T _val;
};
template<typename T>
return val + 1;
}
};
template<typename T1, typename T2>
return lhs/rhs;
}
};
template<typename T>
Gaussian(
float a,
float xc,
float yc,
float alpha) :
_a(a), _xc(xc), _yc(yc), _alpha(alpha) {}
float const dx = x - _xc;
float const dy = y - _yc;
return val +
_a*::exp(-(dx*dx + dy*dy)/(2*_alpha*_alpha));
}
private:
float _a, _xc, _yc, _alpha;
};
using namespace std;
cout << img1(0,0) << " " << img2(0,0) << endl;
cout << img1(0,0) << " " << img2(0,0) << endl;
cout << img1(0,0) << " " << img2(0,0) << endl;
cout << img1(0,0) << " " << img2(0,0) << endl;
float const peak = 1000.0;
float const xc = 5.0;
float const yc = 3.0;
cout << img1(0,0) << " " << img1(xc, yc) << endl;
}