Skip to content

Commit

Permalink
Fixed bug in connected_components where diagonal components are erron…
Browse files Browse the repository at this point in the history
…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
edrosten committed Feb 11, 2009
1 parent 1badf92 commit e4ea977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cvd_src/connected_components.cc
Expand Up @@ -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();

Expand Down

0 comments on commit e4ea977

Please sign in to comment.