101 assert(image != (
Image *) NULL);
108 "ColorSeparatedImageRequired",
"`%s'",image->
filename);
112 total_ink_density=0.0;
114 #if defined(MAGICKCORE_OPENMP_SUPPORT) 115 #pragma omp parallel for schedule(static) shared(status) \ 116 magick_number_threads(image,image,image->rows,1) 118 for (y=0; y < (ssize_t) image->
rows; y++)
130 if (p == (
const Quantum *) NULL)
135 for (x=0; x < (ssize_t) image->
columns; x++)
139 if (density > total_ink_density)
140 #if defined(MAGICKCORE_OPENMP_SUPPORT) 141 #pragma omp critical (MagickCore_GetImageTotalInkDensity) 144 if (density > total_ink_density)
145 total_ink_density=density;
152 total_ink_density=0.0;
153 return(total_ink_density);
MagickExport CacheView * DestroyCacheView(CacheView *cache_view)
MagickExport double GetImageTotalInkDensity(Image *image, ExceptionInfo *exception)
static Quantum GetPixelRed(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
MagickExport const Quantum * GetCacheViewVirtualPixels(const CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
#define MagickCoreSignature
static Quantum GetPixelGreen(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
MagickExport MagickBooleanType IsEventLogging(void)
static Quantum GetPixelBlack(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
MagickExport MagickBooleanType ThrowMagickException(ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *tag, const char *format,...)
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
static size_t GetPixelChannels(const Image *magick_restrict image)
char filename[MagickPathExtent]
#define GetMagickModule()
MagickExport CacheView * AcquireVirtualCacheView(const Image *image, ExceptionInfo *exception)
static Quantum GetPixelBlue(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
ColorspaceType colorspace