Skip to search.

(*) Scheduled Maintenance: We are undertaking some essential, but extensive maintenance to improve Yahoo! Calendar. Your Group Calendar is being migrated to a much improved version of Yahoo! Calendar. During the maintenance period, you may not have access to your Groups Calendar. We sincerely apologize for this inconvenience. Your Groups Calendar is in great shape and we are working to have it available again as quickly as possible - Yahoo! Groups & Yahoo! Calendar Team

OpenCV · Open Source Computer Vision Library Comm

Group Information

  • Members: 29951
  • Category: Open Source
  • Founded: Jun 20, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
OpenCV and OpenGL camera models   Message List  
Reply Message #38181 of 87833 |
Re: [OpenCV] OpenCV and OpenGL camera models


Yeah, I did some work on this issue about two weeks ago. I take OpenCV's
intrinsic camera parameters, fx, fy, cx and cy, image width, image height,
a near plane, and a far plane, and make a 4x4 OpenGL projection matrix out
of it. Here's the setup:

[ [ 2*fx/width, 0, (2*cx/width)-1, 0 ]
[ 0, 2*fy/height, (2*cy/height)-1, 0 ]
[ 0, 0, -(far+near)/(far-near), 0, -2*far*near/(far-near) ]
[ 0, 0, -1, 0 ] ]

The basic math I got from University of Cambridge Technical Report 634
(ucam-cl-tr-634), "Visualisation, interpretation and use of location-aware
interfaces", by Kasim Rehman, May 2005, but I had to correct a few small
errors. I've had good results using this matrix.

One thing, you should also make sure to use OpenCV's distortion
coefficients to do image unwarping first.

That covers the intrinsics, as for extrinsic parameters, translation and
rotation should easily be used for glTranslatef and glRotatef calls, but I
haven't done that explicitly myself, so I can't speak from experience.

-stephen diverdi
-sdiverdi@...


> Hi,
>
> I'm looking for some help on how to adapt the OpenCV camera
> parameters(Tsai model) to the OpenGl transformation matrices.
>
> I have my camera parameters (intrinsic, R and T matrices) using the
> camera calibration functions of OpenCV. Now I want to draw on top of
> the images using OpenGL. Herefor I need to plug in the Tsai
> parameters(R,T but also distortion and viewport) in the OpenGL
> transformation matrices.....
>
> Has anyone succeeded to do this? Any help would be very welcome...
>
> Thanks,
> Kenny
>
>
>
>
>
>
> Change settings: http://www.yahoogroups.com/mygroups, select
> Get Emails (get all posts)
> Daily Digest (one summary email per day)
> Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@yahoogroups.com
>
> Yahoo! Groups Links
>
>
>
>
>
>



Fri May 5, 2006 5:26 am

stevediverdi
Offline Offline
Send Email Send Email

Message #38181 of 87833 |
Expand Messages Author Sort by Date

Hi, I'm looking for some help on how to adapt the OpenCV camera parameters(Tsai model) to the OpenGl transformation matrices. I have my camera parameters...
kennycauwerts Offline Send Email May 2, 2006
2:44 pm

Yeah, I did some work on this issue about two weeks ago. I take OpenCV's intrinsic camera parameters, fx, fy, cx and cy, image width, image height, a near...
Stephen DiVerdi
stevediverdi Offline Send Email
May 5, 2006
5:26 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help