Commit 97cab339 authored by marina.kolpakova's avatar marina.kolpakova

fix Connected Components Labeling test crash

parent a04ef086
...@@ -135,7 +135,7 @@ namespace { ...@@ -135,7 +135,7 @@ namespace {
int outliers = 0; int outliers = 0;
for (int j = 0; j < image.rows; ++j) 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))) if ( (_labels.at<int>(j,i) == gpu.at<int>(j,i + 1)) && (diff.at<int>(j, i) != diff.at<int>(j,i + 1)))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment