Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 1, 2020
1 parent a198dc2 commit 290cb93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MagickCore/vision.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,10 @@ MagickExport Image *ConnectedComponentsImage(const Image *image,
p+=GetPixelChannels(component_image);
}
}
census=0;
census=object[0].census;
id=0;
for (j=0; j < (ssize_t) component_image->colors; j++)
if (census > object[j].census)
for (j=1; j < (ssize_t) component_image->colors; j++)
if (census < object[j].census)
{
census=object[j].census;
id=(size_t) j;
Expand Down

0 comments on commit 290cb93

Please sign in to comment.