ThrowImageException;
}
+void Magick::Image::autoThreshold(const AutoThresholdMethod method_)
+{
+ modifyImage();
+ GetPPException;
+ AutoThresholdImage(image(),method_, exceptionInfo);
+ ThrowImageException;
+}
+
void Magick::Image::blackThreshold(const std::string &threshold_)
{
modifyImage();
// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
-// Copyright Dirk Lemstra 2013-2016
+// Copyright Dirk Lemstra 2013-2017
//
// Definition of Image, the representation of a single image in Magick++
//
// Adjusts an image so that its orientation is suitable for viewing.
void autoOrient(void);
+ // Automatically selects a threshold and replaces each pixel in the image
+ // with a black pixel if the image intentsity is less than the selected
+ // threshold otherwise white.
+ void autoThreshold(const AutoThresholdMethod method_);
+
// Forces all pixels below the threshold into black while leaving all
// pixels at or above the threshold unchanged.
void blackThreshold(const std::string &threshold_);
using MagickCore::ShapeAlphaChannel;
using MagickCore::TransparentAlphaChannel;
+ // Auto threshold methods
+ using MagickCore::AutoThresholdMethod;
+ using MagickCore::UndefinedThresholdMethod;
+ using MagickCore::KapurThresholdMethod;
+ using MagickCore::OTSUThresholdMethod;
+ using MagickCore::TriangleThresholdMethod;
+
// Channel types
using MagickCore::ChannelType;
using MagickCore::UndefinedChannel;
using MagickCore::AutoGammaImage;
using MagickCore::AutoLevelImage;
using MagickCore::AutoOrientImage;
+ using MagickCore::AutoThresholdImage;
using MagickCore::Base64Decode;
using MagickCore::Base64Encode;
using MagickCore::BilevelImage;