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

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

?? group__cimg__tutorial.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>Tutorial : Getting Started.</h1><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>Let's start to write our first program to get the idea. This will demonstrate how to load and create images, as well as handle image display and mouse events. Assume we want to load a color image <code>lena.jpg</code>, smooth it, display it in a windows, and enter an event loop so that clicking a point in the image with the mouse will draw the intensity profiles of (R,G,B) of the corresponding image line (in another window). Yes, that sounds quite complex for a first code, but don't worry, it will be very simple using the CImg library ! Well, just look at the code below, it does the task :<p><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() {    CImg&lt;unsigned char&gt; image(<span class="stringliteral">"lena.jpg"</span>), visu(500,400,1,3,0);    <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> red[3]={255,0,0}, green[3]={0,255,0}, blue[3]={0,0,255};    image.blur(2.5);    CImgDisplay main_disp(image,<span class="stringliteral">"Click a point"</span>), draw_disp(visu,<span class="stringliteral">"Intensity profile"</span>);    <span class="keywordflow">while</span> (!main_disp.is_closed &amp;&amp; !draw_disp.is_closed) {      main_disp.wait();      <span class="keywordflow">if</span> (main_disp.button &amp;&amp; main_disp.mouse_y&gt;=0) {        <span class="keyword">const</span> <span class="keywordtype">int</span> y = main_disp.mouse_y;        visu.fill(0).draw_graph(image.get_crop(0,y,0,0,image.dimx()-1,y,0,0),red,0,256,0);        visu.draw_graph(image.get_crop(0,y,0,1,image.dimx()-1,y,0,1),green,0,256,0);        visu.draw_graph(image.get_crop(0,y,0,2,image.dimx()-1,y,0,2),blue,0,256,0).display(draw_disp);        }      }    <span class="keywordflow">return</span> 0;  }</pre></div><p>Here is a screenshot of the resulting program :<p><div align="center"><img src="../img/tutorial.jpg" alt="tutorial.jpg"></div><p>And here is the detailled explanation of the source, line by line :<p><div class="fragment"><pre class="fragment"><span class="preprocessor"> #include "CImg.h"</span> </pre></div> Include the main and only header file of the CImg library. <div class="fragment"><pre class="fragment"> <span class="keyword">using namespace </span>cimg_library; </pre></div> Use the library namespace to ease the declarations afterward. <div class="fragment"><pre class="fragment"> <span class="keywordtype">int</span> main() { </pre></div> Definition of the main function. <div class="fragment"><pre class="fragment"> CImg&lt;unsigned char&gt; image(<span class="stringliteral">"lena.jpg"</span>), visu(500,400,1,3,0); </pre></div> Creation of two instances of images of <code>unsigned</code> <code>char</code> pixels. The first image <code>image</code> is initialized by reading an image file from the disk. Here, <code>lena.jpg</code> must be in the same directory than the current program. Note that you must also have installed the <em>ImageMagick</em> package in order to be able to read JPG images. The second image <code>visu</code> is initialized as a black color image with dimension <code>dx=500</code>, <code>dy=400</code>, <code>dz=1</code> (here, it is a 2D image, not a 3D one), and <code>dv=3</code> (each pixel has 3 'vector' channels R,G,B). The last argument in the constructor defines the default value of the pixel values (here <code>0</code>, which means that <code>visu</code> will be initially black). <div class="fragment"><pre class="fragment"> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> red[3]={255,0,0}, green[3]={0,255,0}, blue[3]={0,0,255}; </pre></div> Definition of three different colors as array of unsigned char. This will be used to draw plots with different colors. <div class="fragment"><pre class="fragment"> image.blur(2.5); </pre></div> Blur the image, with a gaussian blur and a standard variation of 2.5. Note that most of the CImg functions have two versions : one that acts in-place (which is the case of blur), and one that returns the result as a new image (the name of the function begins then with <code>get_</code>&nbsp;). In this case, one could have also written <code>image = image.get_blur(2.5);</code> (more expensive, since it needs an additional copy operation). <div class="fragment"><pre class="fragment"> CImgDisplay main_disp(image,<span class="stringliteral">"Click a point"</span>), draw_disp(visu,<span class="stringliteral">"Intensity profile"</span>); </pre></div> Creation of two display windows, one for the input image image, and one for the image visu which will be display intensity profiles. By default, CImg displays handles events (mouse,keyboard,..). On Windows, there is a way to create fullscreen displays. <div class="fragment"><pre class="fragment"> <span class="keywordflow">while</span> (!main_disp.is_closed &amp;&amp; !draw_disp.is_closed) { </pre></div> Enter the event loop, the code will exit when one of the two display windows is closed. <div class="fragment"><pre class="fragment"> main_disp.wait(); </pre></div> Wait for an event (mouse, keyboard,..) in the display window <code>main_disp</code>. <div class="fragment"><pre class="fragment"> <span class="keywordflow">if</span> (main_disp.button &amp;&amp; main_disp.mouse_y&gt;=0) { </pre></div> Test if the mouse button has been clicked on the image area. One may distinguish between the 3 different mouse buttons, but in this case it is not necessary <div class="fragment"><pre class="fragment"> <span class="keyword">const</span> <span class="keywordtype">int</span> y = main_disp.mouse_y; </pre></div> Get the image line y-coordinate that has been clicked. <div class="fragment"><pre class="fragment"> visu.fill(0).draw_graph(image.get_crop(0,y,0,0,image.dimx()-1,y,0,0),red,0,256,0); </pre></div> This line illustrates the pipeline property of most of the CImg class functions. The first function <code>fill(0)</code> simply sets all pixel values with 0 (i.e. clear the image <code>visu</code>). The interesting thing is that it returns a reference to <code>visu</code> and then, can be pipelined with the function <code>draw_graph()</code> which draws a plot in the image <code>visu</code>. The plot data are given by another image (the first argument of <code>draw_graph()</code>). In this case, the given image is the red-component of the line y of the original image, retrieved by the function <code>get_crop()</code> which returns a sub-image of the image <code>image</code>. Remember that images coordinates are 4D (x,y,z,v) and for color images, the R,G,B channels are respectively given by <code>v=0, v=1</code> and <code>v=2</code>. <div class="fragment"><pre class="fragment"> visu.draw_graph(image.get_crop(0,y,0,1,image.dimx()-1,y,0,1),green,0,256,0); </pre></div> Plot the intensity profile for the green channel of the clicked line. <div class="fragment"><pre class="fragment"> visu.draw_graph(image.get_crop(0,y,0,2,image.dimx()-1,y,0,2),blue,0,256,0).display(draw_disp); </pre></div> Same thing for the blue channel. Note how the function (which return a reference to <code>visu</code>) is pipelined with the function <code>display()</code> that just paints the image visu in the corresponding display window. <div class="fragment"><pre class="fragment"> ...till the end </pre></div> I don't think you need more explanations !<p>As you have noticed, the CImg library allows to write very small and intuitive code. Note also that this source will perfectly work on Unix and Windows systems. Take also a look to the examples provided in the CImg package ( directory <code>examples/</code> ). It will show you how CImg-based code can be surprisingly small. Moreover, there is surely one example close to what you want to do. A good start will be to look at the file <code>CImg_demo.cpp</code> which contains small and various examples of what you can do with the CImg Library. All CImg classes are used in this source, and the code can be easily modified to see what happens. <!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福利区| 亚洲制服丝袜av| 天天影视网天天综合色在线播放 | 成人av网站大全| 91色在线porny| 91精品国产美女浴室洗澡无遮挡| 欧美大胆一级视频| 国产精品网站在线播放| 一区av在线播放| 老司机午夜精品| 91丨九色丨蝌蚪丨老版| 3d动漫精品啪啪一区二区竹菊| 欧美成人精品二区三区99精品| 国产精品美女久久久久久2018| 亚洲成人免费看| 国产91精品露脸国语对白| 欧美日韩一二三| 久久一日本道色综合| 亚洲精品久久嫩草网站秘色| 日韩激情av在线| 成人午夜av影视| 欧美一区二区视频观看视频| 欧美极品少妇xxxxⅹ高跟鞋| 午夜影院久久久| 国产成人综合自拍| 8v天堂国产在线一区二区| 国产欧美综合在线观看第十页| 亚洲韩国一区二区三区| 国产麻豆成人精品| 在线免费av一区| 久久免费的精品国产v∧| 一区二区三区在线观看国产| 精品夜夜嗨av一区二区三区| 色天天综合色天天久久| 久久亚区不卡日本| 五月天网站亚洲| 99麻豆久久久国产精品免费| 精品欧美一区二区在线观看| 一区二区三区**美女毛片| 精品一区二区三区视频| 欧美色视频在线| 国产精品福利在线播放| 国产一区啦啦啦在线观看| 欧美日韩中字一区| ●精品国产综合乱码久久久久| 韩国女主播成人在线| 欧美日韩三级一区二区| 国产精品不卡在线观看| 国产一区二区在线观看免费| 7777女厕盗摄久久久| 一区二区三区中文免费| 一本色道**综合亚洲精品蜜桃冫| 国产欧美日韩视频一区二区| 强制捆绑调教一区二区| 91麻豆精品国产91久久久使用方法| 亚洲欧美二区三区| 成人爽a毛片一区二区免费| 精品国产乱码久久久久久蜜臀| 午夜av一区二区| 欧美性生活久久| 一区二区三区精品| 色999日韩国产欧美一区二区| 国产精品久久三区| 成人中文字幕电影| 中文字幕欧美激情一区| 国产不卡在线播放| 日本一区二区三区dvd视频在线| 国内精品在线播放| 久久亚洲春色中文字幕久久久| 国产在线精品一区在线观看麻豆| 日韩免费一区二区| 激情综合网av| 精品99999| 国产一区二区视频在线播放| 精品久久久久久久人人人人传媒 | 欧美色综合天天久久综合精品| 国产精品蜜臀av| 99国产精品一区| 亚洲三级在线免费| 在线观看日韩高清av| 亚洲色图一区二区三区| 色综合久久天天| 亚洲最新视频在线播放| 欧美亚洲国产一区二区三区va| 亚洲国产日韩a在线播放| 欧美中文字幕一区| 日韩精品一级中文字幕精品视频免费观看 | 欧美日韩一区久久| 亚洲成人自拍网| 欧美精品 国产精品| 天天影视涩香欲综合网| 91精品国产入口| 国产一区欧美二区| 国产精品福利电影一区二区三区四区| 99免费精品视频| 午夜精品久久久久久久99樱桃| 欧美精品乱人伦久久久久久| 另类小说欧美激情| 国产精品国产三级国产有无不卡| 91电影在线观看| 美女在线视频一区| 国产女同互慰高潮91漫画| 不卡的av在线| 视频在线在亚洲| 久久久www成人免费毛片麻豆 | 中文字幕一区二区不卡 | 热久久一区二区| www国产亚洲精品久久麻豆| 国产成人av福利| 一区二区三区国产精品| 91精品国产综合久久久久| 国产一区二区福利| 亚洲欧美日韩国产成人精品影院| 欧美另类一区二区三区| 精品伊人久久久久7777人| 中文字幕乱码亚洲精品一区| 欧美在线观看视频在线| 九色|91porny| 亚洲精品一二三区| 欧美精品一区二区三区高清aⅴ| 95精品视频在线| 日本成人在线网站| 国产精品第四页| 日韩欧美一区电影| 色综合夜色一区| 免费成人结看片| 亚洲手机成人高清视频| 日韩欧美久久久| 色偷偷久久人人79超碰人人澡| 久久国产免费看| 亚洲精品久久7777| www久久精品| 欧美美女视频在线观看| 成人小视频免费观看| 日韩高清不卡一区二区| 国产精品久99| 精品国产免费视频| 欧美中文一区二区三区| 成人午夜在线视频| 久久国产剧场电影| 洋洋成人永久网站入口| 国产亚洲短视频| 制服丝袜成人动漫| 色综合久久综合网| 91色|porny| 国产美女精品人人做人人爽| 亚洲不卡av一区二区三区| 国产日韩欧美一区二区三区乱码 | 日韩精品电影在线观看| 国产精品久久久久影院色老大| 日韩欧美国产三级电影视频| 在线看一区二区| www.欧美亚洲| 国产不卡免费视频| 精品一区二区在线观看| 丝袜美腿成人在线| 亚洲一区二区美女| 亚洲色图清纯唯美| 成人免费在线视频| 中文字幕免费不卡在线| 久久久午夜电影| 91精品国产日韩91久久久久久| 91国产丝袜在线播放| 99视频精品免费视频| 成人综合在线网站| 国产大陆a不卡| 国产精品一二三区在线| 极品少妇一区二区三区精品视频| 天天av天天翘天天综合网| 一区二区欧美在线观看| 亚洲欧美日韩国产中文在线| 国产精品免费aⅴ片在线观看| 国产午夜精品久久久久久久| 久久免费美女视频| 久久久777精品电影网影网| 欧美电影精品一区二区| 欧美一区二区视频观看视频| 欧美精品v国产精品v日韩精品| 欧美三日本三级三级在线播放| 在线一区二区三区四区五区| 91在线观看高清| 91性感美女视频| 色偷偷久久人人79超碰人人澡| 色噜噜偷拍精品综合在线| 91论坛在线播放| 在线国产亚洲欧美| 欧美影院一区二区| 欧美色图12p| 欧美一级国产精品| 日韩久久精品一区| 久久看人人爽人人| 国产精品美女久久久久久| 亚洲欧洲av色图| 一区二区三区欧美亚洲| 亚洲夂夂婷婷色拍ww47| 日韩va亚洲va欧美va久久| 麻豆免费看一区二区三区| 国产一区二区三区四| av中文字幕亚洲|