in IsometricPatternMatcher/PatternMatcherIsometric.cpp [78:92]
void PatternMatcherIsometric::StoreIntoMap(const HexGridFitting& grid,
const Eigen::Matrix2Xd& detectedDots,
PatternMatcherIsometric::Result& res,
int& rotationIndx,
Eigen::Vector2i& offset) const {
Eigen::VectorXi binaryCode = grid.binaryCode();
res.debug.detected_labels.reserve(binaryCode.size());
for (int i = 0; i < binaryCode.size(); ++i) {
res.debug.detected_labels.push_back(binaryCode(i));
}
int numberMatch = grid.findOffset(isometricGrids_[0]->GetBinaryPatternGroup(),
grid.detectPattern(), offset, rotationIndx);
fmt::print("{} points can be matched from total {} detected points \n",
numberMatch, detectedDots.cols());
}