From b1461b0e2f9ba7fab579489eb3760eb6ef8f2386 Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 6 Jan 2015 20:41:32 +0000 Subject: [PATCH] Fixed data type of argument for adaptiveThreshold. --- Magick++/lib/Image.cpp | 4 ++-- Magick++/lib/Magick++/Image.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index de6c83f1b..2db80d006 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -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; diff --git a/Magick++/lib/Magick++/Image.h b/Magick++/lib/Magick++/Image.h index 0cfe4a16d..1cc474fc9 100644 --- a/Magick++/lib/Magick++/Image.h +++ b/Magick++/lib/Magick++/Image.h @@ -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_); -- 2.40.0