return(100.0*threshold/MaxIntensity);
}
-static double TriangleThreshold(const Image *image,const double *histogram,
+static double TriangleThreshold(const double *histogram,
ExceptionInfo *exception)
{
double
}
case TriangleThresholdMethod:
{
- threshold=TriangleThreshold(image,histogram,exception);
+ threshold=TriangleThreshold(histogram,exception);
break;
}
}
{
image->compression=NoCompression;
count=(ssize_t) ReadBlob(image,packets*image->rows,pixels);
- if (count != (packets*image->rows))
+ if (count != (ssize_t) (packets*image->rows))
{
pixels=(unsigned char *) RelinquishMagickMemory(pixels);
ThrowReaderException(CorruptImageError,"RLEDecoderError");