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

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

?? lsq3.c

?? NIST Handwriting OCR Testbed
?? C
字號:
/*# proc: applyparam3_to_point - takes an x and y coordinate pair and applies# proc:                        the specified Least Squares parameters with# proc:                        three degrees of freedom.# proc: chkfindparam3 - finds the best fit between two corresponding sets of# proc:                 points while checking for errors in the location of# proc:                 the hypothesized points.# proc: findparam3 - finds the best fit between two corresponding sets of# proc:              points using Least Squares with 3 degrees of freedom.# proc: determinant3 - computes the determinant for Least Squares with 3# proc:                degrees of freedom.# proc: scale1param3 - computes the first scale parameter for Least Squares# proc:                with 3 degrees of freedom.# proc: scale1param3 - computes the second scale parameter for Least Squares# proc:                with 3 degrees of freedom.# proc: deltaparam3 - computes the translation parameter for Least Squares# proc:                with 3 degrees of freedom.*/#include <stdio.h>#include <math.h>#include <defs.h>#define TOO_SMALL 0.0001/***********************************************************************/applyparam3_to_point(fx, fy, col, row, dx, mxx, mxy, dy, myy, myx)float *fx, *fy;int col, row;float dx, mxx, mxy, dy, myy, myx;{   *fx = (mxx * col) + (mxy * row) + dx;   *fy = (myy * row) + (myx * col) + dy;}/***********************************************************************/chknfindparam3(npts, dx, mxx, mxy, dy, myy, myx,               xref, yref, nref, xhyp, yhyp, nhyp, rm_limit, err_limit)int *npts;float *dx, *mxx, *mxy, *dy, *myy, *myx;int *xref, *yref, nref;int *xhyp, *yhyp, nhyp;int rm_limit, err_limit;{   int *err;   int i, max_i, max_v;   float tx, ty, dix, diy, d2;   if(nref != nhyp)      fatalerr("chknfindparam3",               "reference and hypothesis lists must be of equal length", NULL);   if((err = (int *)calloc(nref, sizeof(int))) == NULL)      syserr("chknfindparam3", "calloc", "err");   *npts = nref;   while(*npts > rm_limit){      findparam3(dx, mxx, mxy, dy, myy, myx, xref, yref, *npts,                 xhyp, yhyp, *npts);      for(i = 0; i < *npts; i++){         applyparam3_to_point(&tx, &ty, xhyp[i], yhyp[i],                              *dx, *mxx, *mxy, *dy, *myy, *myx);         dix = tx - xref[i];         diy = ty - yref[i];         d2 = (dix * dix) + (diy * diy);         err[i] = sround(sqrt((double)d2));      }      find_first_max_forward(err, 0, *npts, &max_i, &max_v);      if(max_v > err_limit){         remove_from_list(max_i, xhyp, *npts);         remove_from_list(max_i, yhyp, *npts);         remove_from_list(max_i, xref, *npts);         remove_from_list(max_i, yref, *npts);         (*npts)--;      }      else         break;   }   if(*npts <= rm_limit)      fatalerr("chknfindparam3", "form registration failed",               "too few registration points located");   free(err);}/***********************************************************************//* Using a least squares fit, find the pair of x parameters and the    *//* pair of y parameters estimating the amount of distortions           *//* existing between the hypothesized points and the reference points   *//***********************************************************************//*  dx ==> estimated translation in x.                                 *//* mxx ==> x equation's estimated scale in x.                          *//* mxy ==> x equation's estimated scale in y.                          *//*  dy ==> estimated translation in y.                                 *//* myy ==> y equation's estimated scale in y.                          *//* myx ==> y equation's estimated scale in x.                          *//***********************************************************************/findparam3(dx, mxx, mxy, dy, myy, myx, hypx, hypy, hypnum, refx, refy,                refnum)float *dx, *mxx, *mxy, *dy, *myy, *myx;int *hypx, *hypy, hypnum;int *refx, *refy, refnum;{   float fn, sxh, sxr, syh, syr;   float sxhxr, syhyr;   float sxrxr, syryr;   float sxhyr, syhxr;   float sxryr;   float detx, dety;   float determinant3(), scale1param3(), scale2param3(), deltaparam3();   if(hypnum != refnum)      fatalerr("findparam3",               "number of hyp points not equal to number of ref points",               NULL);/***********************************************************************//* Given the linear equation for x with 3 unknowns:                    *//*                                                                     *//* A = | fn  sxr   syr   |                                             *//*     | sxr sxrxr sxryr |                                             *//*     | syr sxryr syryr |                                             *//*                                                                     *//* B = | sxh   |                                                       *//*     | sxhxr |                                                       *//*     | sxhyr |                                                       *//*                                                                     *//* P = | dx  |                                                         *//*     | mxx |                                                         *//*     | mxy |                                                         *//*                                                                     *//* Given the linear equation for y with 3 unknowns:                    *//*                                                                     *//* A = | fn  syr   sxr   |                                             *//*     | syr syryr sxryr |                                             *//*     | sxr sxryr sxrxr |                                             *//*                                                                     *//* B = | syh   |                                                       *//*     | syhyr |                                                       *//*     | syhxr |                                                       *//*                                                                     *//* P = | dy  |                                                         *//*     | myy |                                                         *//*     | myx |                                                         *//*                                                                     *//* Variable nomenclature:                                              *//*    fn ==> number of points as a float                               *//*     s ==> summation across all points                               *//*     x ==> x-coordinate                                              *//*     y ==> y-coordinate                                              *//*     r ==> reference point                                           *//*     h ==> hypothesis point                                          *//*  xrxr ==> x-coordinate of reference point squared                   *//*                                                                     *//***********************************************************************/   /* x & y equations' A */   fn = (float)hypnum;   sxr = (float)sumints(refx, refnum);   syr = (float)sumints(refy, refnum);   sxrxr = (float)sumprodints(refx, refx, hypnum);   syryr = (float)sumprodints(refy, refy, hypnum);   sxryr = (float)sumprodints(refx, refy, hypnum);   /* x equation's B */   sxh = (float)sumints(hypx, hypnum);   sxhxr = (float)sumprodints(hypx, refx, hypnum);   sxhyr = (float)sumprodints(hypx, refy, hypnum);   /* y equation's B */   syh = (float)sumints(hypy, hypnum);   syhyr = (float)sumprodints(hypy, refy, hypnum);   syhxr = (float)sumprodints(hypy, refx, hypnum);                           /* <--------------- A -------------> */   detx = (float)determinant3(fn, sxr, syr, sxrxr, syryr, sxryr);   dety = (float)determinant3(fn, syr, sxr, syryr, sxrxr, sxryr);                          /* <--------------- A -------------> */   *dx =  (float)deltaparam3(fn, sxr, syr, sxrxr, syryr, sxryr,                          /* <------ B ------> */                             sxh, sxhxr, sxhyr, detx);   *mxx = (float)scale1param3(fn, sxr, syr, sxrxr, syryr, sxryr,                             sxh, sxhxr, sxhyr, detx);   *mxy = (float)scale2param3(fn, sxr, syr, sxrxr, syryr, sxryr,                             sxh, sxhxr, sxhyr, detx);   *dy =  (float)deltaparam3(fn, syr, sxr, syryr, sxrxr, sxryr,                             syh, syhyr, syhxr, dety);   *myy = (float)scale1param3(fn, syr, sxr, syryr, sxrxr, sxryr,                             syh, syhyr, syhxr, dety);   *myx = (float)scale2param3(fn, syr, sxr, syryr, sxrxr, sxryr,                             syh, syhyr, syhxr, dety);}/***********************************************************************/float determinant3(fn, s1r, s2r, s1r1r, s2r2r, s1r2r)float fn, s1r, s2r, s1r1r, s2r2r, s1r2r;{   float det;   det = (fn*s1r1r*s2r2r) + (s1r*s1r2r*s2r) +  (s2r*s1r*s1r2r) -         (s2r*s1r1r*s2r)  - (s1r2r*s1r2r*fn) - (s2r2r*s1r*s1r);   if(fabs(det) < TOO_SMALL)      fatalerr("determinant3",               "determinant too small to be significant", NULL);   return(det);}/***********************************************************************/float scale1param3(fn, s1r, s2r, s1r1r, s2r2r, s1r2r, s1h, s1h1r, s1h2r, det)float fn, s1r, s2r, s1r1r, s2r2r, s1r2r, s1h, s1h1r, s1h2r, det;{   float numer, m;   numer = (s1h*((s1r2r*s2r) - (s1r*s2r2r))) +           (s1h1r*((fn*s2r2r) - (s2r*s2r))) +           (s1h2r*((s2r*s1r) - (fn*s1r2r)));   m = numer/det;   return(m);}/***********************************************************************/float scale2param3(fn, s1r, s2r, s1r1r, s2r2r, s1r2r, s1h, s1h1r, s1h2r, det)float fn, s1r, s2r, s1r1r, s2r2r, s1r2r, s1h, s1h1r, s1h2r, det;{   float numer, m;   numer = (s1h*((s1r*s1r2r) - (s1r1r*s2r))) +           (s1h1r*((s1r*s2r) - (fn*s1r2r))) +           (s1h2r*((fn*s1r1r) - (s1r*s1r)));   m = numer/det;   return(m);}/***********************************************************************/float deltaparam3(fn, s1r, s2r, s1r1r, s2r2r, s1r2r, s1h, s1h1r, s1h2r, det)float fn, s1r, s2r, s1r1r, s2r2r, s1r2r, s1h, s1h1r, s1h2r, det;{   float numer, d;   numer = (s1h*((s1r1r*s2r2r) - (s1r2r*s1r2r))) +           (s1h1r*((s2r*s1r2r) - (s1r*s2r2r))) +           (s1h2r*((s1r*s1r2r) - (s2r*s1r1r)));   d = numer/det;   return(d);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产片| 日韩免费一区二区三区在线播放| 精品在线亚洲视频| 午夜精品一区二区三区免费视频| 日本一区二区三区免费乱视频| 666欧美在线视频| 欧美日韩大陆一区二区| 91色九色蝌蚪| 色婷婷亚洲综合| 免费三级欧美电影| 天天操天天色综合| 一区二区三区中文在线| 亚洲色图都市小说| 亚洲激情网站免费观看| 亚洲精品视频在线观看网站| 国产精品网友自拍| 国产精品久久久一区麻豆最新章节| 精品国产乱码久久| 国产欧美一区视频| 亚洲欧洲色图综合| 亚洲电影一级片| 美女精品自拍一二三四| 国产一区美女在线| 成人黄色av电影| 天天影视色香欲综合网老头| 国产精品久久久久aaaa| 亚洲欧美另类小说视频| 专区另类欧美日韩| 最好看的中文字幕久久| 欧美一区三区四区| 91精品国产综合久久福利软件 | 日韩欧美一区在线观看| 欧美一级片在线观看| 欧美电影免费观看高清完整版在线| 欧美猛男超大videosgay| 欧美一区二区国产| 国产三级三级三级精品8ⅰ区| 国产精品美女www爽爽爽| 国产精品毛片a∨一区二区三区| 国产精品不卡一区二区三区| 久久蜜桃香蕉精品一区二区三区| 日韩欧美国产1| 国产精品久久综合| 男女男精品视频网| 大桥未久av一区二区三区中文| 国产精品自拍一区| 欧洲色大大久久| 精品国产一区二区三区四区四 | 高清不卡一区二区在线| 这里只有精品电影| 精品国产一区久久| 一区二区成人在线观看| 激情综合色丁香一区二区| 成人黄色电影在线| 欧美精品一区二区高清在线观看 | 精品女同一区二区| 一区二区三区中文免费| 捆绑调教一区二区三区| 色综合中文字幕| 欧美一区二区三区在线观看视频 | 2020国产精品久久精品美国| 亚洲人成人一区二区在线观看| 美女视频一区在线观看| 欧美羞羞免费网站| 亚洲免费观看高清完整版在线观看 | 国产精品第四页| 亚洲一区二区精品视频| 一本一道综合狠狠老| 91福利在线看| 国产日韩精品久久久| 美国精品在线观看| 欧美一级精品大片| 强制捆绑调教一区二区| 欧美精品 国产精品| 性久久久久久久久| 欧美久久婷婷综合色| 免费在线欧美视频| 欧美一二三区在线观看| 免费在线看成人av| 日韩一级大片在线| 五月综合激情日本mⅴ| 欧美一区二区三区色| 免费在线看成人av| 久久久精品天堂| 成人av在线电影| 亚洲一区在线电影| 欧美一区二区在线播放| 国产乱码一区二区三区| 欧美激情自拍偷拍| 欧美性大战久久久久久久蜜臀| 日韩精品每日更新| 337p粉嫩大胆色噜噜噜噜亚洲 | 日韩在线播放一区二区| 欧美成人精品3d动漫h| 麻豆91小视频| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲综合男人的天堂| 欧美这里有精品| 日日噜噜夜夜狠狠视频欧美人| 欧美在线观看视频一区二区三区| 一区二区国产盗摄色噜噜| 日韩精品一区二区三区三区免费 | 欧美色综合久久| 麻豆精品新av中文字幕| 日韩美女视频一区| 欧美一区二区网站| 在线精品亚洲一区二区不卡| 精品一区二区三区久久| 一区二区三区高清不卡| 久久久影视传媒| 91麻豆精品国产91久久久久| 97se亚洲国产综合自在线观| 五月激情丁香一区二区三区| 国产精品免费av| 欧美三区在线视频| 色噜噜狠狠色综合欧洲selulu| 国产一区二区三区在线观看免费 | 亚洲区小说区图片区qvod| 久久久一区二区三区| 欧美剧在线免费观看网站| 国产乱码精品一区二区三区av| 亚洲人妖av一区二区| 久久精品综合网| 日韩午夜av一区| 精品视频资源站| 欧美日韩久久一区| 91福利在线观看| 久久综合综合久久综合| 国产精品一区二区在线观看不卡| 午夜电影一区二区三区| 亚洲影院久久精品| 亚洲一区二区黄色| 亚洲大片一区二区三区| 亚洲午夜国产一区99re久久| 伊人色综合久久天天人手人婷| 国产精品视频一二三区| 欧美激情在线一区二区| 国产欧美视频在线观看| 国产精品你懂的| 亚洲欧美视频一区| 午夜欧美大尺度福利影院在线看| 日韩成人免费电影| 国产一区二区三区四区五区入口| 日韩高清在线一区| 国产美女在线精品| 久久精品av麻豆的观看方式| 国产在线播放一区三区四| 99精品黄色片免费大全| 欧美日韩精品电影| 日韩欧美三级在线| 国产精品久久久久久久久果冻传媒 | 久久婷婷色综合| 国产日韩av一区二区| 一区二区欧美在线观看| 免费成人av在线播放| 成人91在线观看| 91.麻豆视频| 欧美国产一区二区在线观看| 亚洲永久精品国产| 精品一区二区三区久久| 91网页版在线| 久久色视频免费观看| 一区二区三区四区五区视频在线观看 | 波多野洁衣一区| 久久综合色一综合色88| 午夜视频一区二区| 色偷偷一区二区三区| 欧美精品一区男女天堂| 亚洲综合一区二区| 91在线视频免费91| 国产日韩欧美不卡在线| 奇米影视一区二区三区小说| 久久99久久精品欧美| 欧美性猛片xxxx免费看久爱| 国产农村妇女毛片精品久久麻豆| 日韩av成人高清| 欧美日韩国产首页| 亚洲综合成人在线| 成人综合在线观看| 中文乱码免费一区二区| 久久99国产精品久久99| 91精品国产一区二区| 三级不卡在线观看| 91 com成人网| 久久电影网电视剧免费观看| 欧美高清视频一二三区| 日本一区二区三区视频视频| 成人avav影音| 亚洲一区二区在线观看视频| 欧美三级在线视频| 日韩精品一卡二卡三卡四卡无卡| 欧美影视一区二区三区| 亚洲视频 欧洲视频| 欧美亚洲国产一区二区三区va| 亚洲国产综合91精品麻豆| 欧美精品日韩综合在线| 久久aⅴ国产欧美74aaa| 久久精品在这里| 欧美视频你懂的| 国产精品羞羞答答xxdd|