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

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

?? detect.c

?? NIST Handwriting OCR Testbed
?? C
字號(hào):
/*# proc: hough_lines_hori - computes the hough transform(s) for detecting lines# proc:                    with angles in the range [-range .. +range].# proc: hough_lines - computes the hough transform for detecting lines within the# proc:               specified range of "normal" angles.# proc: gen_slope_point - computes a line's slope and normal vector intersection# proc:                   point given a location within a hough transform matrix.*/#include <stdio.h>#include <math.h>#include <values.h>#include <defs.h>#include <mytrace.h>/***************************************************************************//* hough_lines_hori - conducts two separate hough line transforms, one for *//* lines with angles in the range [-range .. 0], and the other for lines   *//* with angles in the range [0 .. range].                                  *//***************************************************************************/hough_lines_hori(cdata, w, h, delta, range, pmin, pmax, pacc, pax, pay,                 nmin, nmax, nacc, nax, nay)unsigned char *cdata;int w, h;float delta, range;float *pmin, *pmax, *nmin, *nmax;int **pacc, **nacc;int *pax, *pay, *nax, *nay;{   /* two separate hough transforms are required because the lines with angles */   /* in the range [-range .. +range] are divided into two separate groups     */   /* ( [(90 - range) .. 90] and [-90 .. (-90 + range)] ) when represented by  */   /* their normal vectors, which are used by the hough transform to avoid     */   /* discontinuities of lines with perfectly vertical slope.                  */   /* the normal vectors for lines with angle [-range .. 0] */   /* are on the range [(90 - range) .. 90] */   *pmax = M_PI_2;   *pmin = *pmax - range;   /* conduct hough transform for lines [-range .. 0] */   hough_lines(cdata, w, h, *pmin, *pmax, delta, pacc, pax, pay);   /* the normal vectors for lines with angle [0 .. range] */   /* are on the range [-90 .. (-90 + range)] */   *nmin = -M_PI_2;   *nmax = *nmin + range;   /* conduct hough transform for lines [0 .. range] */   hough_lines(cdata, w, h, *nmin, *nmax, delta, nacc, nax, nay);}/***************************************************************************//* hough_lines - conducts a hough line transformation on the given image   *//* across a specified range of "normal" angles. The routine returns a      *//* matrix whose locations of maximal value represent the dominant lines in *//* the image. The locations in the matrix are (rho, theta) pairs that      *//* represent unique lines in the image according to each line's normal     *//* vector representation.                                                  *//***************************************************************************/hough_lines(data, w, h, tmin, tmax, td, acc, ax, ay)unsigned char *data;int w, h;float tmin, tmax, td;int **acc, *ax, *ay;{   int x, y, *aptr, hax;   unsigned char *dptr;   float theta;   int rho;   /* calculate allocation dimensions */   /* the hough line transform is conducted using the normal vector   */   /* representation of the line. this avoids discontinuities in      */   /* perfectly vertical slopes. each possible line in the image is   */   /* represented in the hough matrix by 1.) the angle of the normal  */   /* vector extending from the origin to the point on the line       */   /* where the intersection forms a right angle and 2.) the radial   */   /* distance from the origin to the intersection point on the line. */   /* the resulting transform matrix will be dimensioned with y       */   /* coordinates representing the angle of the normal vector and x   */   /* coordinates representing the radial distance to the "normal"    */   /* point on the line.                                              */   /* y dimension is based on the specified range of angles to be searched */   /* over divided by the angle increment. */   *ay = (int)ceil((tmax - tmin)/td);   /* x dimension is based on the diagonal distance across the image */   /* time 2 because the radial distance can be measured both positive */   /* and negative. */   hax = (int)ceil(sqrt((float)(w*w + h*h)));   *ax = 2 * hax;   /* allocate the 2d hough transform matrix */   calloc_int(acc, (*ax)*(*ay), "hough_lines : acc");   /* for every point in the image ... */   dptr = data;   for(y = 0; y < h; y++){      for(x = 0; x < w; x++){         /* if the current pixel is black ... */         if(*dptr++){            /* for all the possible angles of lines intersecting this pixel ... */            for(theta = tmin, aptr = (*acc); theta <= tmax; theta += td, aptr+=*ax){               /* compute the radial distance to the point on the line */               /* where its "normal" vector intersects the line */               rho = sround(x * cos(theta)) + (y * sin(theta));               /* increment the location corresponding to the current  */               /* (rho, theta) pair. each (rho, theta) pair represents */               /* a unique line in the image. once every pixel in the  */               /* image is processed, the locations in the matrix with */               /* the highest count will represent the most dominant   */               /* lines in the image.                                  */               (*(aptr+(rho+hax)))++;            }         }      }   }}/***************************************************************************//* gen_slope_point - determines the line's slope and the normal vector's   *//* intersection point represented by the specified location within a hough *//* transform matrix. The routine requires a number of the hough transform  *//* set-up parameters to make the calculations.                             *//***************************************************************************/gen_slope_point(slope, nx, ny, mx, my, tmin, tmax, td, xoffset)float *slope, tmin, tmax, td;int *nx, *ny, xoffset;int mx, my;{   float mt, nt, theta_npi2pi();   int mr;   /* the x dimension is divided into positive and negative rho's */   /* so an offset is needed to translate the x address into its  */   /* real rho value. */   mr = mx - xoffset;   /* the y dimension represents a range of angles [tmin .. tmax] */   /* sampled according to the increment td, so to compute the    */   /* real angle represented by my, multiply it by the sample     */   /* increment and then translate it by tmin. this give the      */   /* angle of the "normal" vector to the line.                   */   nt = (my * td) + tmin;   /* convert the normal vector angle to the actual angle of the  */   /* line by reflecting the normal angle forward 90 degrees and  */   /* then make sure the resulting angle is in quadrants 1 or 4.  */   mt = nt + M_PI_2;   mt = theta_npi2pi(mt);   /* calculate the line's slope from its angle */   *slope = tan(mt);   /* calculate the coordinates of the point where the line's */   /* normal vector intersects the line. */   *nx = sround(mr * cos(nt));   *ny = sround(mr * sin(nt));   my_trace4("line's: theta = %f, slope = %f, point = (%d, %d)\n",             mt * (180.0/M_PI), *slope, *nx, *ny);}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合免费观看高清完整版在线| 精品一区二区三区香蕉蜜桃 | 亚洲一区自拍偷拍| 另类综合日韩欧美亚洲| 成人国产在线观看| 日韩精品一区二区三区在线播放| 日韩一区中文字幕| 日韩激情中文字幕| 色婷婷av一区二区三区软件| 欧美电影免费观看高清完整版在线 | 欧美精品v国产精品v日韩精品 | 久国产精品韩国三级视频| 丰满少妇在线播放bd日韩电影| 欧美日韩一区二区电影| 中文字幕日韩精品一区| 国产一区二区三区国产| 欧美欧美欧美欧美首页| 一区二区三区视频在线看| 国产老肥熟一区二区三区| 91精品国产一区二区三区香蕉| 亚洲同性gay激情无套| 成人午夜在线播放| 久久综合久久鬼色| 精品一区二区日韩| 日韩一区二区三区精品视频| 丝袜a∨在线一区二区三区不卡| 99国内精品久久| 国产精品美女久久久久久久| 国产乱码精品一区二区三区五月婷| 91精品国产综合久久香蕉麻豆 | 国产欧美日韩精品在线| 韩国理伦片一区二区三区在线播放 | 成人av在线看| 国产精品午夜免费| 成人av综合一区| 国产精品天美传媒沈樵| 福利电影一区二区三区| 国产一区二区精品久久99| 国产白丝精品91爽爽久久| 日韩免费电影一区| 久久久久青草大香线综合精品| 久久精品国产99国产| 日韩欧美成人一区| 国产精品亚洲一区二区三区妖精| 精品久久久久一区| 国产美女久久久久| 久久精品一二三| www.亚洲色图.com| 亚洲一区二区三区四区在线免费观看| 在线国产电影不卡| 亚洲影院久久精品| 日韩一区二区三区四区五区六区| 老司机精品视频线观看86| 欧美精品一区二区三区一线天视频| 国产一区二区三区在线观看免费| 久久久久国色av免费看影院| 97超碰欧美中文字幕| 亚洲第一综合色| 久久香蕉国产线看观看99| 国产91精品精华液一区二区三区| 最新欧美精品一区二区三区| 欧美丝袜丝nylons| 国内精品视频666| 亚洲免费观看在线视频| 欧美一区二区三区婷婷月色| 国产精品一区二区久久不卡 | 亚洲在线观看免费视频| 日韩欧美中文字幕精品| 白白色 亚洲乱淫| 亚洲一区在线观看视频| 精品日韩99亚洲| 91丨porny丨最新| 麻豆精品在线播放| 亚洲欧洲日韩女同| 欧美成人video| 99v久久综合狠狠综合久久| 亚洲成人资源在线| 中文字幕av一区二区三区高| 欧美日韩国产综合久久| 福利91精品一区二区三区| 一区二区成人在线观看| 久久精品亚洲一区二区三区浴池| 欧美亚洲一区三区| 成人av资源在线观看| 日韩va亚洲va欧美va久久| 国产精品素人一区二区| 日韩你懂的在线播放| 欧美在线影院一区二区| a亚洲天堂av| 国产综合色产在线精品| 欧美一级免费大片| 欧美一级二级三级乱码| 亚洲成人免费视| 国产精品天干天干在线综合| 欧美一区二区三区视频| 日本韩国一区二区三区| 国产精品1区二区.| 毛片av一区二区| 亚洲超丰满肉感bbw| 一区二区三区鲁丝不卡| 欧美国产日韩一二三区| 欧美精品一区二区高清在线观看| 欧美三级电影网站| 日本丶国产丶欧美色综合| 成人激情图片网| 国产91色综合久久免费分享| 国产乱码精品1区2区3区| 老司机一区二区| 久久精品免费看| 青青青伊人色综合久久| 视频精品一区二区| 午夜成人免费电影| 首页综合国产亚洲丝袜| 亚洲成人免费电影| 性久久久久久久久| 亚洲v日本v欧美v久久精品| 亚洲宅男天堂在线观看无病毒| 亚洲三级免费观看| 亚洲精品你懂的| 有码一区二区三区| 亚洲黄色片在线观看| 亚洲综合一区在线| 午夜视频在线观看一区二区三区| 亚洲精品视频免费看| 一区二区三区在线观看欧美| 亚洲激情校园春色| 亚洲一区二区3| 午夜视频一区二区三区| 日韩电影免费一区| 日韩国产精品久久久久久亚洲| 日韩国产精品大片| 精品在线免费观看| 成人一区二区三区视频在线观看| fc2成人免费人成在线观看播放 | 91 com成人网| 欧美电影免费观看高清完整版在线观看 | 午夜视频一区在线观看| 日韩电影免费在线| 国产乱子伦一区二区三区国色天香| 国产自产视频一区二区三区| 成人免费视频caoporn| 99久久精品国产麻豆演员表| 精品视频1区2区3区| 日韩欧美在线网站| 亚洲国产成人精品视频| 一区二区三区鲁丝不卡| 国产精品国产三级国产aⅴ原创 | 国产午夜精品一区二区三区视频| 日本一区二区三级电影在线观看| 最新热久久免费视频| 亚洲成在线观看| 国产精品一区二区久激情瑜伽| 99re这里只有精品首页| 欧美精品在线一区二区| 久久九九全国免费| 亚洲国产wwwccc36天堂| 韩国av一区二区三区四区| av爱爱亚洲一区| 欧美一区二区三区在线观看| 国产精品国产三级国产aⅴ入口 | 亚洲人成7777| 蜜臀99久久精品久久久久久软件| 99久久夜色精品国产网站| 777奇米成人网| 国产精品三级久久久久三级| 丝袜诱惑制服诱惑色一区在线观看 | 在线中文字幕不卡| 久久久高清一区二区三区| 亚洲一二三区不卡| aaa亚洲精品| 精品成a人在线观看| 亚洲国产毛片aaaaa无费看 | 中文字幕一区二区三区四区| 日本午夜一区二区| 91黄色激情网站| 久久精品免费在线观看| 蜜臀久久99精品久久久画质超高清| av电影在线不卡| 精品久久久久久久久久久久久久久| 亚洲精品成a人| 成人三级在线视频| 精品国产一区a| 午夜欧美在线一二页| 色妞www精品视频| 中文字幕精品综合| 国产成人在线视频免费播放| 日韩精品中文字幕在线一区| 亚洲小说春色综合另类电影| 91免费精品国自产拍在线不卡| 久久久www免费人成精品| 麻豆国产精品视频| 91麻豆精品国产91久久久久| 午夜影院久久久| 色婷婷综合久久| 一区二区三区在线高清| 日本乱人伦aⅴ精品| 久久综合九色综合欧美98| 在线中文字幕一区| 欧美一区二区三区公司| 亚洲成人自拍偷拍|