threshold.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickCore image threshold methods.
  13. */
  14. #ifndef MAGICKCORE_THRESHOLD_H
  15. #define MAGICKCORE_THRESHOLD_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef enum
  20. {
  21. UndefinedThresholdMethod,
  22. KapurThresholdMethod,
  23. OTSUThresholdMethod,
  24. TriangleThresholdMethod
  25. } AutoThresholdMethod;
  26. typedef struct _ThresholdMap
  27. ThresholdMap;
  28. extern MagickExport Image
  29. *AdaptiveThresholdImage(const Image *,const size_t,const size_t,const ssize_t,
  30. ExceptionInfo *);
  31. extern MagickExport ThresholdMap
  32. *DestroyThresholdMap(ThresholdMap *),
  33. *GetThresholdMap(const char *,ExceptionInfo *);
  34. extern MagickExport MagickBooleanType
  35. AutoThresholdImage(Image *,const AutoThresholdMethod,ExceptionInfo *),
  36. BilevelImage(Image *,const double),
  37. BilevelImageChannel(Image *,const ChannelType,const double),
  38. BlackThresholdImage(Image *,const char *),
  39. BlackThresholdImageChannel(Image *,const ChannelType,const char *,
  40. ExceptionInfo *),
  41. ClampImage(Image *),
  42. ClampImageChannel(Image *,const ChannelType),
  43. ListThresholdMaps(FILE *,ExceptionInfo *),
  44. OrderedDitherImage(Image *), /* deprecated */
  45. OrderedDitherImageChannel(Image *,const ChannelType,ExceptionInfo *),
  46. OrderedPosterizeImage(Image *,const char *,ExceptionInfo *),
  47. OrderedPosterizeImageChannel(Image *,const ChannelType,const char *,
  48. ExceptionInfo *),
  49. PerceptibleImage(Image *,const double),
  50. PerceptibleImageChannel(Image *,const ChannelType,const double),
  51. RandomThresholdImage(Image *,const char *,ExceptionInfo *),
  52. RandomThresholdImageChannel(Image *,const ChannelType,const char *,
  53. ExceptionInfo *),
  54. WhiteThresholdImage(Image *,const char *),
  55. WhiteThresholdImageChannel(Image *,const ChannelType,const char *,
  56. ExceptionInfo *);
  57. #if defined(__cplusplus) || defined(c_plusplus)
  58. }
  59. #endif
  60. #endif