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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tutorial.cpp

?? this a image processing program
?? CPP
字號:
/*-----------------------------------------------------------------------  File        : tutorial.cpp  Description : View the color profile of an image, along the X-axis  Copyright  : David Tschumperle - http://www.greyc.ensicaen.fr/~dtschump/  This software is governed by the CeCILL  license under French law and  abiding by the rules of distribution of free software.  You can  use,  modify and/ or redistribute the software under the terms of the CeCILL  license as circulated by CEA, CNRS and INRIA at the following URL  "http://www.cecill.info".  As a counterpart to the access to the source code and  rights to copy,  modify and redistribute granted by the license, users are provided only  with a limited warranty  and the software's author,  the holder of the  economic rights,  and the successive licensors  have only  limited  liability.  In this respect, the user's attention is drawn to the risks associated  with loading,  using,  modifying and/or developing or reproducing the  software by the user in light of its specific status of free software,  that may mean  that it is complicated to manipulate,  and  that  also  therefore means  that it is reserved for developers  and  experienced  professionals having in-depth computer knowledge. Users are therefore  encouraged to load and test the software's suitability as regards their  requirements in conditions enabling the security of their systems and/or  data to be ensured and,  more generally, to use and operate it in the  same conditions as regards security.  The fact that you are presently reading this means that you have had  knowledge of the CeCILL license and that you accept its terms.  ---------------------------------------------------------------------*/// Include CImg library file and use its main namespace#include "../CImg.h"using namespace cimg_library;// Begin the programint main(int argc,char **argv) {  // Define program usage and read command line parameters  //-------------------------------------------------------  // Display program usage, when invoked from the command line with option '-h'.  cimg_usage("View the color profile of an image along the X axis");  // Read image filename from the command line (or set it to "img/parrot_original.ppm" if option '-i' is not provided).  const char* file_i = cimg_option("-i","img/parrot_original.ppm","Input image");  // Read pre-blurring variance from the command line (or set it to 1.0 if option '-blur' is not provided).  const double sigma = cimg_option("-blur",1.0,"Variance of gaussian pre-blurring");  // Init variables  //----------------  // Load an image, transform it to a color image (if necessary) and blur it with a standart deviation sigma.  const CImg<unsigned char> image = CImg<>(file_i).normalize(0,255).blur((float)sigma).resize(-100,-100,1,3);  // Create two display window, one for the image, the other for the color profile.  CImgDisplay    main_disp(image,"Color image (Try to move mouse pointer over)",0),    draw_disp(500,400,"Color profile of the X-axis",0);  // Define colors used to plot the profile, and a hatch to draw the line  unsigned long hatch=0xF0F0F0F0;  const unsigned char    red  [3] = {255,  0,  0},    green[3] = {  0,255,  0},    blue [3] = {  0,  0,255},    black[3] = {0,    0,  0};  // Enter event loop. This loop ends when one of the two display window is closed.  while (!main_disp.is_closed && !draw_disp.is_closed) {    // Handle display window resizing (if any)    if (main_disp.is_resized) main_disp.resize().display(image);    draw_disp.resize();    if (main_disp.mouse_x>=0 && main_disp.mouse_y>=0) { // Mouse pointer is over the image      const int	xm = main_disp.mouse_x,                     // X-coordinate of the mouse pointer over the image	ym = main_disp.mouse_y,                     // Y-coordinate of the mouse pointer over the image	xl = xm*draw_disp.dimx()/main_disp.dimx(),  // Corresponding X-coordinate of the hatched line	x = xm*image.dimx()/main_disp.dimx(),       // Corresponding X-coordinate of the pointed pixel in the image	y = ym*image.dimy()/main_disp.dimy();       // Corresponding Y-coordinate of the pointex pixel in the image      // Retrieve color component values at pixel (x,y)      const unsigned int	val_red   = image(x,y,0),	val_green = image(x,y,1),	val_blue  = image(x,y,2);      // Create and display the image of the intensity profile      CImg<unsigned char>(draw_disp.dimx(),draw_disp.dimy(),1,3,255).        draw_grid(-50*100.0f/image.dimx(),-50*100.0f/256,0,0,black,0xCCCCCCCC,0xCCCCCCCC,false,true,0.2f).        draw_axis(0,image.dimx()-1,255,0,black).        draw_graph(image.get_shared_line(y,0,0),red,0,255,0).        draw_graph(image.get_shared_line(y,0,1),green,0,255,0).        draw_graph(image.get_shared_line(y,0,2),blue,0,255,0).        draw_text(30,5,black,0,11,1,"Pixel (%d,%d)={%d %d %d}",main_disp.mouse_x,main_disp.mouse_y,val_red,val_green,val_blue).        draw_line(xl,0,xl,draw_disp.dimy()-1,black,hatch=cimg::rol(hatch),0.5).        display(draw_disp);    } else      // else display a text in the profile display window.      CImg<unsigned char>(draw_disp.dimx(),draw_disp.dimy()).fill(255).        draw_text("Mouse pointer is outside the image",draw_disp.dimx()/2-110,draw_disp.dimy()/2-5,black).display(draw_disp);    // Temporize event loop    cimg::wait(20);  }  return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本欧美久久久久免费播放网| 欧美性感一类影片在线播放| 精品日韩成人av| 日本亚洲天堂网| 欧美电影免费观看高清完整版在| 麻豆精品一区二区综合av| 日韩一级黄色片| 国产剧情av麻豆香蕉精品| 国产日产欧产精品推荐色| 成人一区二区视频| 综合电影一区二区三区 | 北岛玲一区二区三区四区| 综合久久久久久久| 欧美日免费三级在线| 免费的国产精品| 久久一区二区三区国产精品| 成人小视频免费观看| 洋洋av久久久久久久一区| 欧美日韩国产首页在线观看| 美女视频黄久久| 国产亚洲午夜高清国产拍精品| 99在线精品一区二区三区| 亚洲午夜久久久久久久久久久| 欧美一区二区三区人| 国产福利一区二区三区在线视频| 亚洲欧美视频在线观看视频| 欧美日韩精品二区第二页| 国产一区二区按摩在线观看| 国产精品久久久久久久久免费相片 | 国产精品1区2区3区在线观看| 国产精品美女久久久久久2018 | 国产精品久久久久久久久免费桃花 | 欧美疯狂做受xxxx富婆| 国产精品123| 一区二区三区免费网站| 2023国产精品自拍| 欧美综合一区二区三区| 黄色成人免费在线| 亚洲一区欧美一区| 久久久久久电影| 精品视频在线看| 高清成人在线观看| 美女脱光内衣内裤视频久久影院| 中文无字幕一区二区三区| 欧美日韩精品是欧美日韩精品| 国产裸体歌舞团一区二区| 午夜成人免费电影| 国产成人免费视频网站 | 在线精品视频小说1| 亚洲视频一区在线| 91麻豆123| 亚洲卡通动漫在线| 91视频国产观看| 一区二区三区在线影院| 91网站视频在线观看| 中文字幕在线观看一区| 91视频.com| 亚洲一区二区三区国产| 97久久人人超碰| 亚洲美女视频在线观看| 国模冰冰炮一区二区| 国产日韩影视精品| 波多野结衣在线一区| 中文字幕第一页久久| 国产高清亚洲一区| 久久久久久久久岛国免费| 美女任你摸久久 | 久久精品视频一区| 一区二区三区久久| 国产欧美一区二区在线观看| 欧美欧美欧美欧美首页| 91小视频免费看| 99r国产精品| 波多野结衣在线aⅴ中文字幕不卡| 国产美女精品人人做人人爽| 久久99精品国产麻豆不卡| 蜜桃视频第一区免费观看| 午夜欧美视频在线观看 | 亚洲一级不卡视频| 亚洲人快播电影网| 亚洲视频在线一区观看| 国产精品乱码久久久久久| 国产午夜精品理论片a级大结局| 日韩免费看网站| 精品99999| 2020国产精品自拍| 久久久久久久免费视频了| 久久人人爽爽爽人久久久| 国产日韩影视精品| 国产精品沙发午睡系列990531| 国产视频一区二区三区在线观看| 国产亚洲一区二区三区在线观看| 国产精品午夜在线| 亚洲三级视频在线观看| 午夜精品久久久久久久99樱桃| 日日摸夜夜添夜夜添国产精品| 青青草视频一区| 国产精品亚洲第一区在线暖暖韩国| 韩国av一区二区| 成年人网站91| 欧美视频一区二区三区| 欧美一区二区三区在线电影| 日韩一区二区精品葵司在线| 国产三级精品三级| 亚洲精品视频自拍| 日本成人在线不卡视频| 国产高清不卡一区| 91久久精品日日躁夜夜躁欧美| 欧美丰满一区二区免费视频| 久久精品一二三| 一区二区在线看| 另类小说视频一区二区| av在线一区二区三区| 51精品秘密在线观看| 欧美国产精品一区| 亚洲福利一二三区| 国产麻豆精品95视频| 欧美亚洲一区二区在线| 2023国产精品| 亚洲午夜久久久久久久久久久 | 久久久久综合网| 亚洲免费在线视频| 免费在线欧美视频| 91偷拍与自偷拍精品| 欧美电影免费观看高清完整版在线观看 | 久久综合色之久久综合| 一区二区三区中文在线| 精品一区中文字幕| 欧美吞精做爰啪啪高潮| 国产日韩精品一区二区浪潮av| 亚洲国产另类精品专区| 国产999精品久久| 国产成人精品午夜视频免费| 欧美日韩精品一区二区三区四区 | 成人免费福利片| 欧美性猛交一区二区三区精品| 精品动漫一区二区三区在线观看| 国产精品护士白丝一区av| 黄网站免费久久| 欧美成人免费网站| 日韩在线播放一区二区| 在线免费观看一区| 亚洲丝袜另类动漫二区| 日韩—二三区免费观看av| aa级大片欧美| 国产精品国产三级国产aⅴ无密码| 午夜欧美视频在线观看| 成人av在线观| 亚洲国产精品一区二区久久| 欧美最猛黑人xxxxx猛交| 国产美女主播视频一区| 中文字幕第一区综合| 激情伊人五月天久久综合| 91麻豆蜜桃一区二区三区| www亚洲一区| 成人手机电影网| 视频一区二区中文字幕| 国产久卡久卡久卡久卡视频精品| 26uuu久久综合| 中文字幕亚洲精品在线观看| 国产精品萝li| 亚洲综合网站在线观看| 99久免费精品视频在线观看| 日本一区二区免费在线观看视频| 精品在线一区二区| 91精品国产麻豆| 亚洲成在人线免费| 欧美日韩一本到| 图片区小说区国产精品视频| 欧美日韩国产在线观看| 一区二区三区日韩欧美| 欧美综合天天夜夜久久| 亚洲www啪成人一区二区麻豆| 91看片淫黄大片一级在线观看| 国产精品毛片无遮挡高清| 高清beeg欧美| 中文字幕在线观看不卡视频| 成人av一区二区三区| 亚洲日本一区二区| 欧美日韩综合在线免费观看| 亚洲国产成人高清精品| 538在线一区二区精品国产| 青娱乐精品视频| 欧美成人一区二区三区| 国产一区不卡在线| 国产精品久久久久桃色tv| 色综合久久久久| 三级成人在线视频| 日韩情涩欧美日韩视频| 国内一区二区视频| 国产精品久久一级| 色婷婷综合激情| 日本中文在线一区| 久久久91精品国产一区二区精品| 粉嫩13p一区二区三区| 国产精品理论在线观看| 欧美性大战久久久久久久蜜臀| 日韩不卡一区二区| 国产欧美一区二区精品秋霞影院| 国产成人鲁色资源国产91色综 |