github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/include/GraphicsMagick/magick/statistics.h (about) 1 /* 2 Copyright (C) 2003 - 2009 GraphicsMagick Group 3 Copyright (C) 2002 ImageMagick Studio 4 Copyright 1991-1999 E. I. du Pont de Nemours and Company 5 6 This program is covered by multiple licenses, which are described in 7 Copyright.txt. You should have received a copy of Copyright.txt with this 8 package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. 9 10 GraphicsMagick Image Statistics Methods. 11 */ 12 #ifndef _MAGICK_STATISTICS_H 13 #define _MAGICK_STATISTICS_H 14 15 #if defined(__cplusplus) || defined(c_plusplus) 16 extern "C" { 17 #endif 18 19 /* 20 Include declarations. 21 */ 22 #include "magick/image.h" 23 #include "magick/error.h" 24 25 typedef struct _ImageChannelStatistics 26 { 27 /* Minimum value observed */ 28 double maximum; 29 /* Maximum value observed */ 30 double minimum; 31 /* Average (mean) value observed */ 32 double mean; 33 /* Standard deviation, sqrt(variance) */ 34 double standard_deviation; 35 /* Variance */ 36 double variance; 37 } ImageChannelStatistics; 38 39 typedef struct _ImageStatistics 40 { 41 ImageChannelStatistics red; 42 ImageChannelStatistics green; 43 ImageChannelStatistics blue; 44 ImageChannelStatistics opacity; 45 } ImageStatistics; 46 47 extern MagickExport MagickPassFail 48 GetImageStatistics(const Image *image,ImageStatistics *statistics, 49 ExceptionInfo *exception); 50 51 #if defined(__cplusplus) || defined(c_plusplus) 52 } 53 #endif 54 55 #endif /* _MAGICK_STATISTICS_H */ 56 57 /* 58 * Local Variables: 59 * mode: c 60 * c-basic-offset: 2 61 * fill-column: 78 62 * End: 63 */