diff options
Diffstat (limited to 'dmagick/c/statistic.d')
| -rw-r--r-- | dmagick/c/statistic.d | 35 |
1 files changed, 34 insertions, 1 deletions
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*); } |
