MagickCore  6.7.5
threshold.c File Reference
#include "MagickCore/studio.h"
#include "MagickCore/property.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colormap.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/configure.h"
#include "MagickCore/constitute.h"
#include "MagickCore/decorate.h"
#include "MagickCore/draw.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/effect.h"
#include "MagickCore/fx.h"
#include "MagickCore/gem.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/montage.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum.h"
#include "MagickCore/random_.h"
#include "MagickCore/random-private.h"
#include "MagickCore/resize.h"
#include "MagickCore/resource_.h"
#include "MagickCore/segment.h"
#include "MagickCore/shear.h"
#include "MagickCore/signature-private.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/token.h"
#include "MagickCore/transform.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Include dependency graph for threshold.c:

Go to the source code of this file.

Data Structures

struct  _ThresholdMap

Defines

#define ThresholdsFilename   "thresholds.xml"
#define AdaptiveThresholdImageTag   "AdaptiveThreshold/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ClampImageTag   "Clamp/Image"
#define DitherImageTag   "Dither/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ThresholdImageTag   "Threshold/Image"

Functions

static ThresholdMapGetThresholdMapFile (const char *, const char *, const char *, ExceptionInfo *)
MagickExport ImageAdaptiveThresholdImage (const Image *image, const size_t width, const size_t height, const double bias, ExceptionInfo *exception)
MagickExport MagickBooleanType BilevelImage (Image *image, const double threshold, ExceptionInfo *exception)
MagickExport MagickBooleanType BlackThresholdImage (Image *image, const char *thresholds, ExceptionInfo *exception)
static Quantum ClampToUnsignedQuantum (const Quantum quantum)
MagickExport MagickBooleanType ClampImage (Image *image, ExceptionInfo *exception)
MagickExport ThresholdMapDestroyThresholdMap (ThresholdMap *map)
MagickExport ThresholdMapGetThresholdMap (const char *map_id, ExceptionInfo *exception)
MagickBooleanType ListThresholdMapFile (FILE *file, const char *xml, const char *filename, ExceptionInfo *exception)
MagickExport MagickBooleanType ListThresholdMaps (FILE *file, ExceptionInfo *exception)
MagickExport MagickBooleanType OrderedPosterizeImage (Image *image, const char *threshold_map, ExceptionInfo *exception)
MagickExport MagickBooleanType RandomThresholdImage (Image *image, const char *thresholds, ExceptionInfo *exception)
MagickExport MagickBooleanType WhiteThresholdImage (Image *image, const char *thresholds, ExceptionInfo *exception)

Define Documentation

#define AdaptiveThresholdImageTag   "AdaptiveThreshold/Image"

Referenced by AdaptiveThresholdImage().

#define ClampImageTag   "Clamp/Image"

Referenced by ClampImage().

#define DitherImageTag   "Dither/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ThresholdImageTag   "Threshold/Image"
#define ThresholdsFilename   "thresholds.xml"

Definition at line 92 of file threshold.c.

Referenced by GetThresholdMap(), and ListThresholdMaps().


Function Documentation

static Quantum ClampToUnsignedQuantum ( const Quantum  quantum) [inline, static]

Definition at line 633 of file threshold.c.

References QuantumRange.

Referenced by ClampImage().

MagickExport ThresholdMap* GetThresholdMap ( const char *  map_id,
ExceptionInfo exception 
)
MagickBooleanType ListThresholdMapFile ( FILE *  file,
const char *  xml,
const char *  filename,
ExceptionInfo exception 
)