Skip to content

Commit

Permalink
OrganizedConnectedComponentSegmentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsep authored and UnaNancyOwen committed Nov 24, 2017
1 parent dee716b commit d96dadf
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 d96dadf

Please sign in to comment.