ARToolKit | Mailing List Archive |
![]() |
From: | Junaidi <junaidia@y ........> | Received: | Nov 17, 2001 |
To | artoolkit@h .................. | ||
Subject: | calib_dist.h and calc_distortion | ||
Hi, I've downloaded ARToolKit 2.431, I'm not sure is that's the latest version of ARToolKit. In calib_dist.h there is a function declaration for calc_distortion which is as follow: void calc_distortion(CALIB_PATT_T *patt, int xsize, int ysize, double dist_factor[3] ); I wonder whether the array size of dist_factor[] is 3 or 4, because in check_dist.c I found that the size of array for dist_factor[] is 4. Thanks. Junaidi. __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com |
From: | Hirokazu Kato <kato@s ........................> | Received: | Nov 20, 2001 |
To | Junaidi <junaidia@y ........> | ||
Subject: | Re: calib_dist.h and calc_distortion | ||
Hi, >In calib_dist.h there is a function declaration for >calc_distortion which is as follow: > >void calc_distortion(CALIB_PATT_T *patt, int xsize, >int ysize, double dist_factor[3] ); > >I wonder whether the array size of dist_factor[] is 3 >or 4, because in check_dist.c I found that the size of >array for dist_factor[] is 4. Right array size is 4. So function declaration should be corrected like: void calc_distortion(CALIB_PATT_T *patt, int xsize, int ysize, double dist_factor[4] ); -- ------------------------------------------------------------------ Hirokazu Kato Faculty of Information Sciences Hiroshima City University Phone: 082-830-1705 Email: kato@s ........................ Fax: 082-830-1435 URL: http://www.sys.im.hiroshima-cu.ac.jp/people/kato/ |