]> granicus.if.org Git - imagemagick/commitdiff
Fixed data type of argument for adaptiveThreshold.
authordirk <dirk@git.imagemagick.org>
Tue, 6 Jan 2015 20:41:32 +0000 (20:41 +0000)
committerdirk <dirk@git.imagemagick.org>
Tue, 6 Jan 2015 20:41:32 +0000 (20:41 +0000)
Magick++/lib/Image.cpp
Magick++/lib/Magick++/Image.h

index de6c83f1bb2f76f6453813a8f14706323c0e181a..2db80d006441fdf56c61e911e3be91f15e5616a7 100644 (file)
@@ -1706,14 +1706,14 @@ void Magick::Image::adaptiveSharpenChannel(const ChannelType channel_,
 }
 
 void Magick::Image::adaptiveThreshold(const size_t width_,const size_t height_,
-  const ssize_t offset_)
+   const double bias_=0.0)
 {
 
   MagickCore::Image
     *newImage;
 
   GetPPException;
-  newImage=AdaptiveThresholdImage(constImage(),width_,height_,offset_,
+  newImage=AdaptiveThresholdImage(constImage(),width_,height_,bias_,
     exceptionInfo);
   replaceImage(newImage);
   ThrowPPException;
index 0cfe4a16dc1360545c287c4c918a3d0d7c8a8fb0..1cc474fc9687f0b74a4c2bc34f3dd9499e4c8c0a 100644 (file)
@@ -540,9 +540,9 @@ namespace Magick
     // Local adaptive threshold image
     // http://www.dai.ed.ac.uk/HIPR2/adpthrsh.htm
     // Width x height define the size of the pixel neighborhood
-    // offset = constant to subtract from pixel neighborhood mean
-    void adaptiveThreshold(const size_t width,const size_t height,
-      const ::ssize_t offset=0);
+    // bias = constant to subtract from pixel neighborhood mean
+    void adaptiveThreshold(const size_t width_,const size_t height_,
+      const double bias_=0.0);
 
     // Add noise to image with specified noise type
     void addNoise(const NoiseType noiseType_);