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

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

?? hough_transform.cpp

?? this a image processing program
?? CPP
字號:
/*-----------------------------------------------------------------------  File        : hough_transform.cpp  Description : Implementation of the Hough transform  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.h"using namespace cimg_library;// The undef below is necessary when using a non-standard compiler.#ifdef cimg_use_visualcpp6#define std#endifint main(int argc,char **argv) {  cimg_usage("Illustration of the Hough transform");    CImg<unsigned char> src(cimg_option("-i","img/parrot_original.ppm","Input image"));  CImg<> vote(500,400,1,1,0), img = CImg<>(src).get_norm_pointwise().normalize(0,255).resize(-100,-100,1,2,2);    CImgDisplay disp(src,"Image"), dispvote(vote,"Hough Transform");  const unsigned char col1[3]={255,255,255}, col2[3]={0,0,0};  const double    alpha = cimg_option("-a",1.5,"Gradient smoothing"),    sigma = cimg_option("-s",0.5,"Hough Transform smoothing"),		    rhomax = std::sqrt((double)(img.dimx()*img.dimx()+img.dimy()*img.dimy()))/2,    thetamax = 2*cimg::PI;    if (cimg::dialog(cimg::basename(argv[0]),		   "Instructions : \n"		   "------------\n\n"		   "(1) When clicking on the image, all lines crossing the point\n"		   "will be voted in the Hough Transform image.\n\n"		   "(2) When clicking on the vote image, the corresponding line is drawn\n"		   "on the image.\n\n"		   "(3) When pressing the space bar, the image lines are detected from the\n"		   "image gradients.\n\n"		   "Note that a logarithmic scaling is performed for the vote image display.\n"		   "See also the available options (option '-h')\n","Start !","Quit",0,0,0,0,		   src.get_resize(100,100,1,3),true)) std::exit(0);    while (!disp.is_closed && !dispvote.is_closed &&         disp.key!=cimg::keyQ && dispvote.key!=cimg::keyQ &&          disp.key!=cimg::keyESC && dispvote.key!=cimg::keyESC) {    CImgDisplay::wait(disp,dispvote);        // When pressing space bar, the vote is performed from the image gradients.    if (dispvote.key==cimg::keySPACE || disp.key==cimg::keySPACE) {      CImgList<> grad = img.get_gradientXY(3);      cimglist_for(grad,l) grad[l].blur((float)alpha);      vote.fill(0);      cimg_forXY(img,x,y) {        const double           X = (double)x-img.dimx()/2,          Y = (double)y-img.dimy()/2,          gx = grad[0](x,y),          gy = grad[1](x,y);        double           theta = std::atan2(gy,gx),          rho   = std::sqrt(X*X+Y*Y)*std::cos(std::atan2(Y,X)-theta);        if (rho<0) { rho=-rho; theta+=cimg::PI; }        theta = cimg::mod(theta,thetamax);        vote((int)(theta*dispvote.dimx()/thetamax),(int)(rho*dispvote.dimy()/rhomax))+=(float)std::sqrt(gx*gx+gy*gy);      }      vote.blur((float)sigma);      CImg<> vote2(vote); { cimg_forXY(vote2,x,y) vote2(x,y) = (float)std::log(1+vote(x,y)); vote2.display(dispvote); }    }          // When clicking on the vote window.    if (dispvote.button) {      const double        rho   = dispvote.mouse_y*rhomax/dispvote.dimy(),        theta = dispvote.mouse_x*thetamax/dispvote.dimx(),        x = img.dimx()/2  + rho*std::cos(theta),        y = img.dimy()/2 + rho*std::sin(theta);      const int         x0 = (int)(x+1000*std::sin(theta)),        y0 = (int)(y-1000*std::cos(theta)),        x1 = (int)(x-1000*std::sin(theta)),        y1 = (int)(y+1000*std::cos(theta));      CImg<unsigned char>(src).        draw_line(x0,y0,x1,y1,col1,0xF0F0F0F0).draw_line(x0,y0,x1,y1,col2,0x0F0F0F0F).        draw_line(x0+1,y0,x1+1,y1,col1,0xF0F0F0F0).draw_line(x0+1,y0,x1+1,y1,col2,0x0F0F0F0F).        draw_line(x0,y0+1,x1,y1+1,col1,0xF0F0F0F0).draw_line(x0,y0+1,x1,y1+1,col2,0x0F0F0F0F).        display(disp);     }          // When clicking on the image.    if (disp.button & disp.mouse_x>=0) {       const double          x0 = (double)disp.mouse_x-disp.dimx()/2,         y0 = (double)disp.mouse_y-disp.dimy()/2,         rho0 = std::sqrt(x0*x0+y0*y0),         theta0 = std::atan2(y0,x0);              for (double t=0; t<thetamax; t+=0.001) {         double theta = t, rho = rho0*std::cos(theta0-t);         if (rho<0) { rho=-rho; theta=cimg::mod(theta+cimg::PI,thetamax); }         vote((int)(theta*vote.dimx()/thetamax),(int)(rho*vote.dimy()/rhomax))+=1;       }       CImg<> vote2(vote); cimg_forXY(vote2,x,y) vote2(x,y) = (float)std::log(1+vote(x,y)); vote2.display(dispvote);    }    dispvote.resize(dispvote);    disp.resize(disp);  }    std::exit(0);  return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美日韩黄色大片| 亚洲精品国产精品乱码不99| 丁香亚洲综合激情啪啪综合| 天堂精品中文字幕在线| 亚洲欧洲日韩在线| 久久香蕉国产线看观看99| 在线播放国产精品二区一二区四区| 99r精品视频| 色婷婷久久久久swag精品| 色综合婷婷久久| 91传媒视频在线播放| 欧美日韩夫妻久久| 制服.丝袜.亚洲.中文.综合| 欧美日本视频在线| 日韩欧美久久久| 2024国产精品| 久久久www成人免费无遮挡大片| 久久综合av免费| 国产精品欧美经典| 亚洲综合久久av| 亚洲va在线va天堂| 麻豆成人av在线| 日韩欧美亚洲国产另类| 色综合中文字幕国产 | 91精品欧美一区二区三区综合在 | 欧美一级夜夜爽| 国产一区二区三区黄视频| 亚洲精品一区二区三区四区高清| 国产日韩高清在线| 在线国产电影不卡| 国产高清精品在线| 91蝌蚪porny九色| 国产在线播放一区| 日韩一区欧美二区| 亚洲一卡二卡三卡四卡无卡久久| 亚洲四区在线观看| 亚洲欧美日韩中文字幕一区二区三区| 日韩免费高清电影| 国产精品电影院| av在线不卡电影| 国产河南妇女毛片精品久久久| 国产成人在线影院| 国产精品小仙女| 欧美日韩日日夜夜| 欧美精品九九99久久| 欧美三区在线观看| 欧美精品一区二区三| 在线成人av影院| 国产精品毛片无遮挡高清| 欧美福利视频导航| 午夜欧美2019年伦理| 成人午夜av在线| 精品一区二区国语对白| 91在线一区二区| 久久久久久麻豆| 欧美高清视频不卡网| 亚洲精品伦理在线| 国产一区二区三区电影在线观看 | 免费高清视频精品| 国产在线视频不卡二| 69久久夜色精品国产69蝌蚪网| 日韩欧美国产小视频| 亚洲综合激情网| 国产精品一卡二卡| 日韩一级二级三级| 性做久久久久久久久| 国产成人精品亚洲日本在线桃色| 欧美一区二区三区影视| 亚洲已满18点击进入久久| 成人av在线影院| 中文字幕精品在线不卡| 高清成人免费视频| 久久综合久久久久88| 日韩av不卡一区二区| 欧美精选午夜久久久乱码6080| 亚洲免费成人av| 91麻豆精品视频| 亚洲免费观看高清完整版在线| 成人激情午夜影院| 精品国产乱码久久久久久图片| 日韩黄色小视频| 欧美三级韩国三级日本三斤| 亚洲成人先锋电影| 欧美日韩中文国产| 一区二区日韩电影| 色婷婷综合久久久久中文 | 91美女在线看| 自拍av一区二区三区| 国产精品综合一区二区| 国产欧美视频在线观看| 97久久精品人人爽人人爽蜜臀| 亚洲精选视频免费看| 欧美日韩成人在线一区| 日韩电影免费一区| 精品国产区一区| 国产精品99久久久久久宅男| 中文字幕在线不卡一区| 91美女片黄在线观看| 亚洲成va人在线观看| 欧美一级xxx| 懂色av一区二区三区免费观看| 亚洲国产成人私人影院tom| 成人黄色大片在线观看| 亚洲精品va在线观看| 欧美一区欧美二区| 国产一区二区三区四区在线观看| 中文字幕精品综合| 精品婷婷伊人一区三区三| 日韩**一区毛片| 国产精品三级电影| 欧美美女激情18p| 成人教育av在线| 亚洲成年人网站在线观看| 精品国产91洋老外米糕| 91在线观看美女| 亚洲高清免费视频| 精品日韩在线观看| 色94色欧美sute亚洲线路二| 亚洲国产视频一区二区| 精品福利一二区| 欧美亚洲综合在线| 久草热8精品视频在线观看| 中文字幕一区二区日韩精品绯色| 欧美视频日韩视频| 国产福利一区二区三区视频| 亚洲精品乱码久久久久| 久久伊人蜜桃av一区二区| 99精品热视频| 久久av老司机精品网站导航| 玉足女爽爽91| 国产精品美女久久久久av爽李琼 | 久久这里只有精品首页| 欧美影片第一页| www.欧美日韩| 高清不卡在线观看| 国产精品一级在线| 激情六月婷婷久久| 免费欧美高清视频| 青草av.久久免费一区| 亚洲无线码一区二区三区| 亚洲摸摸操操av| 亚洲四区在线观看| 中文字幕一区二区三区蜜月| 久久色在线视频| www日韩大片| 精品国内片67194| 精品美女在线观看| 久久免费精品国产久精品久久久久| 欧美人牲a欧美精品| 欧美日韩电影一区| 欧美亚男人的天堂| 欧美日韩国产高清一区二区| 欧美久久久一区| 欧美日韩一级黄| 欧美主播一区二区三区美女| 色婷婷精品久久二区二区蜜臂av| www.激情成人| 91偷拍与自偷拍精品| 99re66热这里只有精品3直播| 99这里都是精品| 国产**成人网毛片九色| 91在线免费播放| 欧美人与性动xxxx| 欧美va亚洲va在线观看蝴蝶网| 日韩一区二区免费视频| 精品电影一区二区三区| 欧美大片顶级少妇| 国产欧美日韩在线| 一色桃子久久精品亚洲| 亚洲成av人片在线观看| 久久99久国产精品黄毛片色诱| 国产综合色精品一区二区三区| 国产麻豆成人精品| av亚洲精华国产精华精| 欧美日韩国产综合一区二区三区| 91精品国产福利| 2022国产精品视频| 久久久久久久综合日本| 国产精品久久久久久福利一牛影视 | 日本乱码高清不卡字幕| 91精品办公室少妇高潮对白| 欧美日本韩国一区| 国产欧美日韩三区| 亚洲一区二区三区影院| 秋霞电影一区二区| 高清beeg欧美| 欧美日韩精品电影| 久久久另类综合| 亚洲狠狠丁香婷婷综合久久久| 日韩成人精品在线观看| 国产91色综合久久免费分享| 日本高清不卡在线观看| 精品欧美一区二区久久| 亚洲同性同志一二三专区| 免费一区二区视频| 91欧美激情一区二区三区成人| 日韩片之四级片| 综合久久国产九一剧情麻豆| 日本亚洲欧美天堂免费| 91麻豆福利精品推荐|