1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fix Connected Components Labeling test crash

This commit is contained in:
marina.kolpakova
2012-11-01 23:59:01 +04:00
parent a04ef08602
commit 97cab339d2
+1 -1
View File
@@ -135,7 +135,7 @@ namespace {
int outliers = 0;
for (int j = 0; j < image.rows; ++j)
for (int i = 0; i < image.cols; ++i)
for (int i = 0; i < image.cols - 1; ++i)
{
if ( (_labels.at<int>(j,i) == gpu.at<int>(j,i + 1)) && (diff.at<int>(j, i) != diff.at<int>(j,i + 1)))
{