Permalink
Browse files

Fixed bug in connected_components where diagonal components are erron…

…eously

if position of the first point on row N is just to the right of the last point
on row N-1.
  • Loading branch information...
1 parent 1badf92 commit e4ea9779f9f80243f994cbd138ec4bdf900b6d31 edrosten committed Feb 11, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 cvd_src/connected_components.cc
@@ -57,6 +57,7 @@ void connected_components(const vector<ImageRef>& v, vector<vector<ImageRef> >&
if(pos.y != prev_row)
{
+ prev_x=INT_MIN;
row_above.swap(row_curent);
row_curent.clear();

0 comments on commit e4ea977

Please sign in to comment.