Should baseline and gain be integration parameters?
The only place the baseline and gain are applied to the image (matrix) is in DataSet::transformedFrame
. This itself is only called in one place, in IPeakIntegrator::integrate
, i.e. it is applied before integration and does not alter the data set.
Eigen::MatrixXd DataSet::transformedFrame(std::size_t idx) const
{
Eigen::ArrayXXd new_frame = frame(idx).cast<double>();
new_frame -= detector().baseline();
new_frame /= detector().gain();
return new_frame;
}
Edited by Raza, Zamaan