View window's Place-marker appears in wrong spot with non-standard image size
rmackay9 opened this issue · comments
Randy Mackay commented
To recreate the problem do this:
- run cuav on a set of images which have pixel width and height larger than the default
- when a region of interest appears in the Mosaic window, click "Show Image"
- from the "View" window right-click and "Place Marker" somewhere within the blue box
- on the "Map" view the marker will appear quite far from where the region-of-interest appeared on the map
Shingo Matsuura commented
I think it needs to pass altitude here.
https://github.com/CanberraUAV/cuav/blob/master/cuav/lib/cuav_mosaic.py#L636
Peter Barker commented
I've pushed up a patch, peterbarker@7643d8b which appears to fix this issue.
geosearch.py --sensorwidth 3.674 --lens 4.0 --minscore 1000 --time-offset 1 --mavlog ../mav.tlog . --start --roll-stabilised --xresolution=3280 --yresolution=2464
It has made the region registration worse, however; I'm unsure why at this point.