Hi Pandya,
>For my application, I need to define a camera position manually as well as
>with ARToolKit. I know the tranformation to the camera from a base
>coordintate system. When I replace the matrix computation from ARToolKit for
>the camera position with the one I know, the object of my interest moves
>with the camera and does not stay at the global position I have asked for
>(object[i].trans).
I think your idea is right.
Problems might be a format of the replaced matrix and camera parameters.
double trans[3][4];
In this array, left 3x3 part is a rotation component.
right 3x1 part is a translation component.
For the rotation component, the axis of ARToolKit camera coordinates
and your camera coordinates should be identical. Also both origin
should be identical as well. This is not so easy. But you can do it
roughly.
For the translation matrix, ARToolKit original unit is [mm].
Please use [mm] for translation.
I think you have to calibrate your camera as well.
In order to get 2D image overlay on the marker,
camera parameter is not important.
But in your case, camera parameter is important.
There is a documentation including camera calibration in HIT Lab
web site. Plase check it.
--
------------------------------------------------------------------
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/
|