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

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

?? findblob.c

?? NIST Handwriting OCR Testbed
?? C
?? 第 1 頁 / 共 2 頁
字號:
	  *p = *q = 1;    else      fatalerr("findblobnruns", "illegal value for erase_flag", NULL);    *box_w = inner_bw;    *box_h = inner_bh;    return 1;  }  else    fatalerr("findblobnruns", "illegal value for out_flag", NULL);}/********************************************************************//* Grows seed pixel into seed run. */findblob_seed_to_run(y, q)unsigned short y;unsigned char *q;{  unsigned char *r, *w_on, *e_off;  nlim = slim = y;  e_off = (w_on = rasity + y * ww) + ww;  for(*q = 0, r = q + 1; r < e_off && *r; r++)    *r = 0;  for(q--; q >= w_on && *q; q--)    *q = 0;  q++;  list->y = y;  wlim = (list->w_on = q) - w_on;  list->e_off = r;  elim = --r - w_on;}/********************************************************************//* Grows a run northward, i.e. finds any runs that touch its northside. four way connectivity */findblob_grow_n(){  unsigned char *q, *qs, *qe, *r, *w_on, *e_off;  unsigned short y, yow;  if(!(y = list_h->y))    return;  for(q = qs = list_h->w_on - ww, qe = list_h->e_off - ww;    q < qe && !*q; q++);  if(q >= qe)    return;  if(--y < nlim)    nlim = y;  e_off = (w_on = rasity + y * ww) + ww;  for(*q = 0, r = q + 1; r < e_off && *r; r++)    *r = 0;  if(q == qs) {    for(q--; q >= w_on && *q; q--)      *q = 0;    q++;  }  if(list_t == list_off)    findblob_realloc_list();  list_t->y = y;  if((yow = (list_t->w_on = q) - w_on) < wlim)    wlim = yow;  (list_t++)->e_off = r;  while(1) {    for(q = r + 1; q < qe && !*q; q++);    if(q >= qe)      break;    for(*q = 0, r = q + 1; r < e_off && *r; r++)      *r = 0;    if(list_t == list_off)      findblob_realloc_list();    list_t->y = y;    list_t->w_on = q;    (list_t++)->e_off = r;  }  if((yow = --r - w_on) > elim)    elim = yow;}/* same growing but with eight way connectivity */findblob_8grow_n(){  unsigned char *q, *qs, *qe, *r, *w_on, *e_off;  unsigned short y, yow;  if(!(y = list_h->y))    return;  e_off = (w_on = rasity + --y * ww) + ww;  /* Extend limits by one on each end compared to 4-connected version,  but careful not to fall off */  if((qs = list_h->w_on - ww - 1) < w_on)    qs++;  if((qe = list_h->e_off - ww + 1) > e_off)    qe--;  for(q = qs; q < qe && !*q; q++);  if(q >= qe)    return;  if(y < nlim)    nlim = y;  for(*q = 0, r = q + 1; r < e_off && *r; r++)    *r = 0;  if(q == qs) {    for(q--; q >= w_on && *q; q--)      *q = 0;    q++;  }  if(list_t == list_off)    findblob_realloc_list();  list_t->y = y;  if((yow = (list_t->w_on = q) - w_on) < wlim)    wlim = yow;  (list_t++)->e_off = r;  while(1) {    for(q = r + 1; q < qe && !*q; q++);    if(q >= qe)      break;    for(*q = 0, r = q + 1; r < e_off && *r; r++)      *r = 0;    if(list_t == list_off)      findblob_realloc_list();    list_t->y = y;    list_t->w_on = q;    (list_t++)->e_off = r;  }  if((yow = --r - w_on) > elim)    elim = yow;}/********************************************************************//* Grows a run southward, i.e. finds any runs that touch its southside. uses four way connectivity */findblob_grow_s(){  unsigned char *q, *qs, *qe, *r, *w_on, *e_off;  unsigned short y, yow;  if((y = list_h->y + 1) == hh)    return;  for(q = qs = list_h->w_on + ww, qe = list_h->e_off + ww;    q < qe && !*q; q++);  if(q >= qe)    return;  if(y > slim)    slim = y;  e_off = (w_on = rasity + y * ww) + ww;  for(*q = 0, r = q + 1; r < e_off && *r; r++)    *r = 0;  if(q == qs) {    for(q--; q >= w_on && *q; q--)      *q = 0;    q++;  }  if(list_t == list_off)    findblob_realloc_list();  list_t->y = y;  if((yow = (list_t->w_on = q) - w_on) < wlim)    wlim = yow;  (list_t++)->e_off = r;  while(1) {    for(q = r + 1; q < qe && !*q; q++);    if(q >= qe)      break;    for(*q = 0, r = q + 1; r < e_off && *r; r++)      *r = 0;    if(list_t == list_off)      findblob_realloc_list();    list_t->y = y;    list_t->w_on = q;    (list_t++)->e_off = r;  }  if((yow = --r - w_on) > elim)    elim = yow;}/* same growing except with eight way connectivity */findblob_8grow_s(){                   unsigned char *q, *qs, *qe, *r, *w_on, *e_off;  unsigned short y, yow;                                                    if((y = list_h->y + 1) == hh)    return;                       e_off = (w_on = rasity + y * ww) + ww;  if((qs = list_h->w_on + ww - 1) < w_on)    qs++;                                   if((qe = list_h->e_off + ww + 1) > e_off)    qe--;                                     for(q = qs; q < qe && !*q; q++);  if(q >= qe)                          return;     if(y > slim)    slim = y;    for(*q = 0, r = q + 1; r < e_off && *r; r++)    *r = 0;                                      if(q == qs) {    for(q--; q >= w_on && *q; q--)      *q = 0;                          q++;        }        if(list_t == list_off)    findblob_realloc_list();  list_t->y = y;               if((yow = (list_t->w_on = q) - w_on) < wlim)    wlim = yow;                                  (list_t++)->e_off = r;  while(1) {                 for(q = r + 1; q < qe && !*q; q++);    if(q >= qe)                               break;        for(*q = 0, r = q + 1; r < e_off && *r; r++)      *r = 0;                                        if(list_t == list_off)      findblob_realloc_list();    list_t->y = y;                 list_t->w_on = q;    (list_t++)->e_off = r;  }                          if((yow = --r - w_on) > elim)    elim = yow;                 }/********************************************************************//* Reallocates the list to a larger size. */findblob_realloc_list(){  unsigned int newsize;  RUN *oldlist;  if((newsize = list_off - (oldlist = list) + LIST_INCR) >    LIST_MAXSIZE)    fatalerr("findblob_realloc_list", "list would exceed \LIST_MAXSIZE elts", NULL);  if(!(list = (RUN *)realloc(oldlist, newsize * sizeof(RUN))))    syserr("findblob_realloc_list", "realloc", "list");  list_off = list + newsize;  list_h = list + (list_h - oldlist);  list_t = list + (list_t - oldlist);}/********************************************************************//************************************************************//*         Routine:   findblob_stats()                      *//*         Author:    G. T. Candela -> "findblob()"         *//*                                                          *//*         Modifications:                                   *//*           5/2/94 - faster version: uses runs             *//*           Edited:    C. I. Watson  -> "findblob_stats()" *//*           Date:      9/1/94                              *//************************************************************//* Each time findblob_stats is called, it either returns blob stats of thetrue pixels of a binary raster, or indicates that it encountered noblobs in its col-major scan from the desired starting position to thebottom-right corner of the raster.  Parameters are:  ras: Input binary raster, represented using one byte per pixel.  w: Width of ras.  h: Height of ras.  start_x, start_y: Addresses of the x- and y-coordinates of    the pixel at which caller wants findblob to start -- or resume --    its column-major scan for blobs.  (To find all blobs,    caller can use a loop that initializes *start_x and    *start_y to zeros and does not change them thereafter, and then    should stop looping when findblob returns 0, which indicates    that the previous call had returned the last blob; if raster has    no blobs, first call of findblob will return 0.  But caller also    has the options of starting *start_x and *start_y at    something other than (0,0), and changing them between calls of    findblob.)  box_x, box_y: Addresses of the coordinates of the top-left corner    of the bounding box of the blob that was found; the coordinates    are with respect to the input raster.  box_w, box_h: Upon return, these always contain the width and    height of the bounding box of the blob that was found; these    may or may not be the width and height of the output raster.The possible function values returned by findblob_stats are:     0: It reached the bottom-right pixel without finding a blob.     1: It found a blob, and is returning it in desired format.*********************************************************************/int findblob_stats_rw(ras, w, h, start_x, start_y, box_x, box_y, box_w, box_h)unsigned char *ras;int w, h, *start_x, *start_y;int *box_x, *box_y, *box_w, *box_h;{  unsigned char *p, *ps;  unsigned short x, y;  if(list == (RUN *)NULL) {    if(!(list = (RUN *)malloc(LIST_STARTSIZE * sizeof(RUN))))      syserr("findblob_malloc_list", "malloc", "list");    list_off = list + LIST_STARTSIZE;  }  rasity = ras;  ww = w;  hh_m1 = (hh = h) - 1;  if(*start_x < 0 || *start_x >= (int)ww ||     *start_y < 0 || *start_y >= (int)hh)    fatalerr("findblob_stats_rw", "scan start position is off raster",      "start_x, start_y");  x = *start_x;  y = *start_y;  /* Col-majorly scan for a seed pixel. */  for(p = ras + y * ww + x, ps = ras + y * ww + w-1; !*p;) {    if(p < ps)      p++;    else {      if(++y == hh)	return 0;      p = ras + y*ww;      ps += ww;    }  }  /* Grow seed pixel to a seed run. */  findblob_seed_to_run(y, p);  /* Use a queue to grow seed run into a complete blob.  Queue starts  as just the seed run; read run from queue head, produce connecting  runs (if any) and put them on queue tail, read another run from  head, etc., until queue becomes empty.  List space is not recycled:  when growth of blob is finished, list contains all runs that were  ever in the queue. */  for(list_t = (list_h = list) + 1; list_h < list_t; list_h++) {    findblob_grow_n();    findblob_grow_s();  }  /* Growth of blob is finished.  Go through list to find what pixels  to set in output raster. */  *start_x = x;  *start_y = y;  *box_x = wlim;  *box_y = nlim;  *box_w = elim - wlim + 1;  *box_h = slim - nlim + 1;  return 1;}/********************************************************************/int findblob_stats_cl(ras, w, h, start_x, start_y, box_x, box_y, box_w, box_h)unsigned char *ras;int w, h, *start_x, *start_y;int *box_x, *box_y, *box_w, *box_h;{  unsigned char *p, *ps;  unsigned short x, y;  if(list == (RUN *)NULL) {    if(!(list = (RUN *)malloc(LIST_STARTSIZE * sizeof(RUN))))      syserr("findblob_malloc_list", "malloc", "list");    list_off = list + LIST_STARTSIZE;  }  rasity = ras;  ww = w;  hh_m1 = (hh = h) - 1;  if(*start_x < 0 || *start_x >= (int)ww ||     *start_y < 0 || *start_y >= (int)hh)    fatalerr("findblob_stats_cl", "scan start position is off raster",      "start_x, start_y");  x = *start_x;  y = *start_y;  /* Col-majorly scan for a seed pixel. */  for(p = ras + y * ww + x, ps = ras + hh_m1 * ww + x; !*p;) {    if(p < ps)      p += ww;    else {      if(++x == ww)	return 0;      p = ras + x;      ps++;    }  }  y = (p - ras) / (int)ww;  /* Grow seed pixel to a seed run. */  findblob_seed_to_run(y, p);  /* Use a queue to grow seed run into a complete blob.  Queue starts  as just the seed run; read run from queue head, produce connecting  runs (if any) and put them on queue tail, read another run from  head, etc., until queue becomes empty.  List space is not recycled:  when growth of blob is finished, list contains all runs that were  ever in the queue. */  for(list_t = (list_h = list) + 1; list_h < list_t; list_h++) {    findblob_grow_n();    findblob_grow_s();  }  /* Growth of blob is finished.  Go through list to find what pixels  to set in output raster. */  *start_x = x;  *start_y = y;  *box_x = wlim;  *box_y = nlim;  *box_w = elim - wlim + 1;  *box_h = slim - nlim + 1;  return 1;}/********************************************************************//* should call this function when you are done with a session of    *//* findblobs.                                                       *//********************************************************************/end_findblobs(){   if(list != (RUN *)NULL){      free(list);      list = (RUN *)NULL;   }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产麻豆成人传媒免费观看| 亚洲香蕉伊在人在线观| 国产在线播放一区| 久久免费视频色| 国产精品18久久久久久久久久久久| 久久久亚洲欧洲日产国码αv| 国产激情一区二区三区| 国产精品欧美一级免费| 色综合激情五月| 亚洲成a人片综合在线| 91精品国产丝袜白色高跟鞋| 激情图片小说一区| 国产精品久久久久影院老司| 日本精品视频一区二区三区| 亚洲成av人片在线观看| 日韩欧美在线影院| 成人av影院在线| 亚洲 欧美综合在线网络| 日韩欧美123| caoporen国产精品视频| 亚洲国产视频一区二区| 精品成人佐山爱一区二区| zzijzzij亚洲日本少妇熟睡| 三级亚洲高清视频| 久久久91精品国产一区二区精品| 92国产精品观看| 日本大胆欧美人术艺术动态| 欧美国产日韩精品免费观看| 欧洲一区在线观看| 久久精品噜噜噜成人av农村| 自拍偷拍国产亚洲| 欧美一区二区在线不卡| 成人少妇影院yyyy| 亚洲www啪成人一区二区麻豆 | 美女尤物国产一区| 中文字幕免费观看一区| 欧美日韩国产一二三| 国产精品白丝jk黑袜喷水| 亚洲国产中文字幕| 国产欧美日韩精品a在线观看| 欧美视频在线一区| 国产v日产∨综合v精品视频| 午夜一区二区三区视频| 中文字幕欧美国产| 精品理论电影在线| 欧美美女直播网站| 99久久er热在这里只有精品15 | 黑人巨大精品欧美一区| 亚洲综合激情小说| 中文字幕乱码久久午夜不卡 | 2021久久国产精品不只是精品| 在线观看一区日韩| 成人高清在线视频| 韩国三级电影一区二区| 日韩精品电影在线观看| 夜夜精品视频一区二区 | 精品日韩欧美在线| 欧美日韩三级在线| 91福利小视频| 99精品久久久久久| 成人综合婷婷国产精品久久免费| 久久99精品久久久久久动态图| 亚洲va天堂va国产va久| 亚洲精品成a人| 亚洲三级在线观看| 国产精品国产自产拍高清av| 久久久影视传媒| 337p粉嫩大胆色噜噜噜噜亚洲| 在线不卡免费欧美| 欧美精品三级在线观看| 欧美视频日韩视频在线观看| 在线免费精品视频| 欧美少妇bbb| 精品视频全国免费看| 欧美亚洲国产一区二区三区| 91麻豆精品在线观看| 91玉足脚交白嫩脚丫在线播放| 成人免费精品视频| 99久久精品国产一区二区三区 | 欧美色男人天堂| 欧美在线观看禁18| 欧美午夜在线观看| 欧美日韩精品免费观看视频| 欧美性猛交xxxxxxxx| 欧美精品在线一区二区| 日韩一区二区三免费高清| 日韩精品一区国产麻豆| 久久久久亚洲综合| 中文字幕不卡在线播放| 亚洲欧洲av色图| 亚洲综合图片区| 午夜精彩视频在线观看不卡| 日日骚欧美日韩| 久久精品国产免费看久久精品| 久久精品国产澳门| 国产二区国产一区在线观看| 成人网在线播放| 欧美在线影院一区二区| 欧美精品久久99久久在免费线| 欧美一区二区三区成人| 久久久一区二区三区捆绑**| 中文字幕一区二区三区四区不卡| 亚洲精品中文字幕乱码三区| 日韩精品成人一区二区三区| 国产综合色在线| 95精品视频在线| 欧美一区二区视频在线观看2022| 久久久91精品国产一区二区三区| 亚洲色图丝袜美腿| 日本伊人午夜精品| 国产成人啪午夜精品网站男同| 91一区在线观看| 欧美一级生活片| 久久精品亚洲精品国产欧美kt∨| 亚洲欧美激情在线| 久久精品av麻豆的观看方式| 成人福利在线看| 欧美伦理电影网| 国产区在线观看成人精品| 伊人开心综合网| 国产自产v一区二区三区c| 色婷婷久久综合| 亚洲精品一区二区三区精华液 | 亚洲国产精品ⅴa在线观看| 一区二区三区四区在线| 激情综合网最新| 色拍拍在线精品视频8848| 精品欧美黑人一区二区三区| 中文字幕亚洲电影| 极品美女销魂一区二区三区免费 | 欧美乱妇20p| 中文字幕欧美激情| 六月婷婷色综合| 欧美专区日韩专区| 国产精品天天看| 狠狠色狠狠色综合| 欧美喷水一区二区| 亚洲女同女同女同女同女同69| 精品一区二区三区视频在线观看| 91传媒视频在线播放| 久久久一区二区三区| 欧美aaa在线| 欧美性一区二区| 国产精品素人视频| 国产精品一区二区在线观看不卡 | 精品在线观看视频| 欧美日韩国产中文| 亚洲精品久久久蜜桃| 成人av在线资源| 国产色91在线| 国产精品一二三区在线| 日韩欧美一卡二卡| 亚洲第一在线综合网站| 色婷婷香蕉在线一区二区| 国产精品久久久久久久久免费樱桃| 紧缚捆绑精品一区二区| 日韩欧美国产一区二区在线播放| 亚洲国产中文字幕在线视频综合| 91丨九色丨蝌蚪富婆spa| 国产丝袜美腿一区二区三区| 国产一区二区三区在线看麻豆| 日韩免费高清电影| 蜜桃视频在线一区| 日韩欧美视频在线| 久久草av在线| 久久综合狠狠综合| 国内精品久久久久影院色 | 欧美色倩网站大全免费| 亚洲综合免费观看高清完整版在线| 色诱亚洲精品久久久久久| 亚洲丝袜另类动漫二区| 91在线观看视频| 亚洲免费高清视频在线| 色av成人天堂桃色av| 一区二区三区.www| 欧美性一区二区| 免费成人结看片| 欧美精品一区二区三区很污很色的| 激情深爱一区二区| 日本一区二区三区在线观看| 成人免费电影视频| 亚洲乱码日产精品bd| 欧美丝袜丝nylons| 蜜桃视频在线一区| 国产欧美久久久精品影院| 97久久超碰国产精品电影| 亚洲综合激情小说| 日韩免费在线观看| 顶级嫩模精品视频在线看| 日韩久久一区二区| 欧美午夜一区二区三区免费大片| 日本欧美大码aⅴ在线播放| 久久影音资源网| 97aⅴ精品视频一二三区| 亚瑟在线精品视频| 欧美精品一区二区三区四区| 成人精品视频一区二区三区 | 1024成人网色www| 欧美精品乱码久久久久久| 国产精品一级片在线观看|