Skip to content

Commit

Permalink
OrganizedConnectedComponentSegmentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsep authored and Chungzuwalla committed Mar 31, 2017
1 parent d2be36f commit 5a040c4
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 5a040c4

Please sign in to comment.