X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;ds=sidebyside;f=www%2Fapi%2Ffeature.html;h=3e9018c77c46c9a8984b232ad6f51dce6b60e4c1;hb=19217ac124030092ceaf046ee993d39df4f79292;hp=b940f0c4bba3927c8d6c0d610ee09de870726197;hpb=7f3f7323d2c971c19775d194f3d6e8359377c52f;p=imagemagick diff --git a/www/api/feature.html b/www/api/feature.html index b940f0c4b..3e9018c77 100644 --- a/www/api/feature.html +++ b/www/api/feature.html @@ -1,15 +1,19 @@ - - + + - ImageMagick: MagickCore, C API for ImageMagick: Image Features + ImageMagick: MagickCore, C API for ImageMagick: Image Features - + @@ -19,29 +23,52 @@ - + - + + + + + +
- - [ImageMagick] - - [sponsor] +
+ + +
- + ImageMagick Logo -
@@ -60,6 +87,9 @@
Mac OS X
+
+ iPhone +
Windows
@@ -89,7 +119,7 @@ PerlMagick
- Magick++ + Magick++
- Links + Links
- - +
+

Module feature Methods

-

GetImageChannelFeatures

+

GetImageChannelFeatures

GetImageChannelFeatures() returns features for each channel in the image in each of four directions (horizontal, vertical, left and right diagonals) for the specified distance. The features include the angular second moment, contrast, correlation, sum of squares: variance, inverse difference moment, sum average, sum varience, sum entropy, entropy, difference variance, difference entropy, information measures of correlation 1, information measures of correlation 2, and maximum correlation coefficient. You can access the red channel contrast, for example, like this:

-  channel_features=GetImageChannelFeatures(image,1,excepton);
+  channel_features=GetImageChannelFeatures(image,1,exception);
   contrast=channel_features[RedChannel].contrast[0];
 
-

Use MagickRelinquishMemory() to free the features buffer.

+

Use MagickRelinquishMemory() to free the features buffer.

The format of the GetImageChannelFeatures method is:

@@ -192,16 +218,16 @@ _8c.html" target="source" name="GetImageChannelFeatures">GetImageChannelFeatures const size_t distance,ExceptionInfo *exception) -

A description of each parameter follows:

+

A description of each parameter follows:

image
-

    the image.

+

the image.

distance
-

    the distance.

+

the distance.

exception
-

    return any errors or warnings in this structure.

+

return any errors or warnings in this structure.

@@ -216,7 +242,7 @@ _8c.html" target="source" name="GetImageChannelFeatures">GetImageChannelFeatures