Skip to content

Commit

Permalink
Merge pull request #1800 from mtsep/OrganizedConnectedComponent_fix
Browse files Browse the repository at this point in the history
OrganizedConnectedComponentSegmentation fix
  • Loading branch information
jspricke authored Jan 16, 2017
2 parents ad67293 + 76d4b31 commit a83e654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pcl::OrganizedConnectedComponentSegmentation<PointT, PointLT>::findLabeledRegion
x = curr_x + directions [nIdx].d_x;
y = curr_y + directions [nIdx].d_y;
index = curr_idx + directions [nIdx].d_index;
if (x >= 0 && y < int(labels->width) && y >= 0 && y < int(labels->height) && labels->points[index].label == label)
if (x >= 0 && x < int(labels->width) && y >= 0 && y < int(labels->height) && labels->points[index].label == label)
break;
}

Expand Down

0 comments on commit a83e654

Please sign in to comment.