mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-29 13:25:29 -05:00
Fix pattern marking loops
This commit is contained in:
parent
a58950924c
commit
4e84866f17
|
|
@ -237,8 +237,8 @@ static void markPatterns(cv::Mat &matchResult, QImage &image,
|
|||
const cv::Mat &pattern)
|
||||
{
|
||||
auto matchImg = QImageToMat(image);
|
||||
for (int row = 0; row < matchResult.rows - 1; row++) {
|
||||
for (int col = 0; col < matchResult.cols - 1; col++) {
|
||||
for (int row = 0; row < matchResult.rows; row++) {
|
||||
for (int col = 0; col < matchResult.cols; col++) {
|
||||
if (matchResult.at<float>(row, col) != 0.0) {
|
||||
rectangle(matchImg, {col, row},
|
||||
cv::Point(col + pattern.cols,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user