?? namespacecimg__library_1_1cimg.html
字號:
?
+
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>The CImg Library - C++ Template Image Processing Library</title> <meta content="David Tschumperle" name="author"> <link rel="shortcut icon" type="image/x-icon" href="http://cimg.sourceforge.net/favicon.ico" /> <link rel="icon" type="image/png" href="favicon.png" /> <style type="text/css" media=screen> <!-- a:active{text-decoration:none; color:#303090} a:link{text-decoration:none; color:#303090} a:visited{text-decoration:none; color:#303090} a:hover{text-decoration:none; color:#4E9F71} --> </style> </head> <body bgcolor="#ffffff" fgcolor="#000000" alink="#ff0000" link="#0000ee" vlink="#551a8b"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="1024"> <tbody> <tr> <td> <hr noshade="noshade" size="1" width="100%"> <center> <a href="http://cimg.sourceforge.net"><img src="../img/CImgLogo2.jpg" border="0"><img src="../img/CImgLogo.jpg" border="0"></a><br> <table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top; text-align: right;"><font face="Arial,Helvetica"><big> <b>C++ Template Image Processing Library.</b></big></font></td> <td style="vertical-align: top; text-align: right;"> <a href="http://www.cnrs.fr/"><img src="../img/logoCNRS.gif" border="0"></a> <a href="http://www.greyc.ensicaen.fr/EquipeImage/"><img src="../img/logoGREYC.gif" border="0"></a> <a href="http://www-sop.inria.fr"><img src="../img/logoINRIA.gif" border="0"></a> </td> </tr> </tbody> </table> </center> <hr noshade="noshade" size="1" width="100%"> <center> <table style="width: 100%; text-align: left; margin-left: auto; margin-right: auto; background-color: rgb(238, 238, 255);" border="0" cellpadding="3" cellspacing="0"> <tbody> <tr> <td style="text-align: center; vertical-align: top;"> <font face="Arial,Helvetica" color="#FFFFFF" size="-1"> <b>[</b> <a target="_parent" href="../index.shtml">Introduction</a> <b>]</b>-<b>[</b> <a target="_parent" href="../news.shtml">News</a> <b>]</b>-<b>[</b> <a target="_parent" href="../download.shtml">Download</a> <b>]</b>-<b>[</b> <a target="_parent" href="../screenshots.shtml">Screenshots</a> <b>]</b>-<b>[</b> <a target="_parent" href="../reference/group__cimg__faq.html">FAQ</a> <b>]</b>-<b>[</b> <a target="_parent" href="../reference/group__cimg__tutorial.html">Tutorial</a> <b>]</b>-<b>[</b> <a target="_parent" href="../links.shtml">Links</a> <b>]</b>-<b>[</b> <a target="_parent" href="http://sourceforge.net/forum/forum.php?forum_id=334630">Forums-Eng</a> <b>]</b>-<b>[</b> <a target="_parent" href="http://sourceforge.net/forum/forum.php?forum_id=421080">Forums-Fr</a> <b>]</b>-<b>[</b> <a target="_parent" href="../reference/index.html">Reference</a> <b>]</b>-<b>[</b> <a target="_parent" href="http://sourceforge.net/projects/cimg/">SourceForge Repository</a> <b>]</b> </font></td> </tr> </tbody> </table> </center> <hr noshade="noshade" size="1" width="100%"> <noscript> </noscript> </td> </tr> </tbody> </table> </body></html><!-- Generated by Doxygen 1.5.1 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li id="current"><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="namespaces.html"><span>Namespace List</span></a></li> <li><a href="namespacemembers.html"><span>Namespace Members</span></a></li> </ul></div><div class="nav"><a class="el" href="namespacecimg__library.html">cimg_library</a>::<a class="el" href="namespacecimg__library_1_1cimg.html">cimg</a></div><h1>cimg_library::cimg Namespace Reference</h1>Namespace that encompasses <em>low-level</em> functions and variables of the CImg Library. <a href="#_details">More...</a><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#c1b66fe77173de9e5e8542b2823d6071">info</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Print informations about CImg environement variables. <a href="#c1b66fe77173de9e5e8542b2823d6071"></a><br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="e32e5c9ee2b8749bd8216bf75054afa1"></a><!-- doxytag: member="cimg_library::cimg::marching_cubes" ref="e32e5c9ee2b8749bd8216bf75054afa1" args="(const tfunc &func, const float isovalue, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const float resx, const float resy, const float resz, CImgList< tp > &points, CImgList< tf > &primitives, const bool invert_faces)" -->template<typename tfunc, typename tp, typename tf> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#e32e5c9ee2b8749bd8216bf75054afa1">marching_cubes</a> (const tfunc &func, const float isovalue, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const float resx, const float resy, const float resz, <a class="el" href="structcimg__library_1_1_c_img_list.html">CImgList</a>< tp > &points, <a class="el" href="structcimg__library_1_1_c_img_list.html">CImgList</a>< tf > &primitives, const bool invert_faces)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Polygonize an implicit function. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="d86fc84baed2d38faf2ff9e988253164"></a><!-- doxytag: member="cimg_library::cimg::marching_squares" ref="d86fc84baed2d38faf2ff9e988253164" args="(const tfunc &func, const float isovalue, const float x0, const float y0, const float x1, const float y1, const float resx, const float resy, CImgList< tp > &points, CImgList< tf > &primitives)" -->template<typename tfunc, typename tp, typename tf> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#d86fc84baed2d38faf2ff9e988253164">marching_squares</a> (const tfunc &func, const float isovalue, const float x0, const float y0, const float x1, const float y1, const float resx, const float resy, <a class="el" href="structcimg__library_1_1_c_img_list.html">CImgList</a>< tp > &points, <a class="el" href="structcimg__library_1_1_c_img_list.html">CImgList</a>< tf > &primitives)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Polygonize an implicit 2D function by the marching squares algorithm. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#66b97c48fa2e598dd3818152cca7e4f0">imagemagick_path</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return path of the ImageMagick's <code>convert</code> tool. <a href="#66b97c48fa2e598dd3818152cca7e4f0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#427f31124296fa11e951bb2536e4e88b">graphicsmagick_path</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return path of the GraphicsMagick's <code>gm</code> tool. <a href="#427f31124296fa11e951bb2536e4e88b"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#9ab62b36cd320543e0b0ab830252cb10">medcon_path</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return path of the <code>XMedcon</code> tool. <a href="#9ab62b36cd320543e0b0ab830252cb10"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#411c598d6a44291415a1e2299d2c39b1">temporary_path</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return path to store temporary files. <a href="#411c598d6a44291415a1e2299d2c39b1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c01790460808876967d2ba371a000cee"></a><!-- doxytag: member="cimg_library::cimg::endian" ref="c01790460808876967d2ba371a000cee" args="()" -->bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#c01790460808876967d2ba371a000cee">endian</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return <code>false</code> for little endian CPUs (Intel), <code>true</code> for big endian CPUs (Motorola). <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f883131bbc64e996d212114cc2b2b21a"></a><!-- doxytag: member="cimg_library::cimg::time" ref="f883131bbc64e996d212114cc2b2b21a" args="()" -->unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#f883131bbc64e996d212114cc2b2b21a">time</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Get the value of a system timer with a millisecond precision. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3ac7655e49556a90715f3532af221334">sleep</a> (const unsigned int milliseconds)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Sleep for a certain numbers of milliseconds. <a href="#3ac7655e49556a90715f3532af221334"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3c8917c0f12139bff6de6e3e45fc5b77">wait</a> (const unsigned int milliseconds)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Wait for a certain number of milliseconds since the last call. <a href="#3c8917c0f12139bff6de6e3e45fc5b77"></a><br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="16ba01ec1c0a8bfb7a48f38fe5ca9c01"></a><!-- doxytag: member="cimg_library::cimg::abs" ref="16ba01ec1c0a8bfb7a48f38fe5ca9c01" args="(const T &a)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#16ba01ec1c0a8bfb7a48f38fe5ca9c01">abs</a> (const T &a)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the absolute value of <code>a</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="a5acc03c44d3ee743b1c246207a13760"></a><!-- doxytag: member="cimg_library::cimg::min" ref="a5acc03c44d3ee743b1c246207a13760" args="(const T &a, const T &b)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#a5acc03c44d3ee743b1c246207a13760">min</a> (const T &a, const T &b)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the minimum between <code>a</code> and <code>b</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="b4448ebbe08956667b190e419e92b464"></a><!-- doxytag: member="cimg_library::cimg::min" ref="b4448ebbe08956667b190e419e92b464" args="(const T &a, const T &b, const T &c)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#b4448ebbe08956667b190e419e92b464">min</a> (const T &a, const T &b, const T &c)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the minimum between <code>a</code>,<code>b</code> and <em>c</em>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="3f300faeed62b1377b46e457dc294a9a"></a><!-- doxytag: member="cimg_library::cimg::min" ref="3f300faeed62b1377b46e457dc294a9a" args="(const T &a, const T &b, const T &c, const T &d)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#3f300faeed62b1377b46e457dc294a9a">min</a> (const T &a, const T &b, const T &c, const T &d)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the minimum between <code>a</code>,<code>b</code>,<code>c</code> and <code>d</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="5380d1ba2bc38723cda7c6076cae42c9"></a><!-- doxytag: member="cimg_library::cimg::max" ref="5380d1ba2bc38723cda7c6076cae42c9" args="(const T &a, const T &b)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#5380d1ba2bc38723cda7c6076cae42c9">max</a> (const T &a, const T &b)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the maximum between <code>a</code> and <code>b</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="85081a078eae01922cc1a56943e0afe6"></a><!-- doxytag: member="cimg_library::cimg::max" ref="85081a078eae01922cc1a56943e0afe6" args="(const T &a, const T &b, const T &c)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#85081a078eae01922cc1a56943e0afe6">max</a> (const T &a, const T &b, const T &c)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the maximum between <code>a</code>,<code>b</code> and <code>c</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="03e6caff24237ea99e0c925a4e5a0b67"></a><!-- doxytag: member="cimg_library::cimg::max" ref="03e6caff24237ea99e0c925a4e5a0b67" args="(const T &a, const T &b, const T &c, const T &d)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">const T & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#03e6caff24237ea99e0c925a4e5a0b67">max</a> (const T &a, const T &b, const T &c, const T &d)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the maximum between <code>a</code>,<code>b</code>,<code>c</code> and <code>d</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="5b27fe23339f05dbc680910ba2f335da"></a><!-- doxytag: member="cimg_library::cimg::sign" ref="5b27fe23339f05dbc680910ba2f335da" args="(const T &x)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#5b27fe23339f05dbc680910ba2f335da">sign</a> (const T &x)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the sign of <code>x</code>. <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="82202bb5c5c52020364951471bb1ae8f"></a><!-- doxytag: member="cimg_library::cimg::nearest_pow2" ref="82202bb5c5c52020364951471bb1ae8f" args="(const T &x)" -->template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#82202bb5c5c52020364951471bb1ae8f">nearest_pow2</a> (const T &x)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return the nearest power of 2 higher than <code>x</code>. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#1b6a62e8511af92513cc68dab1811769">mod</a> (const double x, const double m)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return <code>x</code> modulo <code>m</code> (generic modulo). <a href="#1b6a62e8511af92513cc68dab1811769"></a><br></td></tr><tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#5ae603a367d3f1b9199fc3060336493f">minmod</a> (const T &a, const T &b)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return minmod(<code>a</code>,<code>b</code>). <a href="#5ae603a367d3f1b9199fc3060336493f"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f31db729637ea4dad61e49e5729839c4"></a><!-- doxytag: member="cimg_library::cimg::rand" ref="f31db729637ea4dad61e49e5729839c4" args="()" -->double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#f31db729637ea4dad61e49e5729839c4">rand</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return a random variable between [0,1], followin a uniform distribution. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae82972570fdc0904d4f03df7b5d3023"></a><!-- doxytag: member="cimg_library::cimg::crand" ref="ae82972570fdc0904d4f03df7b5d3023" args="()" -->double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#ae82972570fdc0904d4f03df7b5d3023">crand</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return a random variable between [-1,1], following a uniform distribution. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0341a323738439349625b2de5f35bb4c"></a><!-- doxytag: member="cimg_library::cimg::grand" ref="0341a323738439349625b2de5f35bb4c" args="()" -->double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#0341a323738439349625b2de5f35bb4c">grand</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Return a random variable following a gaussian distribution and a standard deviation of 1. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea674560ff8416d8f1753271865f3d65"></a><!-- doxytag: member="cimg_library::cimg::round" ref="ea674560ff8416d8f1753271865f3d65" args="(const double x, const double y, const unsigned int round_type=0)" -->double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecimg__library_1_1cimg.html#ea674560ff8416d8f1753271865f3d65">round</a> (const double x, const double y, const unsigned int round_type=0)</td></tr>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -