So I am working on some software that geolocates spots on a map taken from a drone. I am having some trouble with the actual geolocation when the map that the program is given is not aligned north.
So what I am trying to do is take the three control points and using them determine at what angle (from the vertical of the image) north is at and then rotate the image by that angle.
What I am currently doing is using GeographicLib (c++ library) to determine the azimuth between two of the control points then the angle in respect to the top of the image of those two and rotating the image by the difference, this has yet to prove correct although i get some numbers close to what they should be if I us the forward azimuth at control Point #2.
I know what the map should look like when aligned as I loaded it into QGIS and rotated it. One other issue is that QGIS seems to have warped it a bit when we overlayed it on a georeferenced image so I do not know if I have to take that into account either.
أكثر...
So what I am trying to do is take the three control points and using them determine at what angle (from the vertical of the image) north is at and then rotate the image by that angle.
What I am currently doing is using GeographicLib (c++ library) to determine the azimuth between two of the control points then the angle in respect to the top of the image of those two and rotating the image by the difference, this has yet to prove correct although i get some numbers close to what they should be if I us the forward azimuth at control Point #2.
I know what the map should look like when aligned as I loaded it into QGIS and rotated it. One other issue is that QGIS seems to have warped it a bit when we overlayed it on a georeferenced image so I do not know if I have to take that into account either.
أكثر...