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

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

?? line.c

?? NIST Handwriting OCR Testbed
?? C
字號:
/*# proc: compute_slope - computes the slope of the line between two points.# proc:# proc: compute_y - given the x coordinate, slope, and another point on the# proc:             line, computes the corresponding y coordinate.# proc: compute_x - computes the x coordinate for a specified y coordinate,# proc:             given a non-zero slope and a point on the line.# proc: pt_intersect - computes the point of intersection between two# proc:                specified lines.# proc: intersect_sides - projects a line within a specified rectangle and# proc:                determines the enpoints of where the line intersects the# proc:                sides.*//************************************************************//*         File Name: LINE.C                                *//*         Package:   Fundamental Line Utilities            *//*         Author:    Michael D. Garris                     *//*         Date:      03/05/91                              *//*                                                          *//*         Contents:  compute_slope()                       *//*                    compute_y()                           *//************************************************************/#include <stdio.h>#include <math.h>#include <values.h>#include <defs.h>/************************************************************//*         Routine:   compute_slope()                       *//*                                                          *//* Compute_slope(), given two coordinate points, returns    *//* the slope of a line connecting the two points.           *//* Note: This routine returns the system's MAXFLOAT for     *//* points vertically aligned.                               *//************************************************************//* x1, y1 - first coordinate point.                         *//* x2, y2 - second coordinate point.                        *//************************************************************/float compute_slope(x1, y1, x2, y2)float x1, y1, x2, y2;{   float f_slope, dx, dy;   dx = (x2 - x1);   if(dx == 0.0)      return(MAXFLOAT);   dy = (y2 - y1);   f_slope = dy/dx;   return(f_slope);}/************************************************************/float compute_y(x, m, x1, y1)float x, m, x1, y1;{   float y;   y = (m * x) - (m * x1) + y1;   return(y);}/***************************************************************************//* compute_x - computes the x coordinate for a specified y coordinate,     *//* given a none-zero slope and a point on the line.                        *//***************************************************************************/float compute_x(y, m, x1, y1)float y, m, x1, y1;{   float x;   if(m == 0.0)      fatalerr("compute_x", "slope is 0.0, so x coordinate cannot be computed",               NULL);   x = ((y - y1)/m) + x1;   return(x);}/***************************************************************************//* pt_intersect - given a point and slope of two lines, computes their     *//* point of intersection. If the lines are parallel, then the routine      *//* retruns FALSE.                                                          *//***************************************************************************/pt_intersect(ix, iy, x1, y1, m1, x2, y2, m2)int *ix, *iy;int x1, y1, x2, y2;float m1, m2;{   *ix = NOT_FOUND;   *iy = NOT_FOUND;   if(m1 == m2)      return(FALSE);   *ix = sround((y2-y1+(m1*x1)-(m2*x2))/(m1-m2));   *iy = sround(y1 + (m1 * ((*ix) - x1)));   return(TRUE);}/***************************************************************************//* intersect_sides - given a point and a slope for a line, projects the    *//* line to the edge of a rectangular region and determines endpoints where *//* the line intersects the edge of the rectangle.                          *//***************************************************************************/intersect_sides(x1, y1, x2, y2, x, y, slope, fw, fh)int *x1, *y1, *x2, *y2;int x, y, fw, fh;float slope;{   float compute_y(), compute_x();   int ty, tx, max_x, max_y;   *x1 = NOT_FOUND;   *y1 = NOT_FOUND;   *x2 = NOT_FOUND;   *y2 = NOT_FOUND;   /* special case, if slope is exactly 0.0 */   if(slope == 0.0){      *x1 = 0;      *y1 = y;      *x2 = fw - 1;      *y2 = y;      return;   }   /* compute y coordinate with x at left edge of image */   ty = sround(compute_y(0.0, slope, (float)x, (float)y));   /* if y coordinate is within image dimensions ... */   max_y = fh - 1;   if(is_in_range(ty, 0, max_y)){      /* store as the 1st point */      *x1 = 0;      *y1 = ty;   }   /* compute x coordinate with y at top edge of image */   tx = sround(compute_x(0.0, slope, (float)x, (float)y));   /* if x coordinate is within image dimensions ... */   max_x = fw - 1;   if(is_in_range(tx, 0, max_x)){      /* if 1st point not yet found ... */      if((*x1 == NOT_FOUND) || (*y1 == NOT_FOUND)){         /* store as 1st point */         *x1 = tx;         *y1 = 0;      }      else{         /* otherwise store as 2nd point */         *x2 = tx;         *y2 = 0;      }   }   /* compute x coordinate with y at bottom edge of image */   tx = sround(compute_x((float)max_y, slope, (float)x, (float)y));   /* if x coordinate is within image dimensions ... */   if(is_in_range(tx, 0, max_x)){      /* if 1st point not yet found ... */      if((*x1 == NOT_FOUND) || (*y1 == NOT_FOUND)){         /* store as 1st point */         *x1 = tx;         *y1 = max_y;      }      else{         /* otherwise store as 2nd point */         *x2 = tx;         *y2 = max_y;      }   }   /* compute y coordinate with x at right edge of image */   ty = sround(compute_y((float)max_x, slope, (float)x, (float)y));   /* if y coordinate is within image dimensions ... */   if(is_in_range(ty, 0, max_y)){      /* store as 2nd point */      *x2 = max_x;      *y2 = ty;   }   /* double check to make sure points are filled in */   if((*x1 == NOT_FOUND) || (*y1 == NOT_FOUND))      fatalerr("intersect_sides", "first intersection point not found", NULL);   if((*x2 == NOT_FOUND) || (*y2 == NOT_FOUND))      fatalerr("intersect_sides", "second intersection point not found", NULL);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性生活久久| 日韩欧美国产电影| 欧美va亚洲va国产综合| 自拍偷拍亚洲欧美日韩| 丝袜美腿亚洲色图| 在线视频欧美精品| 国产女人水真多18毛片18精品视频 | 日韩毛片高清在线播放| 黄色小说综合网站| 日韩一区和二区| 亚洲成人7777| 91在线视频免费观看| 国产欧美一区视频| 国产精品中文字幕欧美| 日韩欧美自拍偷拍| 日韩成人免费在线| 欧美精品三级日韩久久| 一区二区三区在线影院| 91丝袜美腿高跟国产极品老师| 精品国产网站在线观看| 日韩综合小视频| 欧美剧情片在线观看| 午夜久久久影院| 欧美午夜不卡在线观看免费| 亚洲免费观看视频| 欧洲精品在线观看| 亚洲一区二区五区| 欧美日韩专区在线| 五月激情综合色| 日韩精品中午字幕| 老色鬼精品视频在线观看播放| 3atv一区二区三区| 麻豆一区二区99久久久久| 欧美巨大另类极品videosbest | 久久婷婷一区二区三区| 久久99国产精品久久99果冻传媒| 日韩免费高清av| 国产一区二区福利视频| 国产色综合一区| 成人a级免费电影| 亚洲欧美一区二区三区极速播放| 色综合视频在线观看| 一区二区不卡在线播放| 制服丝袜亚洲网站| 六月婷婷色综合| 国产日韩欧美一区二区三区乱码| 国产宾馆实践打屁股91| 亚洲女人小视频在线观看| 欧美日韩精品福利| 开心九九激情九九欧美日韩精美视频电影 | 一卡二卡三卡日韩欧美| 欧美日韩一区 二区 三区 久久精品| 亚洲激情一二三区| 日韩一级免费一区| 粉嫩绯色av一区二区在线观看| 国产精品盗摄一区二区三区| 在线观看日韩精品| 久久国内精品自在自线400部| 国产欧美精品在线观看| 欧美四级电影在线观看| 蜜桃视频第一区免费观看| 2019国产精品| 欧美中文字幕一区| 国精产品一区一区三区mba视频| 1024精品合集| 精品久久久久久久久久久久久久久久久 | 中日韩免费视频中文字幕| 日本国产一区二区| 国产资源在线一区| 亚洲自拍欧美精品| 国产日韩影视精品| 欧美狂野另类xxxxoooo| 国产福利一区二区三区在线视频| 亚洲国产综合在线| 国产日韩欧美制服另类| 欧美天堂一区二区三区| 国产福利一区在线| 舔着乳尖日韩一区| 国产精品午夜在线| 欧美一区二区视频网站| 99九九99九九九视频精品| 日本伊人午夜精品| 亚洲国产视频网站| 亚洲国产精品成人久久综合一区| 91精品国产一区二区三区蜜臀| 91老司机福利 在线| 国产乱国产乱300精品| 婷婷久久综合九色综合伊人色| 国产精品美女一区二区| 精品处破学生在线二十三| 色婷婷综合在线| 韩国一区二区三区| 免费观看在线综合色| 亚洲综合激情小说| 亚洲欧美在线观看| 国产视频一区不卡| 久久久久久久免费视频了| 91精品婷婷国产综合久久| 色综合中文字幕国产 | 三级亚洲高清视频| 一区二区三区四区在线免费观看| 国产亚洲成年网址在线观看| 精品久久久久久久一区二区蜜臀| 欧美一区二区三区影视| 欧美在线影院一区二区| 91免费国产视频网站| 99久久国产综合精品色伊| 成人性生交大片免费看视频在线| 久久国产视频网| 激情综合色播激情啊| 国产一区二区三区精品视频| 精品综合免费视频观看| 精品亚洲欧美一区| 国产精品小仙女| 成人免费高清在线| 色综合中文字幕国产| 97久久精品人人做人人爽50路| 本田岬高潮一区二区三区| 99国产一区二区三精品乱码| 91老师片黄在线观看| 欧美四级电影在线观看| 91精品免费观看| 欧美成人猛片aaaaaaa| 久久久综合网站| 国产精品国产精品国产专区不蜜 | 制服丝袜在线91| 日韩精品一区二区三区老鸭窝| 26uuu国产电影一区二区| 久久免费的精品国产v∧| 国产精品免费丝袜| 亚洲一区视频在线| 日本中文在线一区| 粉嫩av一区二区三区在线播放| 大美女一区二区三区| 91久久人澡人人添人人爽欧美| 欧美私人免费视频| 日韩欧美123| 国产精品久久久久久久久晋中 | 欧美日韩mp4| 精品av综合导航| 成人欧美一区二区三区| 三级成人在线视频| 高清成人在线观看| 欧美日韩免费一区二区三区| 欧美精品一区二区久久婷婷 | 麻豆国产精品视频| 成人av网站免费观看| 在线综合亚洲欧美在线视频 | 欧美成人乱码一区二区三区| 国产精品成人网| 久久电影网电视剧免费观看| 成人免费毛片片v| 日韩一区国产二区欧美三区| 国产三级精品三级| 日韩激情一二三区| 色老汉av一区二区三区| 精品国产第一区二区三区观看体验 | 极品销魂美女一区二区三区| 色综合天天综合网天天狠天天| 精品成人佐山爱一区二区| 一区二区三区四区在线| 国产一区视频导航| 欧美日韩一区二区三区免费看| 久久久不卡网国产精品二区| 亚洲国产aⅴ天堂久久| 99久久国产综合精品色伊| 久久久久久久精| 日本欧美一区二区三区| 欧美综合视频在线观看| 中日韩av电影| 国产成人免费视频网站| 欧美一区二区三区视频免费| 亚洲精品少妇30p| 夫妻av一区二区| 欧美v日韩v国产v| 美女视频一区二区三区| 在线不卡欧美精品一区二区三区| 中文字幕一区二区三区不卡| 国产精品一区二区男女羞羞无遮挡 | 国产精品欧美精品| 激情深爱一区二区| 日韩视频免费观看高清完整版| 亚洲综合色网站| 在线免费视频一区二区| 亚洲色图在线看| 色婷婷av一区二区三区gif| 国产精品久久久久9999吃药| 成人久久视频在线观看| 久久精品视频免费| 国产宾馆实践打屁股91| 国产亚洲一区二区三区| 国产精品一二二区| 欧美激情在线一区二区| 国产91色综合久久免费分享| 国产亚洲一区二区三区在线观看 | 国产一区二区网址| 欧美mv日韩mv国产| 国产伦精品一区二区三区在线观看| 日韩欧美一区二区视频| 久久激五月天综合精品|