threshold.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore image threshold methods.
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 *),  /* deprecated */
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

Generated on 29 Oct 2019 for MagickCore by  doxygen 1.6.1