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 49591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:27:39+00:00 2026-05-10T16:27:39+00:00

I have 3 points in a 3D space of which I know the exact

  • 0

I have 3 points in a 3D space of which I know the exact locations. Suppose they are: (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2).

Also I have a camera that is looking at these 3 points and I know the 2D locations of those three points on camera view plane. So for example (x0,y0,z0) will be (x0',y0'), and (x1,y1,z1) will be (x1',y1') and (x2,y2,z2) will be (x2',y2') from the camera’s point of view.

What is the easiest way to find the projection matrix that will project those 3D points into 2D points on camera view plane. We don’t know anything about the camera location.

  • 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. 2026-05-10T16:27:39+00:00Added an answer on May 10, 2026 at 4:27 pm

    This gives you two sets, each of three equations in 3 variables:

    a*x0+b*y0+c*z0 = x0' a*x1+b*y1+c*z1 = x1' a*x2+b*y2+c*z2 = x2'  d*x0+e*y0+f*z0 = y0' d*x1+e*y1+f*z1 = y1' d*x2+e*y2+f*z2 = y2' 

    Just use whatever method of solving simultaneous equations is easiest in your situation (it isn’t even hard to solve these ‘by hand’). Then your transformation matrix is just ((a,b,c)(d,e,f)).

    …

    Actually, that is over-simplified and assumes a camera pointed at the origin of your 3D coordinate system and no perspective.

    For perspective, the transformation matrix works more like:

                   ( a, b, c, d )   ( xt ) ( x, y, z, 1 ) ( e, f, g, h ) = ( yt )                ( i, j, k, l )   ( zt )  ( xv, yv ) = ( xc+s*xt/zt, yc+s*yt/zt ) if md < zt; 

    but the 4×3 matrix is more constrained than 12 degrees of freedom since we should have

    a*a+b*b+c*c = e*e+f*f+g*g = i*i+j*j+k*k = 1 a*a+e*e+i*i = b*b+f*f+j*j = c*c+g*g+k*k = 1 

    So you should probably have 4 points to get 8 equations to cover the 6 variables for camera position and angle and 1 more for scaling of the 2-D view points since we’ll be able to eliminate the ‘center’ coordinates (xc,yc).

    So if you have 4 points and transform your 2-D view points to be relative to the center of your display, then you can get 14 simultaneous equations in 13 variables and solve.

    Unfortunately, six of the equations are not linear equations. Fortunately, all of the variables in those equations are restricted to the values between -1 and 1 so it is still probably feasible to solve the equations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer using System.IO; using System.Xml; using System.Xml.XPath; . . . string… May 11, 2026 at 11:26 am
  • added an answer div#container { width:500px; /* Same width as both columns */… May 11, 2026 at 11:26 am
  • added an answer CVertex, make sure to review your code, and, if that… May 11, 2026 at 11:26 am

Related Questions

I have 3 points in a 3D space of which I know the exact
I have 3 points (A, B and X) and a distance (d). I need
Let's say I have 3 point clouds: first that has 3 points {x1,y1,z1}, {x2,y2,z2},
I have 3 Linux machines, and want some way to keep the dotfiles in
I have 3 PDF documents that are generated on the fly by a legacy
I have 3 .net projects. Project1.dll is generated by a VS2008 project. Project2.dll is
I have 3 tables Links Link ID Link Name GroupID (FK into Groups) SubGroupID
I have 3 versions of the same assembly in the GAC (Global Assembly Cache),
I have 3 projects in my solution that I want to deploy. Is there
I have 3 tables (archive has many sections, section (may) belong to many archives):

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.