From 85c2caba61cfb4a867ffeeefce492bb2400a2d57 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 11 May 2014 01:01:02 +0200 Subject: Update the headers for ImageMagick 6.8.9. --- dmagick/c/statistic.d | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'dmagick/c/statistic.d') diff --git a/dmagick/c/statistic.d b/dmagick/c/statistic.d index 6577ab5..485a152 100644 --- a/dmagick/c/statistic.d +++ b/dmagick/c/statistic.d @@ -1,5 +1,6 @@ module dmagick.c.statistic; +import dmagick.c.draw; import dmagick.c.exception; import dmagick.c.image; import dmagick.c.magickType; @@ -39,6 +40,31 @@ extern(C) } } + static if ( MagickLibVersion >= 0x689 ) + { + struct ChannelMoments + { + double[32] + I; + + PointInfo + centroid, + ellipse_axis; + + double + ellipse_angle, + ellipse_eccentricity, + ellipse_intensity; + } + + struct ChannelPerceptualHash + { + double[32] + P, + Q; + } + } + /** * Alter channel pixels by evaluating an arithmetic, relational, * or logical expression. @@ -146,6 +172,13 @@ extern(C) ChannelStatistics* GetImageChannelStatistics(const(Image)*, ExceptionInfo*); + static if ( MagickLibVersion >= 0x689 ) + { + ChannelMoments* GetImageChannelMoments(const(Image)*, ExceptionInfo*); + + ChannelPerceptualHash* GetImageChannelPerceptualHash(const(Image)*, ExceptionInfo*); + } + static if ( MagickLibVersion < 0x661 ) { Image* AverageImages(const(Image)*, ExceptionInfo*); @@ -177,7 +210,7 @@ extern(C) MagickBooleanType GetImageChannelKurtosis(const(Image)*, const ChannelType, double*, double*, ExceptionInfo*); MagickBooleanType GetImageChannelRange(const(Image)*, const ChannelType, double*, double*, ExceptionInfo*); MagickBooleanType GetImageExtrema(const(Image)*, size_t*, size_t*, ExceptionInfo*); - MagickBooleanType GetImageRange(const(Image)*, double*, double*, ExceptionInfo*); MagickBooleanType GetImageMean(const(Image)*, double*, double*, ExceptionInfo*); MagickBooleanType GetImageKurtosis(const(Image)*, double*, double*, ExceptionInfo*); + MagickBooleanType GetImageRange(const(Image)*, double*, double*, ExceptionInfo*); } -- cgit v1.2.3