1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html version="-//W3C//DTD XHTML 1.1//EN"
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
9 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
10 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"/>
11 <title>ImageMagick: MagickCore, C API for ImageMagick: Image Features</title>
12 <meta http-equiv="content-language" content="en-US"/>
13 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="application-name" content="ImageMagick"/>
16 <meta name="description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition, resize, rotate, shear, distort or transform images automagically."/>
17 <meta name="application-url" content="http://www.imagemagick.org"/>
18 <meta name="generator" content="PHP"/>
19 <meta name="keywords" content="magickcore, c, api, for, imagemagick:, image, features, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"/>
20 <meta name="rating" content="GENERAL"/>
21 <meta name="robots" content="INDEX, FOLLOW"/>
22 <meta name="generator" content="ImageMagick Studio LLC"/>
23 <meta name="author" content="ImageMagick Studio LLC"/>
24 <meta name="revisit-after" content="2 DAYS"/>
25 <meta name="resource-type" content="document"/>
26 <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
27 <meta name="distribution" content="Global"/>
28 <link rel="icon" href="../../images/wand.png"/>
29 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
30 <link rel="canonical" href="http://www.imagemagick.org" />
31 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
33 <!-- Add jQuery library -->
34 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
36 <!-- Add mousewheel plugin (this is optional) -->
37 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
40 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
41 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/jquery.fancybox.pack.js?v=2.0.6"></script>
43 <!-- Optionally add helpers - button, thumbnail and/or media -->
44 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.2" type="text/css" media="screen" />
45 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.2"></script>
46 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script>
48 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=2.0.6" type="text/css" media="screen" />
49 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.6"></script>
51 <script type="text/javascript">
52 $(document).ready(function() {
53 $(".fancybox").fancybox();
57 <!-- ImageMagick style -->
58 <style type="text/css" media="all">
59 @import url("../../www/magick.css");
63 <body id="www-imagemagick-org">
66 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
67 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
68 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
69 })(window,document,'offline-script','//127.0.0.1/analytics.js','ga');
71 ga('create', 'UA-40133312-1', 'imagemagick.org');
72 ga('send', 'pageview');
75 <div class="titlebar">
76 <div style="margin: 17px auto; float: left;">
77 <script type="text/javascript">
79 google_ad_client = "pub-3129977114552745";
80 google_ad_slot = "5439289906";
81 google_ad_width = 728;
82 google_ad_height = 90;
85 <script type="text/javascript"
86 src="http://127.0.0.1/pagead/show_ads.js">
89 <a href="http://www.imagemagick.org/discourse-server/">
90 <img src="../../images/logo.jpg"
91 alt="ImageMagick Logo"
92 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
93 <a href="../../index.html">
94 <img src="../../images/sprite.jpg"
95 alt="ImageMagick Sprite"
96 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
102 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
105 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
108 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
111 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
114 <a title="Binary Release: iOS" href="../../www/binary-releases.html#iOS">iOS</a>
117 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
119 <div class="sep"></div>
121 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
124 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
127 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
130 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
133 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
136 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
139 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
142 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
145 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
147 <div class="sep"></div>
149 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
152 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
155 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
158 <a title="Resources" href="../../www/resources.html">Resources</a>
161 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
164 <a title="Download" href="../../www/download.html">Download</a>
166 <div class="sep"></div>
168 <a title="Search" href="http://www.imagemagick.org/script/search.php">Search</a>
170 <div class="sep"></div>
172 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
175 <a title="Site Map: Links" href="../../www/links.html">Links</a>
177 <div class="sep"></div>
179 <a title="Support ImageMagick Development" href="../../www/support.html">Support ImageMagick Development</a>
183 <div class="eastbar">
184 <script type="text/javascript">
187 var po = document.createElement('offline-script'), t = document.getElementsByTagName('offline-script')[0];
188 po.type = 'text/javascript';
190 po.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
191 var script = document.getElementsByTagName('offline-script')[0];
192 script.parentNode.insertBefore(po, script);
196 <div> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.imagemagick.org/"></a></div>
198 <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank">
199 <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" width="93" height="20" border="0" /></a>
201 <div class="g-plusone" id="gplusone"></div>
202 <script type="text/javascript">
209 var po = document.createElement('offline-script');
210 po.type = 'text/javascript';
212 po.src = 'https://127.0.0.1/js/plusone.js';
213 var script = document.getElementsByTagName('offline-script')[0];
214 script.parentNode.insertBefore(po, script);
216 var gplusone = document.getElementById("gplusone");
217 gplusone.setAttribute("data-size","medium");
218 gplusone.setAttribute("data-count","true");
225 <h1>Module feature Methods</h1>
226 <p class="navigation-index">[<a href="feature.html#GetImageChannelFeatures">GetImageChannelFeatures</a>]</p>
228 <h2><a href="http://www.imagemagick.org/api/MagickCore/feature_8c.html" id="GetImageChannelFeatures">GetImageChannelFeatures</a></h2>
229 <div class="doc-section">
231 <p>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:</p>
234 channel_features=GetImageChannelFeatures(image,1,exception);
235 contrast=channel_features[RedChannel].contrast[0];
238 <p>Use MagickRelinquishMemory() to free the features buffer.</p>
240 <p>The format of the GetImageChannelFeatures method is:</p>
243 ChannelFeatures *GetImageChannelFeatures(const Image *image,
244 const size_t distance,ExceptionInfo *exception)
247 <p>A description of each parameter follows:</p>
256 <p>return any errors or warnings in this structure.</p>
263 <span id="linkbar-west"> </span>
265 <span id="linkbar-center">
266 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
267 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a> •
268 <a href="http://jqmagick.imagemagick.org/">JqMagick</a>
270 <span id="linkbar-east"> </span>
273 <span id="footer-west">© 1999-2013 ImageMagick Studio LLC</span>
274 <span id="footer-east"> <a href="../../www/contact.html">Contact the Wizards</a></span>
276 <div style="clear: both; margin: 0; width: 100%; "></div>