Eric-Canas / Homography.js

Lightweight, High-Performance and easy-to-use library for performing Affine, Projective or Piecewise Affine transformations over any Image or HTMLElement from only a set of reference points. In Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to get Real World Coordinates (X,Y,Z) from point on 2 images?

treecon opened this issue · comments

Hi,

I have 2 images and some points with known pixel coordinates (x, y) in both images. Is it possible to get the World Coordinates (X, Y, Z) on a given reference system, if I know:

  • the rotation of the camera on both images (yaw, pitch, roll)
  • the World Coordinates of the camera of both images (X, Y, Z)
    ?

Thank you in advance!

Hi,

Sorry for the late reply.

I can't help too much with that because I'm not really an expert. All my knowledge about Euler Angles and Real World Coordinates Transforms, vanished 3 or 4 years ago when I stopped using them.

There are only a few things that I can say about that.

  • If you can go from these Euler Angles to Quaternions, it is usually preferable to avoid Gimbal Lock
  • If you are planning to get the distance between the camera and some objects in the image. You will only be able to do it if you can detect them with some ML or Computer Vision method, and you know beforehand both: that they have a fixed real-world measures and the intrinsics of your camera (sensor shape, physical pixel size and focal length of your lens). In that concrete case, you can estimate it with the Thin Lens Equation
  • I have found this StackOverflow Answer that could help you.

Hi! Thank you very much for all provided info.