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

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

?? brcorner.c

?? NIST Handwriting OCR Testbed
?? C
字號:
/*# proc: rm_br_corner_1_sided - removes the bot-right corner of line data# proc:                using a slope projection from one side.# proc: rm_br_corner_2_sided - removes the bot-right corner of line data# proc:                by projecting a cut line between two points.# proc: br_corner_cut_slope - determines the slope for cutting off the# proc:                bot-right corner of line data.# proc: sum_dys_br_corner - computes changes in y used to estimate the# proc:                slope along which the bot-right corner will be cut.*/#include <stdio.h>#include <values.h>#include <defs.h>#include <rmline.h>#include <mytrace.h>/***************************************************************************//* rm_br_corner_1_sided - removes the bottom-right corner of line data     *//* using a slope projection from the character data on the top side of the *//* corner.                                                                 *//***************************************************************************/rm_br_corner_1_sided(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, w, h)int rs, re, msw, *ebin, *sw, *fsy, *tsy, nsw;unsigned char *cdata;int w, h;{   int rx, ry;   float rm;   int crx, slimit;   int take_step;   /* determine the slope of the cut, from the character data on the */   /* top-right side of the corner */   br_corner_cut_slope(&rm, &rx, &ry, rs, re, msw, ebin, fsy, tsy, nsw, cdata, w, h);   /* can't have cut with positive slope if really br corner */   if((rm == MAXFLOAT) || (rm > 0.0)) {      my_trace("br corner not found\n");      return;   }   /* project cut from the white pixel below ry */   ry = min(h-1, ry+1);   crx = rx;   slimit = step_limit2(msw);   take_step = TRUE;   /* while right steps do not exceed the left edge of the run of unerased slices */   /* and other stopping conditions not met ... */   while((crx >= rs) && (take_step)){      /* take next step */      take_step = process_b_corner_slice(crx, rm, rx, ry, rs, re, slimit,                                          ebin, sw, fsy, tsy, nsw, cdata, w, h);      crx--;   }}/***************************************************************************//* rm_br_corner_2_sided - removes the bottom-right corner of line data by  *//* projecting a cut line connecting the top-right of the run of unerased   *//* slices to the top-right point where the 2nd derivative elbow (or        *//* inflection) was detected.                                               *//***************************************************************************/rm_br_corner_2_sided(elbow_x, rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, w, h)int elbow_x, rs, re, msw, *ebin, *sw, *fsy, *tsy, nsw;unsigned char *cdata;int w, h;{   int rx, ry;   float rm, compute_slope();   int crx, slimit;   int take_step;   rx = re;   crx = rx;   ry = fsy[min(w-1, re+1)];   slimit = step_limit(msw);   /* compute the slope of the cut line projection */   rm = compute_slope((float)rx, (float)ry, (float)elbow_x, (float)tsy[elbow_x]);   take_step = TRUE;   /* while right steps do not exceed the elbow */   /* and other stopping conditions not met ... */   while((crx >= elbow_x) && (take_step)){      /* take next step */      take_step = process_b_corner_slice(crx, rm, rx, ry, rs, re, slimit,                                          ebin, sw, fsy, tsy, nsw, cdata, w, h);      crx--;   }}/***************************************************************************//* br_corner_cut_slope - determines the slope of the cut for a bottom-right*//* corner by measuring first derivative changes in y between the top of    *//* the line to the character data on the top-right side of the corner for  *//* a specified duration.                                                   *//***************************************************************************/br_corner_cut_slope(rm, rx, ry, rs, re, msw, ebin, fsy, tsy, nsw, cdata, w, h)float *rm;int *rx, *ry;int rs, re, msw, *ebin, *fsy, *tsy, nsw;unsigned char *cdata;int w, h;{   int rdys, nrdys;   /* measure the first derivative changes in y between the top of the line */   /* and the character data on the top-right side of a bottom-right corner. *//*                                  /                                 /^                                / | delta ys                      |        /  v                   ----------------                      |      xx|                      |    xxxx|                   ----------------*/   sum_dys_br_corner(&rdys, &nrdys, rx, ry, rs, re, msw, ebin, fsy, tsy, nsw, cdata, w, h);   /* if charater data was found to compute delta ys ... */   if(nrdys != 0){      /* calculate the slope from the delta y's */      *rm = rdys /(float)nrdys;   }   /* otherwise the slope is vetical */   else      *rm = MAXFLOAT;   my_trace1("br corner cut slope = %f\n", *rm);}/***************************************************************************//* sum_dys_br_corner - measures the first derivative changes in y between  *//* the top of the line and the character data on the top-right side of a   *//* bottom-right corner for a specified duration. The resulting delta ys    *//* are used to compute a slope along which the bottom-right corner will be *//* cut.                                                                    *//***************************************************************************/sum_dys_br_corner(rdys, nrdys, rx, ry, rs, re, msw, ebin, fsy, tsy, nsw, cdata, w, h)int *rdys, *nrdys, *rx, *ry;int rs, re, msw, *ebin, *tsy, *fsy, nsw;unsigned char *cdata;int w, h;{   int i, x, sum = 0, c = 0, diff;   int oy, ny, slimit;   /* if there is no data to the right of the run of unerased slices ... */   if(re == (nsw - 1)){      /* return 0 delta dys ==> vertical slope */      *rdys = 0;      *nrdys = 0;      *rx = re;      *ry = fsy[re];      return;   }   /* start dys to the right of the run of unerased slices */   x = re + 1;   /* locate the first black pixel upward */   /* this black pixel "should" be part of the character data */   if((oy = find_pix_north(BLACK_PIX, x, max(0,fsy[x]-1), cdata, w, h)) != NOT_FOUND){      slimit = step_limit(msw);      /* compute the distance between the top of the line and the */      /* character data */      diff = oy - fsy[x];   }   /* if character data not found */   /* OR the delta is too big ... */   if((oy == NOT_FOUND) || (-diff > slimit)){      /* return 0 delta dys ==> vertical slope */      *rdys = 0;      *nrdys = 0;      *rx = x;      *ry = fsy[x];      return;   }   /* store the very first point of the character data */   /* to the right of the run of unerased slices */   *rx = x;   *ry = oy;   /* bump to the next slice on right */   x++;   /* for the specified duration */   /* AND while slices to the right */   /* AND while curent slice has been erased ... */   for(i = 1; (i < RUN_DYS)&&(x<w)&&(ebin[x] == ERASED); i++,x++){      /* find the edge of the character data upward */      if((ny = find_pix_north(BLACK_PIX, x, max(0,fsy[x]-1), cdata, w, h)) != NOT_FOUND)         /* compute change in previous and current slices' character data ys */         diff = ny - oy;      /* if character data not found */      /* OR the delta is too big, then stop computing delta ys */      if((ny == NOT_FOUND) || (-diff > slimit))         break;      /* otherwise accumulate new delta y */      sum += diff;      oy = ny;      c++;   }   *rdys = sum;   *nrdys = c;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线播放视频一区| 国产精品久久久久久亚洲毛片| 在线观看亚洲专区| 99久久精品免费看国产 | 精品在线观看视频| 亚洲国产一区二区视频| 亚洲成人在线网站| 亚洲精品高清在线| 欧美一级一级性生活免费录像| 91精品中文字幕一区二区三区| 欧美色视频在线观看| 国产精品一区二区果冻传媒| 黄色资源网久久资源365| 天天色综合天天| 亚洲欧美另类综合偷拍| 国产精品久久久爽爽爽麻豆色哟哟| 国产清纯白嫩初高生在线观看91 | 中文字幕一区二区日韩精品绯色| 国产精品污网站| 亚洲精品一区二区三区在线观看 | 国产偷v国产偷v亚洲高清| 日韩三级免费观看| 日韩欧美一区二区免费| 91精品国产综合久久久久| 亚洲日本成人在线观看| 亚洲午夜一二三区视频| 中文字幕日本乱码精品影院| 欧美午夜精品一区二区蜜桃| 亚洲午夜免费电影| 综合在线观看色| 国产精品网站在线| 欧美肥妇free| 91麻豆精品国产自产在线观看一区 | 五月天欧美精品| 亚洲一区二区三区三| 日韩—二三区免费观看av| 日韩成人一区二区| 国产精品一卡二| 成人av网址在线| 99re8在线精品视频免费播放| 97久久精品人人做人人爽50路| 99在线热播精品免费| 色菇凉天天综合网| 欧美精品久久久久久久多人混战 | 一区二区三区美女视频| 欧美日韩中文字幕精品| 成人黄色在线视频| 色国产精品一区在线观看| 日韩一级高清毛片| 欧美日韩国产123区| wwwwww.欧美系列| 欧美大片国产精品| 国产精品午夜在线观看| 亚洲乱码日产精品bd| 亚洲超碰精品一区二区| 国产精品中文有码| 欧美日韩高清在线播放| 亚洲一级在线观看| 国产精品第四页| 天堂午夜影视日韩欧美一区二区| 久久99日本精品| 在线视频中文字幕一区二区| 国产精品丝袜久久久久久app| 日韩精品五月天| 91黄色激情网站| 国产精品萝li| 丰满少妇在线播放bd日韩电影| 欧美精品一区二区三区蜜臀| 亚洲色图在线看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 99re热视频这里只精品| 日本一区二区在线不卡| 国产一区二区免费视频| 色婷婷综合中文久久一本| 欧美人与z0zoxxxx视频| 亚洲精品视频一区二区| 色综合久久综合网97色综合| 国产精品成人一区二区三区夜夜夜| 久久99久久99| 久久精品亚洲精品国产欧美| 国产麻豆精品一区二区| 国产欧美中文在线| av激情成人网| 国产麻豆视频一区| 色综合久久综合| 亚洲精品国产精华液| 欧美区在线观看| 日韩 欧美一区二区三区| 色婷婷狠狠综合| 亚洲欧洲日产国码二区| 欧美一区二区三区四区视频 | 欧美丰满少妇xxxxx高潮对白| 亚洲精品久久久久久国产精华液| 欧美一级免费观看| 91在线精品一区二区三区| 美女视频黄久久| 亚洲女子a中天字幕| 国产亚洲一区二区三区| 不卡一区二区中文字幕| 午夜精品福利视频网站| 中文字幕乱码一区二区免费| 精品区一区二区| 99r精品视频| 另类欧美日韩国产在线| 一二三四区精品视频| 久久新电视剧免费观看| 欧美三级日本三级少妇99| 狠狠色狠狠色综合| 亚洲韩国精品一区| 亚洲一区中文在线| 亚洲va韩国va欧美va| 国产清纯白嫩初高生在线观看91 | 久久国产精品露脸对白| 国产亚洲美州欧州综合国| 在线免费观看不卡av| 国产精品一区二区黑丝| 一区二区三区在线观看国产| 国产欧美日韩视频在线观看| 精品久久五月天| 精品欧美一区二区在线观看| 日韩欧美一级在线播放| 欧美人妖巨大在线| 欧美高清性hdvideosex| 色综合天天综合网天天看片| 精品伊人久久久久7777人| 青青草成人在线观看| 欧美激情中文不卡| 91在线你懂得| 91视频xxxx| 欧美男同性恋视频网站| 久久精品免视看| 久久久久久久久久久久久女国产乱| 成人一区二区三区中文字幕| 亚洲欧美日本韩国| 日韩电影一二三区| 视频一区二区欧美| 日本v片在线高清不卡在线观看| 日韩国产欧美三级| 九九九精品视频| 国产成人在线影院| 91国偷自产一区二区三区观看| 一本色道久久综合亚洲aⅴ蜜桃| 欧美性高清videossexo| 日韩欧美第一区| 国产精品久久久久婷婷| 性做久久久久久久免费看| 国产资源精品在线观看| 色综合久久综合中文综合网| 国产午夜精品一区二区三区四区 | 亚洲超碰精品一区二区| 色综合色综合色综合色综合色综合| 久久久久久99久久久精品网站| 亚洲国产日韩在线一区模特| 99久久国产综合精品色伊| 国产天堂亚洲国产碰碰| 久久 天天综合| 日韩欧美国产电影| 麻豆精品视频在线| 日韩欧美亚洲另类制服综合在线 | 日韩一级欧美一级| 亚洲妇女屁股眼交7| 国产99久久久国产精品潘金| 99re成人在线| 国产精品拍天天在线| 亚洲网友自拍偷拍| 国产成人精品午夜视频免费| 欧美精品色综合| 伊人性伊人情综合网| 国产成人精品亚洲777人妖| 这里只有精品电影| 日韩黄色免费网站| 亚洲午夜私人影院| 乱一区二区av| 日韩精品影音先锋| 老汉av免费一区二区三区| 91精品国产手机| www.爱久久.com| 精品久久久久久久久久久院品网| 国产女人水真多18毛片18精品视频 | 91视频一区二区三区| 国产视频一区二区在线| 精品一区二区成人精品| 欧美久久久久久久久中文字幕| 久久婷婷国产综合国色天香| 夜夜操天天操亚洲| 欧美日韩一区久久| 亚洲一区二区三区四区中文字幕| 成人精品免费视频| 2021中文字幕一区亚洲| 天堂av在线一区| 精品少妇一区二区| 国产精品白丝jk白祙喷水网站| 91精品国产综合久久蜜臀| 久久99精品久久久久久国产越南| 亚洲精品在线电影| 国产aⅴ精品一区二区三区色成熟| 久久免费的精品国产v∧| 成人av在线网站| 亚洲成人av电影在线| 在线播放91灌醉迷j高跟美女 |