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

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

?? chrpiece.c

?? NIST Handwriting OCR Testbed
?? C
字號:
/*# proc: process_char_pieces_ml - shapes and smooths stems and descenders of character# proc:              strokes that intersect the lines using a locally dynamic vector# proc:              of median line widths.# proc: identify_char_piece - categorizes the character piece by examining# proc:              its left and right edges.# proc: extract_shape_features - computes 4 features used to represent the# proc:              character piece.# proc: process_char_piece - main switch for shaping and smoothing a character# proc:              piece based on its identified type.*/#include <stdio.h>#include <defs.h>#include <rmline.h>#include <mytrace.h>/***************************************************************************//* process_char_pieces - cleans up the portions of the characters around   *//* where they intersected the removed line. This routine shapes and        *//* smooths stems and descenders.                                           *//***************************************************************************//***************************************************************************/process_char_pieces_ml(ebin, msws, sw, fsy, tsy, nsw, cdata, w, h)int *ebin, *msws, *sw, *fsy, *tsy, nsw;unsigned char *cdata;int w, h;{   int nextbin, chartype;   int rs, re;   nextbin = 0;   /* any slice not erased to this point is assumed to belong to a character */   while(next_n_run(0, &rs, &re, nextbin, ebin, nsw)){      nextbin = re+1;      /* identify the shape of the piece */      chartype = identify_char_piece(rs, re, fsy, tsy, nsw, w, h);      /* process the piece of character */      process_char_piece(chartype, rs, re, msws[rs], ebin, sw, fsy, tsy, nsw, cdata, w, h);   }}/***************************************************************************//* identify_char_piece - attempts to categorize the shape of a contiguous  *//* run of slices potentially containing both character and line data. It   *//* does this by simply looking at the left and right edges of the run, and *//* determining if data exists above or below the the line being removed.   *//***************************************************************************/identify_char_piece(rs, re, fsy, tsy, nsw, w, h)int rs, re, *fsy, *tsy, nsw;int w, h;{   int lb, la;   int rb, ra;   /* if only one slice, then really don't know what it is */   if(nsw == 1)      return(RUN_UNKNOWN);   /* identification is conducted based on four extracted features. */   /* these features represent whether character data touch above   */   /* and/or below the line on the left and right sides of the      */   /* current run of slices. to measure this, the position of the   */   /* last nbring slice previously erased is subtracted from the    */   /* corresponding edge of the run of current slices. if the delta */   /* is positive then character data is "assumed" to touch in that */   /* area. this measurement works because the previously erased    */   /* slice was removed because it was determined to "completely"   */   /* part of the line. this provides a reference to the relative   */   /* location of the line, from which the features can be measured.*/   /* extract the four features */   extract_shape_features(&la, &lb, &ra, &rb, rs, re, fsy, tsy, nsw);   /* now try to identify the run of slices based on the four features */   if(is_boot(lb, la, rb, ra)){      my_trace2("run [%d .. %d] boot\n", rs, re);      return(RUN_BOOT);   }   if(is_hat(lb, la, rb, ra)){      my_trace2("run [%d .. %d] hat\n", rs, re);      return(RUN_HAT);   }   if(is_ncross(lb, la, rb, ra)){      my_trace2("run [%d .. %d] negative crossover\n", rs, re);      return(RUN_NCROSS);   }   if(is_pcross(lb, la, rb, ra)){      my_trace2("run [%d .. %d] positive crossover\n", rs, re);      return(RUN_PCROSS);   }   if(is_thru_dl(lb, la, rb, ra)){      my_trace2("run [%d .. %d] thru down and left\n", rs, re);      return(RUN_THRU_DL);   }   if(is_thru_dr(lb, la, rb, ra)){      my_trace2("run [%d .. %d] thru down and right\n", rs, re);      return(RUN_THRU_DR);   }   if(is_thru_ul(lb, la, rb, ra)){      my_trace2("run [%d .. %d] thru up and left\n", rs, re);      return(RUN_THRU_UL);   }   if(is_thru_ur(lb, la, rb, ra)){      my_trace2("run [%d .. %d] thru up and right\n", rs, re);      return(RUN_THRU_UR);   }   /* the run may not fit into one of these 8 categories */   /* in this case the run is simply ignored */   my_trace2("run [%d .. %d] unidentified\n", rs, re);   return(RUN_UNKNOWN);}/***************************************************************************//* extract_shape_features - computes the four features used to represent   *//* whether character data touch above and/or below the line on the left    *//* and right sides of the current run of unerased slices. To measure this, *//* the position of the closest nbring erased slice is subtracted from the  *//* corresponding edge of the run of unerased slices. If the delta is       *//* positive then character data is "assumed" to touch in that area.        *//***************************************************************************/extract_shape_features(la, lb, ra, rb, rs, re, fsy, tsy, nsw)int *la, *lb, *ra, *rb;int rs, re, *fsy, *tsy, nsw;{   int lx, rx, max_x;   /* extract the four features */   lx = rs - 1;   rx = re + 1;   max_x = nsw - 1;   *lb = tsy[rs] - tsy[max(0,lx)];   *la = fsy[max(0,lx)] - fsy[rs];   *rb = tsy[re] - tsy[min(rx, max_x)];   *ra = fsy[min(rx, max_x)] - fsy[re];   if(*lb > 0)      my_trace("left edge: character data below line\n");   if(*la > 0)      my_trace("left edge: character data above line\n");   if(*lb <= 0 && *la <= 0)      my_trace("left edge: no character data found\n");   if(*rb > 0)      my_trace("right edge: character data below line\n");   if(*ra > 0)      my_trace("right edge: character data above line\n");   if(*rb <= 0 && *ra <= 0)      my_trace("right edge: no character data found\n");}/***************************************************************************//* process_char_piece - main switch for shaping and smoothing various      *//* categories of character descenders and strokes that touch the line.     *//***************************************************************************/process_char_piece(chartype, rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh)int chartype, rs, re, msw, *ebin, *sw, *fsy, *tsy, nsw;unsigned char *cdata;int fw, fh;{   switch(chartype){   case RUN_BOOT:      /* character data sitting on top of the line *//*                      \           /                       \         /                     ---------------                       |x       x|                       |xx     xx|                     ---------------*/      process_boot(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_HAT:      /* character data touching the bottom of the line *//*                    ---------------                      |xx     xx|                      |x       x|                    ---------------                      /         \                     /           \*/      process_hat(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_NCROSS:      /* character stroke with negative slope (downward right to left) */      /* passing through the line *//*                          /       /                         /       /                   -----------------                     |xx        x|                     |x        xx|                   -----------------                     /       /                    /       /*/      process_ncross(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_PCROSS:      /* character stroke with positive slope (downward left to right) */      /* passing through the line *//*                    \       \                     \       \                   -----------------                     |x        xx|                     |xx        x|                   -----------------                         \       \                          \       \*/      process_pcross(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_THRU_DL:      /* character stoke passing through and protruding on the */      /* bottom left of the line *//*                       /        /                      |        /                   ----------------                      |      xx|                      |    xxxx|                   ----------------                      | /                      |/*/      process_thru_dl(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_THRU_DR:      /* character stoke passing through and protruding on the */      /* bottom right of the line *//*                     \        \                      \        |                   ----------------                      |xx      |                      |xxxx    |                   ----------------                             \ |                              \|*/      process_thru_dr(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_THRU_UL:      /* character stoke passing through and protruding on the */      /* top left of the line *//*                      |\                      | \                   ----------------                      |    xxxx|                      |      xx|                   ----------------                      |        \                       \        \*/      process_thru_ul(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   case RUN_THRU_UR:      /* character stoke passing through and protruding on the */      /* top right of the line *//*                              /|                             / |                   ----------------                      |xxxx    |                      |xx      |                   ----------------                      /        |                     /        /*/      process_thru_ur(rs, re, msw, ebin, sw, fsy, tsy, nsw, cdata, fw, fh);   break;   default:      /* if character piece not identified, just ignore it and continue */      my_trace("category of character piece not identified\n");   break;   }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区在线不卡| 91精品国产综合久久香蕉的特点| 亚洲精品一区在线观看| 精品亚洲免费视频| 精品国产乱码久久久久久图片 | 91精品国产福利| 丝袜美腿一区二区三区| 日韩精品一区二区三区四区 | 欧美日本视频在线| 日本不卡不码高清免费观看| 26uuu另类欧美亚洲曰本| 国产成人av网站| 亚洲品质自拍视频| 日本道在线观看一区二区| 亚洲a一区二区| 久久久综合视频| 成人国产精品免费观看动漫| 亚洲男人天堂一区| 91精品国产欧美一区二区| 国产成人av一区二区三区在线观看| 亚洲国产精品ⅴa在线观看| 99在线精品免费| 日本亚洲视频在线| 欧美激情在线观看视频免费| 色狠狠综合天天综合综合| 青青草91视频| 国产精品久久久久久久午夜片 | 在线不卡免费欧美| 国产精品影音先锋| 亚洲午夜在线电影| 久久伊人中文字幕| 一本色道久久综合狠狠躁的推荐| 日本欧洲一区二区| 成人欧美一区二区三区黑人麻豆 | 99久久综合国产精品| 亚洲一区二区不卡免费| 26uuu色噜噜精品一区二区| 成人动漫av在线| 日韩电影在线免费观看| 中文字幕中文字幕一区二区| 3d成人动漫网站| av网站一区二区三区| 蜜臀av一区二区| 亚洲免费在线看| 久久精品欧美一区二区三区不卡| 精品视频在线视频| 91香蕉视频mp4| 国产资源在线一区| 日韩二区三区在线观看| **欧美大码日韩| 久久综合色播五月| 在线播放/欧美激情| 92精品国产成人观看免费| 狠狠网亚洲精品| 日韩av电影免费观看高清完整版| ●精品国产综合乱码久久久久| 精品国产乱子伦一区| 在线电影欧美成精品| 91久久香蕉国产日韩欧美9色| 国产精品中文字幕日韩精品| 免费观看成人鲁鲁鲁鲁鲁视频| 一区二区三区精品在线| 亚洲欧洲日产国码二区| 久久影院视频免费| 精品精品国产高清a毛片牛牛| 欧美日韩亚洲丝袜制服| 一本色道a无线码一区v| 99热精品国产| 99精品国产99久久久久久白柏| 国产成人综合在线| 国产一区二区0| 久久99精品国产麻豆不卡| 蜜臀va亚洲va欧美va天堂| 天天免费综合色| 天天色综合成人网| 婷婷开心久久网| 日本欧美一区二区三区乱码| 日韩高清在线不卡| 日韩av一区二区三区| 免费成人在线观看| 国产精品中文有码| 国产夫妻精品视频| 国产福利一区二区| 国产91在线|亚洲| 成人自拍视频在线观看| av在线不卡电影| 色偷偷88欧美精品久久久| 欧美又粗又大又爽| 欧美二区三区的天堂| 日韩一本二本av| 精品播放一区二区| 国产亚洲精品超碰| 亚洲欧洲精品成人久久奇米网| 亚洲欧美自拍偷拍| 亚洲在线成人精品| 午夜成人免费视频| 久久99国产精品免费网站| 国内精品久久久久影院薰衣草| 国产尤物一区二区在线| 成人一级片在线观看| 色悠悠久久综合| 91麻豆精品国产自产在线| 久久一二三国产| 欧美激情综合五月色丁香小说| 综合久久一区二区三区| 亚洲综合偷拍欧美一区色| 日韩黄色免费电影| 国产一区二区在线观看免费| 成人免费视频播放| 欧美探花视频资源| 日韩三级中文字幕| 国产精品白丝在线| 日韩电影在线一区二区| 国产成人在线影院| 91黄色激情网站| 欧美不卡一二三| 国产欧美日韩一区二区三区在线观看| 亚洲麻豆国产自偷在线| 毛片一区二区三区| 99精品欧美一区二区蜜桃免费| 91福利在线看| 国产亚洲精品免费| 丝袜美腿亚洲综合| 成人高清视频在线| 宅男在线国产精品| 国产精品国产馆在线真实露脸 | 奇米四色…亚洲| 懂色av一区二区三区免费观看 | 成人免费视频一区二区| 欧美日韩日日摸| 亚洲国产精品av| 日本成人在线不卡视频| 91丝袜国产在线播放| 日韩欧美资源站| 一区二区三区久久久| 丁香婷婷综合激情五月色| 欧美精品三级在线观看| 国产精品久久久一区麻豆最新章节| 奇米综合一区二区三区精品视频| 99久久精品免费| 久久免费美女视频| 日韩vs国产vs欧美| 91精品福利视频| 亚洲欧美综合色| 高清av一区二区| 久久日韩精品一区二区五区| 亚洲成人手机在线| 色天天综合色天天久久| 国产亚洲婷婷免费| 精品无码三级在线观看视频| 欧美二区在线观看| 亚洲国产中文字幕在线视频综合| 波多野结衣在线aⅴ中文字幕不卡| 欧美一区午夜视频在线观看| 亚洲一区二区四区蜜桃| 97精品国产露脸对白| 国产精品人成在线观看免费| 美女www一区二区| 91麻豆精品91久久久久久清纯| 一区二区三区中文免费| 91网站最新地址| 中文字幕字幕中文在线中不卡视频| 韩国一区二区三区| 久久综合九色综合97_久久久| 免费在线观看成人| 日韩欧美在线网站| 蜜臀a∨国产成人精品| 51精品国自产在线| 日本在线播放一区二区三区| 91麻豆精品国产91久久久使用方法 | 欧美三区在线观看| 一区二区成人在线视频| 色婷婷精品大在线视频| 亚洲精品高清在线| 欧美中文字幕一区| 亚洲国产wwwccc36天堂| 欧美美女一区二区| 日韩电影一区二区三区四区| 91麻豆精品国产自产在线观看一区| 午夜av一区二区| 日韩欧美视频在线| 国产美女娇喘av呻吟久久| 久久久av毛片精品| 成人黄色在线视频| 亚洲精品日韩一| 欧美午夜在线一二页| 日韩和欧美的一区| 精品国产91久久久久久久妲己| 国产综合久久久久久久久久久久| 精品日韩成人av| 成人精品免费看| 亚洲人成在线观看一区二区| 欧美午夜精品久久久久久超碰 | 成人欧美一区二区三区小说 | 国产日韩影视精品| 国产不卡高清在线观看视频| 亚洲欧美激情小说另类| 777久久久精品| 国产成人高清视频| 天天色综合天天|