Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 21, 2017
1 parent ab8ab7d commit d29a292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/threshold.c
Expand Up @@ -539,7 +539,7 @@ static double OTSUThreshold(const Image *image,const double *histogram,
*/
omega[0]=probability[0];
myu[0]=0.0;
for (i=0; i <= (ssize_t) MaxIntensity; i++)
for (i=1; i <= (ssize_t) MaxIntensity; i++)
{
omega[i]=omega[i-1]+probability[i];
myu[i]=myu[i-1]+i*probability[i];
Expand Down

0 comments on commit d29a292

Please sign in to comment.