#ifndef _MAGICKCORE_PIXEL_ACCESSOR_H
#define _MAGICKCORE_PIXEL_ACCESSOR_H
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-#include <math.h>
#include "MagickCore/cache.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/color.h"
#include "MagickCore/gem.h"
#include "MagickCore/image.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#undef index
static inline Quantum GetPixela(const Image *restrict image,
{
if (pixel_info->colorspace == GRAYColorspace)
return(pixel_info->red);
- return(0.212656*pixel_info->red+0.715158*pixel_info->green+0.072186*pixel_info->blue);
+ return(0.212656*pixel_info->red+0.715158*pixel_info->green+0.072186*
+ pixel_info->blue);
}
static inline MagickRealType GetPixelInfoLuma(const PixelInfo *restrict pixel)