github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/include/GraphicsMagick/magick/analyze.h (about) 1 /* 2 Copyright (C) 2003 - 2020 GraphicsMagick Group 3 Copyright (C) 2002 ImageMagick Studio 4 5 This program is covered by multiple licenses, which are described in 6 Copyright.txt. You should have received a copy of Copyright.txt with this 7 package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. 8 9 GraphicsMagick Image Analysis Methods. 10 */ 11 #ifndef _MAGICK_ANALYZE_H 12 #define _MAGICK_ANALYZE_H 13 14 #if defined(__cplusplus) || defined(c_plusplus) 15 extern "C" { 16 #endif /* defined(__cplusplus) || defined(c_plusplus) */ 17 18 #include "magick/image.h" 19 20 typedef struct _ImageCharacteristics 21 { 22 MagickBool 23 cmyk, /* CMYK(A) image */ 24 grayscale, /* Grayscale image */ 25 monochrome, /* Black/white image */ 26 opaque, /* Opaque image */ 27 palette; /* Colormapped image */ 28 } ImageCharacteristics; 29 30 /* Functions which return unsigned int to indicate operation pass/fail */ 31 extern MagickExport MagickPassFail 32 GetImageCharacteristics(const Image *image,ImageCharacteristics *characteristics, 33 const MagickBool optimize,ExceptionInfo *exception); 34 35 extern MagickExport unsigned long 36 GetImageDepth(const Image *,ExceptionInfo *); 37 38 extern MagickExport MagickBool 39 IsGrayImage(const Image *image,ExceptionInfo *exception), 40 IsMonochromeImage(const Image *image,ExceptionInfo *exception), 41 IsOpaqueImage(const Image *image,ExceptionInfo *exception); 42 43 extern MagickExport ImageType 44 GetImageType(const Image *,ExceptionInfo *); 45 46 extern MagickExport RectangleInfo 47 GetImageBoundingBox(const Image *,ExceptionInfo *exception); 48 49 #if defined(__cplusplus) || defined(c_plusplus) 50 } 51 #endif /* defined(__cplusplus) || defined(c_plusplus) */ 52 53 #endif /* _MAGICK_ANALYZE_H */ 54 55 /* 56 * Local Variables: 57 * mode: c 58 * c-basic-offset: 2 59 * fill-column: 78 60 * End: 61 */