ODM icon indicating copy to clipboard operation
ODM copied to clipboard

Generating a footprint and average % overlap

Open dakotabenjamin opened this issue 11 years ago • 41 comments

At some point during reconstruction, is it possible to produce an estimate of overlap or generate something like this:

footprint

I think it would help with benchmarking and being able to discriminate between bad runs and bad photosets.

dakotabenjamin avatar Oct 02 '15 13:10 dakotabenjamin

This will be a valuable feature added to ODM!

rion-saeon avatar Oct 02 '15 13:10 rion-saeon

Thatd be a great feature.

Bavar2142 avatar Jun 29 '16 06:06 Bavar2142

I wrote about a different way to view sparse point cloud data using OpenSfM's web view feature- maybe we can incorporate the camera positions from that JSON data, then calculate the image boundaries from there?

dakotabenjamin avatar Jun 29 '16 17:06 dakotabenjamin

Thanks for the link @dakotabenjamin! I will try it out!

When you want to check your data in the field, I think its a pretty bad idea to fire up the Ceres solver. Most likely you will ran out of battery power, before the calculation will be finished.

For that reason I made a test with georeferenced photos a year ago: For a quick overview it was enough to calculate the footprints/overlap from: Height above ground, Sensor Size, FocalLength and possibly the roll/pitch/yaw values, when not flown with a gimbal.

Your proposed workflow would be really good option for something like a "quality report". This could also contain data about chosen parameters, photo number, processing times, cpu type and core count, ram etc...

Fi156 avatar Jun 29 '16 18:06 Fi156

Although this seems to be receiving little attention, it just may be the place to ask for a shapefile/kml output with images footprints? Even a very simple one, from the exif data, projected on a flat 'ground' would be very useful to analyze if any image is missing, if the area was covered, and so on.

Something like this:

screen shot 2017-05-09 at 22 21 26

Figure from: http://dx.doi.org/10.1080/01431161.2016.1259685

CarlosGrohmann avatar May 10 '17 01:05 CarlosGrohmann

I think this feature addition just needs a champion, I currently don't have time to work on it.

dakotabenjamin avatar May 10 '17 13:05 dakotabenjamin

I am missing this feature. Are there footprints being generated somewhere in the process and if so, when does that happen? I might have a look at this so a bit of guidance is appreciated.

jokd avatar Jul 21 '19 23:07 jokd

nodeMicMac offers camera footprints geojson output - same in ODM/nodeODM will be a great start for quality reporting!

merkato avatar Jul 22 '19 04:07 merkato

Maybe that's reusable, will have a look at it!

jokd avatar Jul 22 '19 06:07 jokd

Not reusable if you use ODM, only MicMac ! Also consider this camera estimation report for MicMac : https://github.com/guihh/CmpCalib_matplotlib

kikislater avatar Jul 23 '19 03:07 kikislater

Do you need a footprint generator?

spifftek70 avatar Aug 14 '19 10:08 spifftek70

That would be mighty useful, @spifftek70...

smathermather avatar Aug 21 '19 14:08 smathermather

Would an output like this be appropriate? It's a geojson with overall mission boundary (polygon), camera trigger points (points), Image tile boundaries (polygons), and flightpath (linestring).

Screen Shot 2019-08-31 at 6 21 31 AM

The geojson example is here: https://drive.google.com/file/d/1RhSlY9KL2NYpnnVyNqI5c6cLzC0YWMTj/view?usp=sharing

spifftek70 avatar Aug 31 '19 11:08 spifftek70

Yes! Would be even better if the overlap / camera positions were taken from the structure from motion process, but even if the data is from EXIFs it could be useful in a report.

pierotofy avatar Aug 31 '19 14:08 pierotofy

I'm still working out some bugs. I'll post a GitHub link on it soon.

spifftek70 avatar Aug 31 '19 14:08 spifftek70

The only issue is that it needs to know the sensor width and height. Unfortunately, that information isn't in the exif or any other source that I know of. You have to look it up and pass it in.

spifftek70 avatar Aug 31 '19 14:08 spifftek70

There’s a database of camera sensors here: https://github.com/openMVG/CameraSensorSizeDatabase/blob/master/sensor_database_detailed.csv

There’s not many drones on there but it’d be nice to contribute.

daz avatar Aug 31 '19 14:08 daz

perfect

spifftek70 avatar Aug 31 '19 14:08 spifftek70

Also check https://github.com/mapillary/OpenSfM/blob/master/opensfm/data/sensor_data.json

pierotofy avatar Aug 31 '19 14:08 pierotofy

The code I have is not as accurate as I'd like. It doesn't take into account the pitch, yaw, roll. for that, I could actually use a bit of help with translating this code from LaTeX to Python.

After that, I can plug and play it.

spifftek70 avatar Sep 01 '19 12:09 spifftek70