Initialize image for all threads

This commit is contained in:
2024-12-03 16:23:24 +01:00
parent 7608d6392c
commit bc6814ad0b

View File

@ -170,7 +170,7 @@ int main(int argc, char *argv[]) {
//auto filter = std::make_unique<singlePhotonDetector>(decoder.get(), 3, nsigma, 1, nullptr, nped, 200, -1, -1, nullptr, nullptr);
thr = 0.15 * thr;
filter->newDataSet();
//filter->newDataSet();
// int dsize = decoder->getDataSize();
if (thr > 0) {
@ -191,6 +191,7 @@ int main(int argc, char *argv[]) {
new multiThreadedCountingDetector(filter, nthreads, fifosize);
//auto mt = std::make_unique<multiThreadedCountingDetector>(filter.get(), nthreads, fifosize);
mt->setClusterSize(csize, csize);
mt->newDataSet();
#ifndef ANALOG
mt->setDetectorMode(ePhotonCounting);