Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8710023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:30:58+00:00 2026-06-13T04:30:58+00:00

I have calibrated my camera with OpenCV (findChessboard etc) so I have: – Camera

  • 0

I have calibrated my camera with OpenCV (findChessboard etc) so I have:
– Camera Distortion Coefficients & Intrinsics matrix
– Camera Pose information (Translation & Rotation, computed separatedly via other means) as Euler Angles & a 4×4
– 2D points within the camera frame

How can I convert these 2D points into 3D unit vectors pointing out into the world? I tried using cv::undistortPoints but that doesn’t seem to do it (only returns 2D remapped points), and I’m not exactly sure what method of matrix math to use to model the camera via the Camera intrinsics I have.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:31:00+00:00Added an answer on June 13, 2026 at 4:31 am

    Convert your 2d point into a homogenous point (give it a third coordinate equal to 1) and then multiply by the inverse of your camera intrinsics matrix. For example

    cv::Matx31f hom_pt(point_in_image.x, point_in_image.y, 1);
    hom_pt = camera_intrinsics_mat.inv()*hom_pt; //put in world coordinates
    
    cv::Point3f origin(0,0,0);
    cv::Point3f direction(hom_pt(0),hom_pt(1),hom_pt(2));
    
    //To get a unit vector, direction just needs to be normalized
    direction *= 1/cv::norm(direction);
    

    origin and direction now define the ray in world space corresponding to that image point. Note that here the origin is centered on the camera, you can use your camera pose to transform to a different origin. Distortion coefficients map from your actual camera to the pinhole camera model and should be used at the very beginning to find your actual 2d coordinate. The steps then are

    1. Undistort 2d coordinate with distortion coefficients
    2. Convert to ray (as shown above)
    3. Move that ray to whatever coordinate system you like.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have calibrated stereo cameras and got the extrinsic matrix. I know the Translation
I have a single calibrated camera (known intrinsic parameters, i.e. camera matrix K is
All, I have a python script that uses OpenCV to calibrate a camera. It
How do I retrieve the rotation matrix, the translation vector and maybe some scaling
I've a calibrated camera where I exactly know the intrinsic and extrinsic data. Also
Is there a simple function in OpenCV to get the 3D position and pose
I have calibrated 2 cameras with respect to some world coordinate system. I know
I am trying to get camera calibration parameters by using opencv camera calibration functions.
i am new to opencv and i have loaded two chessboard(http://kvisit.com/amaAY)images one next to
I have posted this to the opencv group on yahoo, with no luck. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.