Removed check on center pixel (Allows negative clusters). We'll see how it pans out.

This commit is contained in:
2025-08-12 00:01:37 +02:00
parent efb16ea8c1
commit 29a2374446

View File

@@ -125,11 +125,12 @@ class ClusterFinder {
}
}
if ((max > m_nSigma * rms)) {
if (value < max)
continue; // Not max go to the next pixel
// but also no pedestal update
} else if (total > c3 * m_nSigma * rms) {
// if ((max > m_nSigma * rms)) {
// if (value < max)
// continue; // Not max go to the next pixel
// // but also no pedestal update
// } else
if (total > c3 * m_nSigma * rms) {
// pass
} else {
// m_pedestal.push(iy, ix, frame(iy, ix)); // Safe option