v1.0.0-rc.42

This commit is contained in:
2025-06-11 19:53:33 +02:00
parent dc90b05512
commit a9c7d23b9e
145 changed files with 172 additions and 141 deletions
+3 -2
View File
@@ -105,10 +105,11 @@ bool QuickIntegrate::IntegrateInternal(Reflection &r, const T *image, size_t xpi
if ((I_npixel > 2) && (bkg_npixel > 5)) {
r.bkg = static_cast<float>(bkg_sum) / static_cast<float>(bkg_npixel);
r.I = static_cast<float>(I_sum) - static_cast<float>(I_npixel) * r.bkg;
if (I_sum > 0)
// minimum sigma is 1!
if (I_sum >= 1)
r.sigma = std::sqrt(static_cast<float>(I_sum));
else
r.sigma = 0;
r.sigma = 1;
return true;
}
return false;