Stuart said:I think you may of missed my point. I was referring to the bearing
calculation, I used very basic trigonometry to calculate the
bearings. This will obviously work fine over relatively short
distances, 20 miles or so, however inaccuracies due to the earth
being round and not flat, will start to creep in as distance
increases.
True, but I think you missed my point too, which is that hills can be
seen at distances much greater than 20 miles, so if the objective is to
identify hills that you can see, then you'll have to deal with distances
greater than this, whether the results are accurate or not.
Quoted message said:However, all this is quite irrelevant, as I said I developed the
program to help me identify hills on my panoramas (just got myself a
digi camera!) Unfortunately I have noticed that the software I am
using to stich my photos together Is slightly moving the posistion of
some of the hills. this is really annoying.....
Actually the sofware is correcting distortions due to the lens. It's
not the software's fault, it's the lens's fault in the first place. Due
to the fact that lenses are spherical, when light is projected from a
lens onto a flat plane there is distortion. You can easily see this
with an SLR by simply looking through the viewfinder and panning
around - the landscape distorts as you pan. This distortion is most
acute with a wide angle lens, the effect is to stretch the image toward
the edges and is most noticeable in the corners. The same effect
occurs with all lenses, but less with telephoto lenses.
The stitching software is simply trying to correct for these distortions
in order to make the images fit together. The fact that they won't fit
without corrections proves that they've been distorted in the first
place. I've yet to find any stitching software that corrects lens
distortion perfectly, probably because each lens has unique distortion
characteristics.
Anyway, don't blame the software, blame the lens.
Quoted message said:take the following pan
from Meall Ghoarodaih (warning its about 420K) The bearing is shown
in the status bar (IE only) when you move the mouse over the image!
http://www.stuartstuart.fsnet.co.uk/hillwalking/pans/ghaordaidh.htm
Ben Nevis is correct at 312 degrees
Ben Lawers is 2 degrees out at 84 degrees
Stob Binnien is correct at 205 degrees
How can you claim that any one of these is correct? You'd have to
calibrate it first. If you calibrated it relative to Ben Nevis then of
course Ben Nevis would be correct. I presume it's a 360 degree pano, so
you'd only need one calibration point.
Quoted message said:How annoying that it displaced a hill by such a distance.
Given the distortion characteristics of lenses and potential problems of
accurate stitching, I think that's pretty good.
Quoted message said:Incidentally on the original photos the cairngorms are very visible
at 50 miles!
Given the variations in bearing pointed out by Phil, if a hill is only
out by 2 degrees then that shouldn't be a problem. I think we have a
similar situation here to GPS accuracy. We'd like a GPS to be accurate
to 1m because that's the base unit that it displays, but in practice it
isn't that accurate. It still doesn't stop a GPS from being useful, it
gets you close enough.
Likewise, whilst you'd like your photos and your calculations to be
accurate to 1 degree, an error of a few degrees isn't enough to prevent
your software giving you enough information to determine which summit is
which. It'll get you close enough to know roughly what you're looking
at and you can figure out exactly which summit is which by close
inspection of the map.
I'm not saying you shouldn't strive for greater accuracy, but personally
I wouldn't expect or trust a stiched pano to give me 1 degree accuracy.
What would give you the degree of photographic accuracy that you desire
is a proper "swing-lens" panoramic camera, when perfectly levelled. The
photograph is taken through a narrow vertical slit which rotates as the
lens rotates. This eliminates horizontal distortion (vertical
distortion still exists).
With my camera, each shot covers 120 degrees, therefore I can do a 360
degree pano in just three shots, although I'd need to use four to give
me some overlaps. These photos can be stiched directly in Photoshop, no
need for stitching software since there's no horizontal distortion to be
corrected, the edges match perfectly. There are other panoramic camera
which give 135 degrees, so three shots would be sufficient with one of
those.
Such a 360 degree pano should give precise compass bearings. I suppose
I should now go out and create such a pano to prove my theory.
Just a though, that 2 degree error you mentioned, how much difference in
distance was there between the correct bearings and the incorrect one?
Could the error have been due to the calculation rather than the lens
distortion/stitching?
Paul
--
http://www.wilderness-wales.co.uk
http://www.wildwales.fsnet.co.uk