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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? trkslope.c

?? NIST Handwriting OCR Testbed
?? C
字號:
/*# proc: slope_left_above - determines the slope of the left side of a character# proc:                    piece touching above the line.# proc: slope_left_below - determines the slope of the left side of a character# proc:                    piece touching below the line.# proc: slope_right_above - determines the slope of the right side of a character# proc:                     piece touching above the line.# proc: slope_right_below - determines the slope of the right side of a character# proc:                     piece touching below the line.*/#include <stdio.h>#include <values.h>#include <defs.h>#include <rmline.h>#include <mytrace.h>/***************************************************************************//* slope_left_above - determines the slope of the left side of a character *//* piece touching above the line.                                          *//***************************************************************************/float slope_left_above(sx, sy, slimit, slen, cdata, w, h)int sx, sy, slimit, slen;unsigned char *cdata;int w, h;{   unsigned char *cptr;   int i, x, y, cx, ox;   int dxs, n, diff;   float m;   my_trace("entered slope_left_above\n");   x = sx;   y = sy;   cptr = cdata + (y * w) + x;   /* if starting on a white pixel, look right for black */   if(*cptr == WHITE_PIX){      if((cx = find_pix_east(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND){         /* maybe a problem, but call it vertical for now */         my_trace("slope not found, assuming vertical\n");         my_trace("finished slope_left_above\n");         return(MAXFLOAT);      }      else{         x = cx;         cptr = cdata + (y * w) + x;      }   }   dxs = 0;   n = 0;   /* trace the character edge */   for(i = 0; i < slen; i++){      ox = x;      /* move up a scanline */      y--;      if(y < 0)         /* if traced off the image, then stop */         break;      cptr -= w;      /* if white pixel, look right for black */      if(*cptr == WHITE_PIX){         if((cx = find_pix_east(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;      }      else{         /* if black pixel, look left for white */         if((cx = find_pix_west(WHITE_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;         else            /* if white pixel found, then jump back one to black */            cx++;      }      /* if still on the image ... */      x = cx;      cptr = cdata + (y * w) + x;      /* compute delta in x */      diff = (ox - x);      /* if jump is too big, then stop */      if(abs(diff) > slimit)         break;      else{         dxs += (ox - x);         n++;      }   }   if(dxs == 0)      m = MAXFLOAT;   else      m = n / (float)dxs;   my_trace("finished slope_left_above\n");   return(m);}/***************************************************************************//* slope_left_below - determines the slope of the left side of a char      *//* piece touching below the line.                                          *//***************************************************************************/float slope_left_below(sx, sy, slimit, slen, cdata, w, h)int sx, sy, slimit, slen;unsigned char *cdata;int w, h;{   unsigned char *cptr;   int i, x, y, cx, ox;   int dxs, n, diff;   float m;   my_trace("entered slope_left_below\n");   x = sx;   y = sy;   cptr = cdata + (y * w) + x;   /* if starting on a white pixel, look right for black */   if(*cptr == WHITE_PIX){      if((cx = find_pix_east(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND){         /* maybe a problem, but call it vertical for now */         my_trace("slope not found, assuming vertical\n");         my_trace("finished slope_left_below\n");         return(MAXFLOAT);      }      else{         x = cx;         cptr = cdata + (y * w) + x;      }   }   dxs = 0;   n = 0;   /* trace character edge */   for(i = 0; i < slen; i++){      ox = x;      /* move down a scanline */      y++;      if(y >= h)         /* if traced off the image, then stop */         break;      cptr += w;      /* if white pixel, look right for black */      if(*cptr == WHITE_PIX){         if((cx = find_pix_east(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;      }      else{         /* if black pixel, look left for white */         if((cx = find_pix_west(WHITE_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;         else            /* if white pixel found, then jump back one to black */            cx++;      }      /* if still on the image ... */      x = cx;      cptr = cdata + (y * w) + x;      /* compute delta in x */      diff = (ox - x);      /* if jump is too big, then stop */      if(abs(diff) > slimit)         break;      else{         dxs += (ox - x);         n++;      }   }   if(dxs == 0)      m = MAXFLOAT;   else      m = (-1.0*n) / (float)dxs;   my_trace("finished slope_left_below\n");   return(m);}/***************************************************************************//* slope_right_above - determines the slope of the right side of a char    *//* piece touching above the line.                                          *//***************************************************************************/float slope_right_above(sx, sy, slimit, slen, cdata, w, h)int sx, sy, slimit, slen;unsigned char *cdata;int w, h;{   unsigned char *cptr;   int i, x, y, cx, ox;   int dxs, n, diff;   float m;   my_trace("entered slope_right_above\n");   x = sx;   y = sy;   cptr = cdata + (y * w) + x;   /* if starting on a white pixel, look left for black */   if(*cptr == WHITE_PIX){      if((cx = find_pix_west(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND){         /* maybe a problem, but call it vertical for now */         my_trace("slope not found, assuming vertical\n");         my_trace("finished slope_right_above\n");         return(MAXFLOAT);      }      else{         x = cx;         cptr = cdata + (y * w) + x;      }   }   dxs = 0;   n = 0;   /* trace character edge */   for(i = 0; i < slen; i++){      ox = x;      /* move up a scanline */      y--;      if(y < 0)         /* if traced off the image, then stop */         break;      cptr -= w;      /* if white pixel, look left for black */      if(*cptr == WHITE_PIX){         if((cx = find_pix_west(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;      }      else{         /* if black pixel, look right for white */         if((cx = find_pix_east(WHITE_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;         else            /* if white pixel found, then jump back one to black */            cx--;      }      /* if still on the image ... */      x = cx;      cptr = cdata + (y * w) + x;      /* compute delta in x */      diff = (ox - x);      /* if jump is too big, then stop */      if(abs(diff) > slimit)         break;      else{         dxs += (ox - x);         n++;      }   }   if(dxs == 0)      m = MAXFLOAT;   else      m = n / (float)dxs;   my_trace("finished slope_right_above\n");   return(m);}/***************************************************************************//* slope_right_below - determines the slope of the right side of a char    *//* piece touching below the line.                                          *//***************************************************************************/float slope_right_below(sx, sy, slimit, slen, cdata, w, h)int sx, sy, slimit, slen;unsigned char *cdata;int w, h;{   unsigned char *cptr;   int i, x, y, cx, ox;   int dxs, n, diff;   float m;   my_trace("entered slope_right_below\n");   x = sx;   y = sy;   cptr = cdata + (y * w) + x;   /* if starting on a white pixel, look left for black */   if(*cptr == WHITE_PIX){      if((cx = find_pix_west(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND){         /* maybe a problem, but call it vertical for now */         my_trace("slope not found, assuming vertical\n");         my_trace("finished slope_right_below\n");         return(MAXFLOAT);      }      else{         x = cx;         cptr = cdata + (y * w) + x;      }   }   dxs = 0;   n = 0;   /* trace character edge */   for(i = 0; i < slen; i++){      ox = x;      /* move down a scanline */      y++;      if(y >= h)         /* if traced off the image, then stop */         break;      cptr += w;      /* if white pixel, look left for black */      if(*cptr == WHITE_PIX){         if((cx = find_pix_west(BLACK_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;      }      else{         /* if black pixel, look right for white */         if((cx = find_pix_east(WHITE_PIX, x, y, cdata, w, h)) == NOT_FOUND)            /* if traced off the image, then stop */            break;         else            /* if white pixel found, then jump back one to black */            cx--;      }      /* if still on the image ... */      x = cx;      cptr = cdata + (y * w) + x;      /* compute delta in x */      diff = (ox - x);      if(abs(diff) > slimit)         break;      /* if jump is too big, then stop */      else{         dxs += (ox - x);         n++;      }   }   if(dxs == 0)      m = MAXFLOAT;   else      m = (-1.0*n) / (float)dxs;   my_trace("finished slope_right_below\n");   return(m);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品免费网站| 一区二区三区av电影| 亚洲一区在线视频| 国产乱码精品一区二区三区忘忧草 | 欧美精品粉嫩高潮一区二区| 中文字幕电影一区| 蜜臀久久99精品久久久画质超高清 | 国产精品理论在线观看| 男男视频亚洲欧美| av亚洲精华国产精华精华| 日韩丝袜情趣美女图片| 亚洲精品ww久久久久久p站| 国产精品一区在线| 欧美大尺度电影在线| 亚洲尤物视频在线| av爱爱亚洲一区| 国产欧美日韩综合精品一区二区 | 欧美极品少妇xxxxⅹ高跟鞋| 日韩av在线发布| 欧美日韩国产综合视频在线观看 | 国产精品电影一区二区| 黄网站免费久久| 91精品在线观看入口| 亚洲综合一二三区| 91欧美一区二区| 国产精品欧美极品| 国产伦精品一区二区三区免费 | 不卡视频在线观看| 久久久国产精华| 精品一区二区三区久久| 欧美一区二区三区思思人| 婷婷开心激情综合| 欧美精品丝袜中出| 亚洲成a人片在线不卡一二三区| 色一情一乱一乱一91av| 亚洲欧美自拍偷拍色图| av亚洲精华国产精华精| 综合分类小说区另类春色亚洲小说欧美| 国产91丝袜在线18| 中文字幕欧美激情| 波多野结衣中文一区| 国产精品久久久久久久第一福利 | 国产精品资源在线观看| 亚洲精品一区二区三区福利| 韩国v欧美v日本v亚洲v| 久久综合久久鬼色| 国产乱一区二区| 国产欧美一区二区精品秋霞影院 | 国产精品亚洲视频| 国产婷婷色一区二区三区四区| 激情图片小说一区| 久久久国产一区二区三区四区小说 | 1区2区3区欧美| 91蝌蚪porny| 亚洲制服丝袜在线| 91麻豆精品国产无毒不卡在线观看 | 亚洲欧美国产77777| 91在线小视频| 一区二区三区欧美视频| 欧美裸体一区二区三区| 麻豆精品在线视频| 久久久精品国产99久久精品芒果| 国产精品1区二区.| 亚洲日本在线a| 欧美视频在线一区二区三区| 日韩制服丝袜先锋影音| 2020日本不卡一区二区视频| 国产v综合v亚洲欧| 亚洲人成电影网站色mp4| 欧美艳星brazzers| 免费成人美女在线观看.| 久久午夜羞羞影院免费观看| av成人免费在线| 亚洲国产成人91porn| 日韩免费在线观看| 99视频精品全部免费在线| 亚洲一区视频在线| 欧美本精品男人aⅴ天堂| 丁香婷婷综合网| 亚洲午夜精品一区二区三区他趣| 欧美一区二区精品久久911| 九九在线精品视频| 亚洲婷婷在线视频| 欧美日韩国产a| 国产乱一区二区| 亚洲制服丝袜av| 337p日本欧洲亚洲大胆精品| 99精品视频在线免费观看| 亚洲第一在线综合网站| 日韩欧美不卡在线观看视频| 成人永久aaa| 午夜精品久久一牛影视| 久久久91精品国产一区二区三区| 91免费视频大全| 狠狠久久亚洲欧美| 亚洲一区二区三区美女| 久久久亚洲精品一区二区三区| 一本大道av一区二区在线播放| 欧美aⅴ一区二区三区视频| 中文字幕中文字幕一区| 欧美一区二区国产| 99视频在线精品| 久久国产麻豆精品| 亚洲另类春色校园小说| 精品久久人人做人人爰| 在线视频综合导航| 国产成人欧美日韩在线电影| 午夜国产精品一区| 欧美不卡123| 久久疯狂做爰流白浆xx| 久久午夜电影网| 国产激情91久久精品导航 | 中文字幕欧美三区| 91精品综合久久久久久| 91女人视频在线观看| 国产乱人伦偷精品视频不卡| 午夜国产不卡在线观看视频| 亚洲人成7777| 国产日韩欧美麻豆| 欧美成va人片在线观看| 欧美视频三区在线播放| 97精品久久久久中文字幕| 国产美女主播视频一区| 青椒成人免费视频| 亚洲永久精品大片| 中文字幕日本不卡| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美日韩成人激情| 色综合 综合色| 成人国产精品免费| 国产中文字幕一区| 免费不卡在线视频| 亚洲mv在线观看| 艳妇臀荡乳欲伦亚洲一区| 国产精品色哟哟网站| 久久亚洲一级片| 日韩一区二区中文字幕| 欧美人与z0zoxxxx视频| 色哟哟一区二区在线观看| 成人91在线观看| 成人av动漫在线| 成人午夜视频免费看| 国产一区二区三区不卡在线观看| 美女视频网站久久| 日韩成人精品在线| 爽好多水快深点欧美视频| 亚洲国产成人av网| 亚洲一级不卡视频| 一区二区三区 在线观看视频| 中文字幕中文字幕在线一区| 国产精品青草久久| 国产精品你懂的在线| 国产精品久久国产精麻豆99网站| 久久久久久9999| 国产欧美日韩综合精品一区二区| 久久久美女艺术照精彩视频福利播放| 精品久久国产字幕高潮| 日韩一区二区三区四区| 精品少妇一区二区| 精品国产乱码久久久久久闺蜜 | 欧美日韩美少妇| 欧美三级欧美一级| 欧美无乱码久久久免费午夜一区| 欧美亚洲一区二区三区四区| 欧美日韩国产一区| 欧美福利一区二区| 日韩视频在线永久播放| 精品少妇一区二区三区视频免付费| 精品久久久久久久久久久久包黑料| 久久综合久久综合亚洲| 中文字幕巨乱亚洲| 亚洲欧美综合色| 亚洲最大成人网4388xx| 亚洲国产精品久久不卡毛片| 日本午夜精品一区二区三区电影| 日韩电影在线免费看| 蜜臀久久久99精品久久久久久| 另类的小说在线视频另类成人小视频在线 | 亚洲激情男女视频| 天天操天天综合网| 久国产精品韩国三级视频| 粉嫩绯色av一区二区在线观看 | 国产成人av一区二区| caoporn国产精品| 在线影视一区二区三区| 欧美欧美午夜aⅴ在线观看| 欧美一区二区播放| 久久精品在线免费观看| 亚洲欧洲另类国产综合| 亚洲福利国产精品| 美女视频一区在线观看| 成人夜色视频网站在线观看| 91蜜桃婷婷狠狠久久综合9色| 欧美伦理电影网| 国产日韩三级在线| 亚洲精品精品亚洲| 毛片av一区二区| 91在线观看美女| 日韩一级二级三级精品视频| 国产女主播一区|