| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.3"/> |
| <title>MagickWand: compare.c File Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| $(window).load(resizeHeight); |
| </script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname">MagickWand |
|  <span id="projectnumber">6.8.3</span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.3 --> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| $(document).ready(function(){initNavTree('compare_8c.html','');}); |
| </script> |
| <div id="doc-content"> |
| <div class="header"> |
| <div class="summary"> |
| <a href="compare_8c.html#define-members">Macros</a> | |
| <a href="compare_8c.html#func-members">Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">compare.c File Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <div class="textblock"><code>#include "<a class="el" href="studio_8h_source.html">MagickWand/studio.h</a>"</code><br/> |
| <code>#include "<a class="el" href="MagickWand_8h_source.html">MagickWand/MagickWand.h</a>"</code><br/> |
| <code>#include "<a class="el" href="mogrify-private_8h_source.html">MagickWand/mogrify-private.h</a>"</code><br/> |
| <code>#include "MagickCore/string-private.h"</code><br/> |
| </div><div class="textblock"><div class="dynheader"> |
| Include dependency graph for compare.c:</div> |
| <div class="dyncontent"> |
| <div class="center"><img src="compare_8c__incl.png" border="0" usemap="#compare_8c" alt=""/></div> |
| <map name="compare_8c" id="compare_8c"> |
| <area shape="rect" id="node3" href="studio_8h.html" title="MagickWand/studio.h" alt="" coords="4168,88,4323,115"/><area shape="rect" id="node41" href="MagickWand_8h.html" title="MagickWand/MagickWand.h" alt="" coords="3003,171,3197,197"/><area shape="rect" id="node101" href="mogrify-private_8h.html" title="MagickWand/mogrify\l-private.h" alt="" coords="4347,81,4499,122"/><area shape="rect" id="node29" href="method-attribute_8h.html" title="MagickWand/method-attribute.h" alt="" coords="4424,253,4651,280"/><area shape="rect" id="node53" href="animate_8h.html" title="MagickWand/animate.h" alt="" coords="2518,253,2687,280"/><area shape="rect" id="node55" href="compare_8h.html" title="MagickWand/compare.h" alt="" coords="2712,253,2885,280"/><area shape="rect" id="node57" href="composite_8h.html" title="MagickWand/composite.h" alt="" coords="2910,253,3092,280"/><area shape="rect" id="node59" href="conjure_8h.html" title="MagickWand/conjure.h" alt="" coords="3117,253,3280,280"/><area shape="rect" id="node61" href="convert_8h.html" title="MagickWand/convert.h" alt="" coords="3305,253,3468,280"/><area shape="rect" id="node63" href="deprecate_8h.html" title="MagickWand/deprecate.h" alt="" coords="3493,253,3675,280"/><area shape="rect" id="node65" href="display_8h.html" title="MagickWand/display.h" alt="" coords="3699,253,3857,280"/><area shape="rect" id="node67" href="drawing-wand_8h.html" title="MagickWand/drawing\l-wand.h" alt="" coords="3934,246,4087,287"/><area shape="rect" id="node69" href="pixel-wand_8h.html" title="MagickWand/pixel-wand.h" alt="" coords="3919,336,4101,363"/><area shape="rect" id="node71" href="identify_8h.html" title="MagickWand/identify.h" alt="" coords="5,253,165,280"/><area shape="rect" id="node73" href="import_8h.html" title="MagickWand/import.h" alt="" coords="190,253,348,280"/><area shape="rect" id="node75" href="wandcli_8h.html" title="MagickWand/wandcli.h" alt="" coords="373,253,536,280"/><area shape="rect" id="node77" href="operation_8h.html" title="MagickWand/operation.h" alt="" coords="561,253,737,280"/><area shape="rect" id="node79" href="magick-cli_8h.html" title="MagickWand/magick-cli.h" alt="" coords="762,253,941,280"/><area shape="rect" id="node81" href="magick-property_8h.html" title="MagickWand/magick-property.h" alt="" coords="967,253,1185,280"/><area shape="rect" id="node83" href="magick-image_8h.html" title="MagickWand/magick-image.h" alt="" coords="1210,253,1416,280"/><area shape="rect" id="node85" href="mogrify_8h.html" title="MagickWand/mogrify.h" alt="" coords="1441,253,1604,280"/><area shape="rect" id="node87" href="montage_8h.html" title="MagickWand/montage.h" alt="" coords="1629,253,1803,280"/><area shape="rect" id="node89" href="pixel-iterator_8h.html" title="MagickWand/pixel-iterator.h" alt="" coords="4111,253,4307,280"/><area shape="rect" id="node94" href="stream_8h.html" title="MagickWand/stream.h" alt="" coords="1827,253,1988,280"/><area shape="rect" id="node96" href="wand-view_8h.html" title="MagickWand/wand-view.h" alt="" coords="2013,253,2192,280"/></map> |
| </div> |
| </div> |
| <p><a href="compare_8c_source.html">Go to the source code of this file.</a></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| Macros</h2></td></tr> |
| <tr class="memitem:a419105e74b0250da959589d102f986fd"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="compare_8c.html#a419105e74b0250da959589d102f986fd">DefaultDissimilarityThreshold</a>   0.31830988618379067154</td></tr> |
| <tr class="separator:a419105e74b0250da959589d102f986fd"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af93582c3cd0ace4f6135c243e50da769"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="compare_8c.html#af93582c3cd0ace4f6135c243e50da769">DestroyCompare</a>()</td></tr> |
| <tr class="separator:af93582c3cd0ace4f6135c243e50da769"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa035bf94095c7f59a7b41fdb719ca98f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="compare_8c.html#aa035bf94095c7f59a7b41fdb719ca98f">ThrowCompareException</a>(asperity, tag, option)</td></tr> |
| <tr class="separator:aa035bf94095c7f59a7b41fdb719ca98f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5d3a25332e3aeedc7017e7e148a3535c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="compare_8c.html#a5d3a25332e3aeedc7017e7e148a3535c">ThrowCompareInvalidArgumentException</a>(option, argument)</td></tr> |
| <tr class="separator:a5d3a25332e3aeedc7017e7e148a3535c"><td class="memSeparator" colspan="2"> </td></tr> |
| </table><table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| Functions</h2></td></tr> |
| <tr class="memitem:a48ab4cf951141598c680478491100a43"><td class="memItemLeft" align="right" valign="top">static MagickBooleanType </td><td class="memItemRight" valign="bottom"><a class="el" href="compare_8c.html#a48ab4cf951141598c680478491100a43">CompareUsage</a> (void)</td></tr> |
| <tr class="separator:a48ab4cf951141598c680478491100a43"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ade165b77fa877d3805c40d3e1bb23d78"><td class="memItemLeft" align="right" valign="top"><a class="el" href="MagickWand_8h.html#a5df04fd878d67c5bf03155443d549b23">WandExport</a> MagickBooleanType </td><td class="memItemRight" valign="bottom"><a class="el" href="compare_8c.html#ade165b77fa877d3805c40d3e1bb23d78">CompareImagesCommand</a> (ImageInfo *image_info, int argc, char **argv, char **metadata, ExceptionInfo *exception)</td></tr> |
| <tr class="separator:ade165b77fa877d3805c40d3e1bb23d78"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <h2 class="groupheader">Macro Definition Documentation</h2> |
| <a class="anchor" id="a419105e74b0250da959589d102f986fd"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define DefaultDissimilarityThreshold   0.31830988618379067154</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Referenced by <a class="el" href="compare_8c_source.html#l00172">CompareImagesCommand()</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="af93582c3cd0ace4f6135c243e50da769"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define DestroyCompare</td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <b>Value:</b><div class="fragment"><div class="line">{ \</div> |
| <div class="line"> if (similarity_image != (Image *) NULL) \</div> |
| <div class="line"> similarity_image=DestroyImageList(similarity_image); \</div> |
| <div class="line"> if (difference_image != (Image *) NULL) \</div> |
| <div class="line"> difference_image=DestroyImageList(difference_image); \</div> |
| <div class="line"> DestroyImageStack(); \</div> |
| <div class="line"> for (i=0; i < (ssize_t) argc; i++) \</div> |
| <div class="line"> argv[i]=DestroyString(argv[i]); \</div> |
| <div class="line"> argv=(<span class="keywordtype">char</span> **) RelinquishMagickMemory(argv); \</div> |
| <div class="line">}</div> |
| </div><!-- fragment --> |
| <p>Referenced by <a class="el" href="compare_8c_source.html#l00172">CompareImagesCommand()</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aa035bf94095c7f59a7b41fdb719ca98f"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define ThrowCompareException</td> |
| <td>(</td> |
| <td class="paramtype"> </td> |
| <td class="paramname">asperity, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"> </td> |
| <td class="paramname">tag, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"> </td> |
| <td class="paramname">option </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <b>Value:</b><div class="fragment"><div class="line">{ \</div> |
| <div class="line"> if (exception->severity < (asperity)) \</div> |
| <div class="line"> (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag, \</div> |
| <div class="line"> <span class="stringliteral">"`%s'"</span>,option); \</div> |
| <div class="line"> DestroyCompare(); \</div> |
| <div class="line"> return(MagickFalse); \</div> |
| <div class="line">}</div> |
| </div><!-- fragment --> |
| <p>Referenced by <a class="el" href="compare_8c_source.html#l00172">CompareImagesCommand()</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a5d3a25332e3aeedc7017e7e148a3535c"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">#define ThrowCompareInvalidArgumentException</td> |
| <td>(</td> |
| <td class="paramtype"> </td> |
| <td class="paramname">option, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"> </td> |
| <td class="paramname">argument </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <b>Value:</b><div class="fragment"><div class="line">{ \</div> |
| <div class="line"> (void) ThrowMagickException(exception,GetMagickModule(),OptionError, \</div> |
| <div class="line"> <span class="stringliteral">"InvalidArgument"</span>,<span class="stringliteral">"'%s': %s"</span>,option,argument); \</div> |
| <div class="line"> DestroyCompare(); \</div> |
| <div class="line"> return(MagickFalse); \</div> |
| <div class="line">}</div> |
| </div><!-- fragment --> |
| <p>Referenced by <a class="el" href="compare_8c_source.html#l00172">CompareImagesCommand()</a>.</p> |
| |
| </div> |
| </div> |
| <h2 class="groupheader">Function Documentation</h2> |
| <a class="anchor" id="ade165b77fa877d3805c40d3e1bb23d78"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname"><a class="el" href="MagickWand_8h.html#a5df04fd878d67c5bf03155443d549b23">WandExport</a> MagickBooleanType CompareImagesCommand </td> |
| <td>(</td> |
| <td class="paramtype">ImageInfo * </td> |
| <td class="paramname"><em>image_info</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">int </td> |
| <td class="paramname"><em>argc</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">char ** </td> |
| <td class="paramname"><em>argv</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">char ** </td> |
| <td class="paramname"><em>metadata</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">ExceptionInfo * </td> |
| <td class="paramname"><em>exception</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Definition at line <a class="el" href="compare_8c_source.html#l00172">172</a> of file <a class="el" href="compare_8c_source.html">compare.c</a>.</p> |
| |
| <p>References <a class="el" href="mogrify-private_8h_source.html#l00025">AppendImageStack</a>, <a class="el" href="compare_8c_source.html#l00083">CompareUsage()</a>, <a class="el" href="compare_8c.html#a419105e74b0250da959589d102f986fd">DefaultDissimilarityThreshold</a>, <a class="el" href="compare_8c.html#af93582c3cd0ace4f6135c243e50da769">DestroyCompare</a>, <a class="el" href="mogrify-private_8h_source.html#l00039">FinalizeImageSettings</a>, <a class="el" href="mogrify-private_8h_source.html#l00045">FireImageStack</a>, <a class="el" href="mogrify-private_8h_source.html#l00063">MaxImageStackDepth</a>, <a class="el" href="method-attribute_8h_source.html#l00101">MaxTextExtent</a>, <a class="el" href="mogrify_8c_source.html#l06128">MogrifyImageInfo()</a>, <a class="el" href="mogrify-private_8h_source.html#l00064">NewImageStack</a>, <a class="el" href="mogrify-private_8h_source.html#l00079">PopImageStack</a>, <a class="el" href="mogrify-private_8h_source.html#l00071">PushImageStack</a>, <a class="el" href="studio_8h_source.html#l00264">ReadCommandlLine</a>, <a class="el" href="compare_8c.html#aa035bf94095c7f59a7b41fdb719ca98f">ThrowCompareException</a>, and <a class="el" href="compare_8c.html#a5d3a25332e3aeedc7017e7e148a3535c">ThrowCompareInvalidArgumentException</a>.</p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a48ab4cf951141598c680478491100a43"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="mlabels"> |
| <tr> |
| <td class="mlabels-left"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">static MagickBooleanType CompareUsage </td> |
| <td>(</td> |
| <td class="paramtype">void </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </td> |
| <td class="mlabels-right"> |
| <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>Definition at line <a class="el" href="compare_8c_source.html#l00083">83</a> of file <a class="el" href="compare_8c_source.html">compare.c</a>.</p> |
| |
| <p>Referenced by <a class="el" href="compare_8c_source.html#l00172">CompareImagesCommand()</a>.</p> |
| |
| </div> |
| </div> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="dir_68918867e77b0a45f29c43673f2273f8.html">cristy</a></li><li class="navelem"><a class="el" href="dir_ed73005e52fb9d11ccda84631fe63a06.html">ImageMagick</a></li><li class="navelem"><a class="el" href="dir_95a66e94b416f0a122e65928fcf2737e.html">ImageMagick</a></li><li class="navelem"><a class="el" href="dir_1d0249a69ac440f037d84603f69735a0.html">MagickWand</a></li><li class="navelem"><a class="el" href="compare_8c.html">compare.c</a></li> |
| <li class="footer">Generated by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |