Forum

Author Topic: 3D Geographic coordinate to 2D pixel coordinate  (Read 1223 times)

ManishSahu

  • Newbie
  • *
  • Posts: 27
    • View Profile
3D Geographic coordinate to 2D pixel coordinate
« on: June 26, 2018, 08:23:26 AM »
I want to transform a point given in geographic coordinate(Lat,Long,Ele) system to Pixel location(x,y) of image. I have processed images with agisoft and exported camera details like omega,phi,kappa, r11,r12,r13 etc. as text. Now I have a point which I want to convert to image pixel coordinate using python without using agisoft inbuilt function. Can you tell me how to do this?
For example I have attached, camera output file from agisoft. I have a coordinate Lat = 31.099338018;Long = 77.17603616;
Elevation = 2197.3547 and convert this into pixel coordinate.
Note - I have attached camera file with this post
« Last Edit: June 26, 2018, 03:42:33 PM by ManishSahu »

ManishSahu

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Geographic coordinate to pixel coordinate
« Reply #1 on: June 26, 2018, 08:45:55 AM »
I have tried following method
1. Point P, Lat, Long to ECEF coordinate system
2. Pw in world coordinate to P in camera coordinate using Pc = inv(R)*P. Where R is rotational matrix and P is point in ECEF
3. Then Camera coordinate to pixel coordinate using K*Pc. Where K is [f,0,cx;0,f,cy;0,0,1]

I searched web also and found above pipeline. But It is not working correctly.
Coordinate which I got using agisoft internal functions are 2393.17, 3641.62 at image DSC04045_geotag.JPG but using my method I am not getting similar results