Fix bug in detector initialize

This commit is contained in:
2024-03-23 04:07:12 +01:00
parent 009c275c99
commit 30599e2858
7 changed files with 33 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ std::vector<IndexingResult> IndexerWrapper::Run(const std::vector<Coord> &coord)
if (coord.size() <= min_spots)
return ret;
size_t nspots = std::min<size_t>(MAX_SPOTS_TO_INDEX, coord.size());
size_t nspots = std::min<size_t>(MAX_SPOT_COUNT, coord.size());
for (int i = 0; i < nspots; i++) {
indexer.spotX(i) = coord[i].x;