histogram.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 histogram methods.
  13. */
  14. #ifndef MAGICKCORE_HISTOGRAM_H
  15. #define MAGICKCORE_HISTOGRAM_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef struct _ColorPacket
  20. {
  21. PixelPacket
  22. pixel;
  23. IndexPacket
  24. index;
  25. MagickSizeType
  26. count;
  27. } ColorPacket;
  28. extern MagickExport ColorPacket
  29. *GetImageHistogram(const Image *,size_t *,ExceptionInfo *);
  30. extern MagickExport Image
  31. *UniqueImageColors(const Image *,ExceptionInfo *);
  32. extern MagickExport MagickBooleanType
  33. IdentifyPaletteImage(const Image *,ExceptionInfo *),
  34. IsHistogramImage(const Image *,ExceptionInfo *),
  35. IsPaletteImage(const Image *,ExceptionInfo *),
  36. MinMaxStretchImage(Image *,const ChannelType,const double,const double);
  37. extern MagickExport size_t
  38. GetNumberColors(const Image *,FILE *,ExceptionInfo *);
  39. #if defined(__cplusplus) || defined(c_plusplus)
  40. }
  41. #endif
  42. #endif