Closed wildintellect closed 2 years ago
Formula for footprint is here (link to github in video description) : https://youtu.be/aZP1bBvMXSI
Agree this would be super useful. Is there code available somewhere?
Yes in this commit : https://github.com/DroidPlanner/Tower/commit/b5173de4261aa6ca0cec105e0d3107e5bab7eaff#diff-756759bedaecad14afebba69b81639f7
I'm not kind fan of java and I still have to decode some parts but it's documented. It seems need some steps :
It generates a 3x3 rotation matrix. Here is the code : https://github.com/DroidPlanner/Tower/blob/b5173de4261aa6ca0cec105e0d3107e5bab7eaff/Core/src/org/droidplanner/core/helpers/math/MathUtil.java
Then GSD and flat footprint from camera is needed. Standard flight planning computation. Watch here : https://github.com/DroidPlanner/Tower/blob/b5173de4261aa6ca0cec105e0d3107e5bab7eaff/Core/src/org/droidplanner/core/survey/Footprint.java
From these two previous series of value, they compute a new center coordinates for picture **
Next they compute lateral and longitutinal size from java gis module = geotools : here I'm lost with geotools.
With new coordinates, lateral/longitudinal size you have a new polygon
I've got an alternate approach documented in the PostGIS Cookbook which leverages SFCGAL in Postgres. It would need some additional refinement and generalization, but if it would be useful, I can carve out some time to implement and extend.
Hum interesting, got it ! Chapter 7, next time I will go to foss4g south africa ... Amazing, thank you for sharing. I have to try it. ST_RotateX and ST_RotateY seems good now.
This is implemented in https://github.com/uav4geo/DroneDB/ (except the speed indicator) (although it's not friendly, yet)
This is definitely under the scope of DroneDB (and DroneDB Desktop) at the moment. Not sure there's an immediate need in WebODM. (But PRs welcome).
https://github.com/DroneDB/ddb-desktop
Closing.
Process for reviewing data collected while in the field to make sure you captured enough data and overlap. Similar to Stephen's sfcgal tool on his blog, but simpler: