亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? group__cimg__options.html

?? this a image processing program
?? HTML
字號(hào):
<!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>&nbsp;&nbsp;<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>&nbsp;		      <a href="http://www.greyc.ensicaen.fr/EquipeImage/"><img src="../img/logoGREYC.gif" border="0"></a>&nbsp;		      <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&nbsp;Page</span></a></li>    <li><a href="modules.html"><span>Modules</span></a></li>    <li><a href="namespaces.html"><span>Namespaces</span></a></li>    <li><a href="annotated.html"><span>Classes</span></a></li>  </ul></div><h1>Retrieving Command Line Arguments.</h1><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>The CImg library offers facilities to retrieve command line arguments in a console-based program, as it is a commonly needed operation. Three macros <code>cimg_usage()</code>, <code>cimg_help()</code> and <code>cimg_option()</code> are defined for this purpose. Using these macros allows to easily retrieve options values from the command line. Invoking the compiled executable with the option <code>-h</code> or <code>--help</code> will automatically display the program usage, followed by the list of requested options.<h2><a class="anchor" name="so1">The cimg_usage() macro</a></h2>The macro <code>cimg_usage(usage)</code> may be used to describe the program goal and usage. It is generally inserted one time after the <code>int main(int argc,char **argv)</code> definition.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>usage</em>&nbsp;</td><td>: A string describing the program goal and usage. </td></tr>  </table></dl><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>The function where <code>cimg_usage()</code> is used must have correctly defined <code>argc</code> and <code>argv</code> variables.</dd></dl><h2><a class="anchor" name="so1_5">The cimg_help() macro</a></h2>The macro <code>cimg_help(str)</code> will display the string <code>str</code> only if the <code>-help</code> or <code>--help</code> option are invoked when running the programm.<h2><a class="anchor" name="so2">The cimg_option() macro</a></h2>The macro <code>cimg_option(name,default,usage)</code> may be used to retrieve an option value from the command line.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>: The name of the option to be retrieved from the command line. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>default</em>&nbsp;</td><td>: The default value returned by the macro if no options <code>name</code> has been specified when running the program. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>usage</em>&nbsp;</td><td>: A brief explanation of the option. If <code>usage==0</code>, the option won't appear on the option list when invoking the executable with options <code>-h</code> or <code>--help</code> (hidden option).</td></tr>  </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd><code>cimg_option()</code> returns an object that has the <em>same</em> <em>type</em> than the default value <code>default</code>. The return value is equal to the one specified on the command line. If no such option have been specified, the return value is equal to the default value <code>default</code>. Warning, this can be confusing in some situations (look at the end of the next section). </dd></dl><dl class="pre" compact><dt><b>Precondition:</b></dt><dd>The function where <code>cimg_option()</code> is used must have correctly defined <code>argc</code> and <code>argv</code> variables.</dd></dl><h2><a class="anchor" name="so3">Example of use</a></h2>The code below uses the macros <code>cimg_usage()</code> and <code>cimg_option()</code>. It loads an image, smoothes it an quantifies it with a specified number of values. <div class="fragment"><pre class="fragment"><span class="preprocessor">   #include "CImg.h"</span>   <span class="keyword">using namespace </span>cimg_library;   <span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc,<span class="keywordtype">char</span> **argv) {     cimg_usage(<span class="stringliteral">"Retrieve command line arguments"</span>);     <span class="keyword">const</span> <span class="keywordtype">char</span>* filename = cimg_option(<span class="stringliteral">"-i"</span>,<span class="stringliteral">"image.gif"</span>,<span class="stringliteral">"Input image file"</span>);     <span class="keyword">const</span> <span class="keywordtype">char</span>* output   = cimg_option(<span class="stringliteral">"-o"</span>,(<span class="keywordtype">char</span>*)0,<span class="stringliteral">"Output image file"</span>);     <span class="keyword">const</span> <span class="keywordtype">double</span> sigma   = cimg_option(<span class="stringliteral">"-s"</span>,1.0,<span class="stringliteral">"Standard variation of the gaussian smoothing"</span>);     <span class="keyword">const</span>  <span class="keywordtype">int</span> nblevels  = cimg_option(<span class="stringliteral">"-n"</span>,16,<span class="stringliteral">"Number of quantification levels"</span>);     <span class="keyword">const</span> <span class="keywordtype">bool</span> hidden    = cimg_option(<span class="stringliteral">"-hidden"</span>,<span class="keyword">false</span>,0);      <span class="comment">// This is a hidden option</span>     CImg&lt;unsigned char&gt; img(filename);     img.blur(sigma).quantize(nblevels);     <span class="keywordflow">if</span> (output) img.save(output); <span class="keywordflow">else</span> img.display(<span class="stringliteral">"Output image"</span>);     <span class="keywordflow">if</span> (hidden) std::fprintf(stderr,<span class="stringliteral">"You found me !\n"</span>);     <span class="keywordflow">return</span> 0;   }</pre></div><p>Invoking the corresponding executable with <code>test -h -hidden -n 20 -i foo.jpg</code> will display : <div class="fragment"><pre class="fragment">   ./test -h -hidden -n 20 -i foo.jpg test : Retrieve command line arguments (Oct 16 2004, 12:34:26)    -i       = foo.jpg      : Input image file    -o       = 0            : Output image file    -s       = 1            : Standard variation of the gaussian smoothing    -n       = 20           : Number of quantification levels   You found me !</pre></div><p><dl class="warning" compact><dt><b>Warning:</b></dt><dd>As the type of object returned by the macro <code>cimg_option(option,default,usage)</code> is defined by the type of <code>default</code>, undesired casts may appear when writting code such as : <div class="fragment"><pre class="fragment">   <span class="keyword">const</span> <span class="keywordtype">double</span> sigma = cimg_option(<span class="stringliteral">"-val"</span>,0,<span class="stringliteral">"A floating point value"</span>);</pre></div> In this case, <code>sigma</code> will always be equal to an integer (since the default value <code>0</code> is an integer). When passing a float value on the command line, a <em>float</em> <em>to</em> <em>integer</em> cast is then done, truncating the given parameter to an integer value (this is surely not a desired behavior). You must specify <code>0.0</code> as the default value in this case.</dd></dl><h2><a class="anchor" name="so4">How to learn more about command line options ?</a></h2>You should take a look at the examples <code>examples/inrcast.cpp</code> provided in the CImg Library package. This is a command line based image converter which intensively uses the <code>cimg_option()</code> and <code>cimg_usage()</code> macros to retrieve command line parameters. <!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" />    <link href="doxygen.css" rel="stylesheet" type="text/css">  </head>  <body bgcolor="#ffffff" fgcolor="#000000" alink="#ff0000" link="#0000ee" vlink="#551a8b">  <hr noshade="noshade" size="1" width="100%">    <a href="http://sourceforge.net">    <img src="http://sourceforge.net/sflogo.php?group_id=96492&amp;type=3" border="0" height="37" width="125"></a><!-- Start of StatCounter Code --><script type="text/javascript" language="javascript"><!-- var sc_project=895001; var sc_invisible=1; var sc_partition=7; var sc_security="5ea85181"; //--></script><script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c8.statcounter.com/counter.php?sc_project=895001&amp;java=0&amp;security=5ea85181&amp;invisible=1" alt="counter stats" border="0"></a> </noscript><!-- End of StatCounter Code -->  </body></html>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品白丝在线| 91久久奴性调教| 精品系列免费在线观看| 精品一区二区三区久久| 激情文学综合丁香| 国产乱对白刺激视频不卡| 国产精品一二三在| 99麻豆久久久国产精品免费优播| 91在线视频网址| 欧美日韩成人高清| 日韩欧美一区在线观看| 国产欧美视频一区二区三区| 日韩理论电影院| 日本欧美一区二区三区乱码| 狠狠色丁香婷婷综合久久片| av电影在线观看不卡| 欧美日韩亚洲国产综合| 激情综合一区二区三区| av一区二区不卡| 国产成人在线视频网址| 91精品福利在线| 精品欧美一区二区三区精品久久| 91 com成人网| 国产精品色一区二区三区| 18成人在线观看| 成人免费视频视频在线观看免费| 欧美精品一区二区在线播放| 蜜臀久久99精品久久久画质超高清 | 欧洲国产伦久久久久久久| 中文字幕精品一区二区精品绿巨人 | 欧美日韩国产三级| 亚洲在线观看免费| 欧美日韩一区二区在线观看| 亚洲一卡二卡三卡四卡无卡久久| 99麻豆久久久国产精品免费| 自拍偷拍国产精品| 色婷婷综合久色| 亚洲一区二区欧美激情| 欧美亚洲国产怡红院影院| 伊人一区二区三区| 欧美日韩精品高清| 老司机午夜精品| 久久综合五月天婷婷伊人| 国产精品羞羞答答xxdd| 国产精品萝li| 91久久精品日日躁夜夜躁欧美| 亚洲综合免费观看高清完整版在线| 在线一区二区三区四区| 午夜精品久久久久久不卡8050| 69p69国产精品| 韩国精品免费视频| 亚洲国产岛国毛片在线| 91视频在线看| 亚洲成人tv网| 久久网站最新地址| 色婷婷狠狠综合| 日韩不卡手机在线v区| 精品国产第一区二区三区观看体验 | 久久精品日韩一区二区三区| 国产aⅴ综合色| 国产精品丝袜久久久久久app| 99re这里都是精品| 日韩国产高清影视| 久久嫩草精品久久久久| 91在线观看免费视频| 日本在线观看不卡视频| 国产精品美女www爽爽爽| 色偷偷久久人人79超碰人人澡| 狠狠色2019综合网| ●精品国产综合乱码久久久久| 欧美日韩国产成人在线免费| 韩国av一区二区三区| 亚洲天堂a在线| 日韩欧美国产午夜精品| 波多野结衣中文字幕一区 | 日韩av电影免费观看高清完整版 | 亚洲一区二区三区四区的| 日韩欧美在线综合网| 99久久伊人精品| 美腿丝袜亚洲一区| 亚洲天堂网中文字| 久久色.com| 欧美巨大另类极品videosbest | 国产精品久久毛片a| 欧美高清视频www夜色资源网| 国产乱码一区二区三区| 亚洲成人免费观看| 日韩理论电影院| 国产色一区二区| 欧美电影免费观看高清完整版在线观看| 成人综合激情网| 久久国产精品一区二区| 亚洲国产综合人成综合网站| 国产蜜臀av在线一区二区三区| 欧美喷潮久久久xxxxx| 99久久综合国产精品| 国产一区二区三区高清播放| 五月婷婷激情综合网| ●精品国产综合乱码久久久久| 久久精品视频一区二区| 欧美成人女星排名| 91精品国产综合久久久久久久久久| 91在线码无精品| 成人伦理片在线| 国产成人精品三级麻豆| 精品一区二区三区日韩| 久久精品国产色蜜蜜麻豆| 亚洲成人手机在线| 五月婷婷另类国产| 日本一不卡视频| 日精品一区二区三区| 亚洲国产va精品久久久不卡综合| 中文字幕在线一区| 亚洲欧洲精品成人久久奇米网| 欧美国产日韩精品免费观看| 国产日韩欧美一区二区三区乱码| 欧美一级高清大全免费观看| 欧美一区二区免费视频| 制服丝袜亚洲色图| 日韩免费电影网站| 91麻豆精品国产91久久久| 在线中文字幕一区二区| 精品国产免费久久| 久久精品夜色噜噜亚洲a∨| 久久综合狠狠综合久久激情 | 国产欧美日韩另类视频免费观看| 久久你懂得1024| 久久久久国产精品厨房| 国产蜜臀97一区二区三区| 国产精品欧美精品| 亚洲理论在线观看| 五月综合激情网| 国产一区亚洲一区| 成人一区二区三区| 在线观看欧美日本| 日韩欧美国产三级电影视频| 国产亚洲精品aa| 亚洲精品国产第一综合99久久| 亚洲精品中文字幕在线观看| 午夜精品视频在线观看| 狠狠久久亚洲欧美| 91蝌蚪porny九色| 在线看国产日韩| 日韩一级精品视频在线观看| 久久久久久久久久久久久夜| 久久免费的精品国产v∧| 亚洲欧美色综合| 亚洲第一久久影院| 国产美女精品人人做人人爽| 99热在这里有精品免费| 日韩无一区二区| 国产精品久久久久久久久动漫| 亚洲精品日韩一| 久久狠狠亚洲综合| 色偷偷久久人人79超碰人人澡| 欧美一区二区三区在线| 国产精品精品国产色婷婷| 午夜影视日本亚洲欧洲精品| 国产精品18久久久久久久久久久久| 色综合久久久久久久| www国产精品av| 亚洲福利一区二区三区| 韩国欧美一区二区| 欧美日韩情趣电影| 亚洲国产精品v| 久久精品国产一区二区三区免费看| 91在线视频观看| 久久久久久久综合日本| 五月激情六月综合| 97国产一区二区| 久久精品在线免费观看| 日本亚洲天堂网| 色av成人天堂桃色av| 久久久亚洲高清| 日本不卡一区二区三区高清视频| 波多野结衣中文一区| 精品国产乱码久久久久久闺蜜| 一区二区三区免费观看| 成人国产在线观看| 国产亚洲污的网站| 精品一区二区影视| 欧美一区二区三区婷婷月色| 亚洲女人****多毛耸耸8| 国产成人精品免费看| 欧美刺激脚交jootjob| 无码av中文一区二区三区桃花岛| 91丝袜国产在线播放| 久久久久国产成人精品亚洲午夜| 久久精品国产亚洲一区二区三区| 在线播放中文一区| 天天色天天爱天天射综合| 在线日韩一区二区| 亚洲男人都懂的| 91香蕉视频黄| 成人免费一区二区三区在线观看| 色综合天天性综合| 国产精品乱码人人做人人爱 | 成人免费视频app| 国产网站一区二区三区| 久久精品国产99|