00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MAGICKCORE_THRESHOLD_H
00019 #define MAGICKCORE_THRESHOLD_H
00020
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024
00025 typedef enum
00026 {
00027 UndefinedThresholdMethod,
00028 KapurThresholdMethod,
00029 OTSUThresholdMethod,
00030 TriangleThresholdMethod
00031 } AutoThresholdMethod;
00032
00033 typedef struct _ThresholdMap
00034 ThresholdMap;
00035
00036 extern MagickExport Image
00037 *AdaptiveThresholdImage(const Image *,const size_t,const size_t,const ssize_t,
00038 ExceptionInfo *);
00039
00040 extern MagickExport ThresholdMap
00041 *DestroyThresholdMap(ThresholdMap *),
00042 *GetThresholdMap(const char *,ExceptionInfo *);
00043
00044 extern MagickExport MagickBooleanType
00045 AutoThresholdImage(Image *,const AutoThresholdMethod,ExceptionInfo *),
00046 BilevelImage(Image *,const double),
00047 BilevelImageChannel(Image *,const ChannelType,const double),
00048 BlackThresholdImage(Image *,const char *),
00049 BlackThresholdImageChannel(Image *,const ChannelType,const char *,
00050 ExceptionInfo *),
00051 ClampImage(Image *),
00052 ClampImageChannel(Image *,const ChannelType),
00053 ListThresholdMaps(FILE *,ExceptionInfo *),
00054 OrderedDitherImage(Image *),
00055 OrderedDitherImageChannel(Image *,const ChannelType,ExceptionInfo *),
00056 OrderedPosterizeImage(Image *,const char *,ExceptionInfo *),
00057 OrderedPosterizeImageChannel(Image *,const ChannelType,const char *,
00058 ExceptionInfo *),
00059 PerceptibleImage(Image *,const double),
00060 PerceptibleImageChannel(Image *,const ChannelType,const double),
00061 RandomThresholdImage(Image *,const char *,ExceptionInfo *),
00062 RandomThresholdImageChannel(Image *,const ChannelType,const char *,
00063 ExceptionInfo *),
00064 WhiteThresholdImage(Image *,const char *),
00065 WhiteThresholdImageChannel(Image *,const ChannelType,const char *,
00066 ExceptionInfo *);
00067
00068 #if defined(__cplusplus) || defined(c_plusplus)
00069 }
00070 #endif
00071
00072 #endif