[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-27 Thread Yuval Levy

I toyed with this (in Linux, and with the latest SVN). Being me, I tried 
to push the envelope and see if it can be used for a large linear 
panorama riddled with obstacles, parallax, and all funny things to deal 
with.

The good news is that TiX, TiY, TiZ is *very promising*.

The bad news is that the process is extremely dependent on having all 
CPs on a single plane - just the relief on the brick walls I shot seems 
to be enough to generate significant error. The best I got it down was 
around RMS 6, although at one attempt I even got to RMS 4.

Bruno Postle wrote:
> On Wed 23-Sep-2009 at 00:37 +0200, Pablo d'Angelo wrote:
>> Quick procedure:
>>
>> 1. panomatic -o 539-549.pto *.jpg

lots of CPs to prune after this stage. I guess I am better off with 
manually setting them. Do I understand correctly that if I use a 
calibrated lens and optimize only for y,p,r,TiX,TiY,TiZ I need six CPs 
per image pair?


>> 2. hugin 539-549.pto
>>  - set focal length to 50mm (~ HFOV 26°)

I guess this is specific to the 539-549 project? I left the focal length 
from EXIF.


>>  - open fast preview
>> - set projection to rectilinear,
>> - select hfov and vfov ~ 100
>> - show only the first image.
>> - use the drag tool to move the first image so that it roughly
>> looking like a nadir image

I moved the middle image in my sequence to be the first image on the 
list; and then I moved it down to the nadir by editing the pitch value 
in the Images tab.

When I was using rectilinear projection in the rest of the process, it 
would only render a part of the image. I ended up setting projection to 
equirect HFOV360 VFOV180.


>> - select all images again
>>  - Go to the optimizer tab, select (optimize y,p,r)
>>  - tick "edit script"
>>  - copy script into a text file 539.549.txt
>>  - Edit script, add
>> Tx0.1 Ty0.1 Tz0.1 to "i" lines, except for the first one.
>>  - modify the v lines to include Tx# Ty# Tz# (where # is the image
>>number)
>>  - run PToptimizer 539-549.txt
>>  - run PTmender -o 539-549 539-549.txt
>>  - run PTroller -o 539-549.tif 539-5490*.tif

done everything as above. then I loaded the resuting equirect in Hugin. 
The image is on the nadir. I reprojected it to rectilinear and set the 
appropriate view. Because it is quite long I get some distorsion at the 
extremes (and the rectilinear needs to be projected on 150°).

maybe I should have set a longer focal length / smaller HFOV at step 2 
instead of using the EXIF, to "simulate" more distance from the sphere 
and thus get a longer panorama within a reasonable HFOV for the 
rectilinear projection?


> Works for me, I also found that I can successfully optimise lens 
> parameters:

I also tried with optimizing lens parameters. a/b/c work. I did not try 
to optimize FOV (v?). When I tried to optimize d and e I got the btter 
RMS but the images where very much shifted.


> ..so when can we have this in Hugin? ;-)

I guess the answer is: when the layout branch is merged to trunk. what 
is its status?

Yuv


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-24 Thread Pablo d'Angelo

Hi Oskar,

Oskar Sander schrieb:
> Thanks, I see. So the method was to take one shot as straight down as 
> possible and then to take consecutive shots panning out towards the 
> horizon perpendicular to the flightpath, and then repeat that procedure 
> from the downward view, right?

Looks like it, but it doesn't seem to be the very best option. I'd liked 
to have more nadir shots and with a wide angle lens.

So for your diving activities, better look straight down, and swim as 
high as possible over the area of interest (which is probably hard, 
given visibility constraints).

> I think the result looks really nice Pablo! 
> 
> It would be really interesting if the result continue to come out as 
> nice if some more pic in the flightpath (= even more x & y camera shift) 
> are included in the project like with adding these pictures.
> DSC00554-555
> 558-559-560
> 562-563-564

I have done some experiments and added support for XYZ into the 
gsoc2008_layout branch (not commited yet, as the variable names in 
libpano13 will change soon, I hope).

Here are the results of using the above images and aligning it onto an 
OSM map image. It took some efforts to selecting the right control 
points between the map and the images. I also used many straight line 
control points, as it is hard to measure the position of an single point 
precisely.

Results:
Mosaic (4800x6400 pixels):
http://vps-1005786-1584.united-hoster.de/tmp/osm_mosaic/with_manual_control_merged.jpg
Mosaic blended with map (4800x6400 pixels):
http://vps-1005786-1584.united-hoster.de/tmp/osm_mosaic/with_manual_control_merged_overlay.jpg

source data with hugin projects and control points:
http://vps-1005786-1584.united-hoster.de/tmp/osm_mosaic/osm_aerial_mosaic.zip

This is probably a good test case to compare the XYZ model with the tilt 
model.

ciao
  Pablo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-24 Thread Bruno Postle

On Wed 23-Sep-2009 at 15:54 -0700, Daniel M. German wrote:
>
>did you try optimizing using the tilt model? Tx, Ty and Ts (try those
>before you try Tz).
>I'll be curious to see what happens.

Sorry, I only tried Pablo's modified version.

>Could you post the script so I can try it? Thanks!

I think I put all the photos and the script here:

http://bugbear.postle.net/~bruno/misc/DSC00169-DSC00184.zip

This is quite an extreme example, I deliberately took photos from 
lots of different angles and distances.

>> Works for me, I also found that I can successfully optimise lens
>> parameters:

>> http://www.flickr.com/photos/36383...@n00/3947727801/

-- 
Bruno

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-23 Thread dmg

Hi Bruno,

did you try optimizing using the tilt model? Tx, Ty and Ts (try those
before you try Tz).
I'll be curious to see what happens.


Could you post the script so I can try it? Thanks!

--dmg

On Wed, Sep 23, 2009 at 11:44 AM, Bruno Postle  wrote:
>
> On Wed 23-Sep-2009 at 00:37 +0200, Pablo d'Angelo wrote:
>>
>>Quick procedure:
>>
>>1. panomatic -o 539-549.pto *.jpg
>>2. hugin 539-549.pto
>>  - set focal length to 50mm (~ HFOV 26°)
>>  - open fast preview
>>     - set projection to rectilinear,
>>     - select hfov and vfov ~ 100
>>     - show only the first image.
>>     - use the drag tool to move the first image so that it roughly
>>looking like a nadir image
>>     - select all images again
>>  - Go to the optimizer tab, select (optimize y,p,r)
>>  - tick "edit script"
>>  - copy script into a text file 539.549.txt
>>  - Edit script, add
>>     Tx0.1 Ty0.1 Tz0.1 to "i" lines, except for the first one.
>>  - modify the v lines to include Tx# Ty# Tz# (where # is the image
>>    number)
>>
>>  - run PToptimizer 539-549.txt
>>  - run PTmender -o 539-549 539-549.txt
>>  - run PTroller -o 539-549.tif 539-5490*.tif
>>  - crop 539-549.tif in your favorite image editor.
>
> Works for me, I also found that I can successfully optimise lens
> parameters:
>
> http://www.flickr.com/photos/36383...@n00/3947727801/
>
> ..so when can we have this in Hugin? ;-)
>
> --
> Bruno
>
> >
>



-- 
--dmg

---
Daniel M. German
http://turingmachine.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-23 Thread Bruno Postle

On Wed 23-Sep-2009 at 00:37 +0200, Pablo d'Angelo wrote:
>
>Quick procedure:
>
>1. panomatic -o 539-549.pto *.jpg
>2. hugin 539-549.pto
>  - set focal length to 50mm (~ HFOV 26°)
>  - open fast preview
> - set projection to rectilinear,
> - select hfov and vfov ~ 100
> - show only the first image.
> - use the drag tool to move the first image so that it roughly
>looking like a nadir image
> - select all images again
>  - Go to the optimizer tab, select (optimize y,p,r)
>  - tick "edit script"
>  - copy script into a text file 539.549.txt
>  - Edit script, add
> Tx0.1 Ty0.1 Tz0.1 to "i" lines, except for the first one.
>  - modify the v lines to include Tx# Ty# Tz# (where # is the image
>number)
>
>  - run PToptimizer 539-549.txt
>  - run PTmender -o 539-549 539-549.txt
>  - run PTroller -o 539-549.tif 539-5490*.tif
>  - crop 539-549.tif in your favorite image editor.

Works for me, I also found that I can successfully optimise lens 
parameters:

http://www.flickr.com/photos/36383...@n00/3947727801/

..so when can we have this in Hugin? ;-)

-- 
Bruno

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-23 Thread Oskar Sander
Thanks, I see. So the method was to take one shot as straight down as
possible and then to take consecutive shots panning out towards the horizon
perpendicular to the flightpath, and then repeat that procedure from the
downward view, right?

I think the result looks really nice Pablo!

It would be really interesting if the result continue to come out as nice if
some more pic in the flightpath (= even more x & y camera shift) are
included in the project like with adding these pictures.
DSC00554-555
558-559-560
562-563-564

Cheers
/O

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-23 Thread Matt Williams

2009/9/23 Oskar Sander :
> Is it possible to view the source images to this example?

Go to http://78.46.66.234/jpeg1600/ and scroll down to image
DSC00539.jpg Pablo used DSC00539.jpg through to DSC00549.jpg to create
the image above. There are higher resolution versions at
http://78.46.66.234/jpeghigh/.

-- 
Matt Williams
http://milliams.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-23 Thread Oskar Sander
Please excuse my noise Pablo.

I just have to ask to clarify in my mind the geometry. Have I understood
correctly that:

* The parameters Tx,Ty,Tz (soon X,Y,Z) are now camera shift   (Not attitude
aka "tilt")
* The y,p,r parameters are now changed from the "old" model so they apply to
the camera center (=X,Y,Z)

Right?

Is it possible to view the source images to this example?


*About altitude*, in the old/current hugin/panolib model i have sometimes
got ok result where individual FOV(v) for the lenses/images represent the
altitude indirectly.




Cheers
/O

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: Aerial Photography Stitching (using new mosaic mode)

2009-09-22 Thread Pablo d'Angelo

Pablo d'Angelo schrieb:
> Matt Williams wrote:
>> 2009/9/22 Pablo d'Angelo :
>>> Hi Matt,
>>>
 This is the method I had been using before, but obviously without the
 Tilt parameters and so it really struggled.
>>> Actually, I played around a little, and I wasn't satisfied with the tilt
>>> parameters, so changed libpano to allow estimate the X,Y and Z camera
>>> position (assuming a planar earth). I still need to do some final
>>> testing, but so far it doesn't look too bad.
>> I see you've checked some of these changes into SVN, I've uncommented
>> the '#define MOSAIC_XYZ 1' line in adjust.c. Is there anything I need
>> to do elsewhere to allow it estimate these variables?
> 
> No. With these you could just try to optimize y,p,r,Tx,Ty,Tz for all 
> images except the first one.

There is a bug in panotools. Sometimes it does not optimize parameters 
if they are exactly set to 0. This seems to affect the Tx, Ty and Tz 
parameters as well (a,b,c parameters are the other parameter that suffer 
from this).

So simply add Tx0.1 Ty0.1 Tz0.1 to "i" lines, except for the first one.

Note: the names of the Tx, Ty, Tz parameters are only valid with the 
current svn and the MOSAIC_XYZ define in adjust.c. They will be 
available under another name in the future (probably just X Y Z).

Here is the result of merging images 539-549 from
http://vps-1005786-1584.united-hoster.de/tmp/539-549.jpg

It is not referenced to an OSM map (too late in the evening...), but the 
result looks very promising. It also shows that the sideward views are 
probably not that helpful for mapping, at least when reprojecting them.

Quick procedure:

1. panomatic -o 539-549.pto *.jpg
2. hugin 539-549.pto
  - set focal length to 50mm (~ HFOV 26°)
  - open fast preview
 - set projection to rectilinear,
 - select hfov and vfov ~ 100
 - show only the first image.
 - use the drag tool to move the first image so that it roughly 
looking like a nadir image
 - select all images again
  - Go to the optimizer tab, select (optimize y,p,r)
  - tick "edit script"
  - copy script into a text file 539.549.txt
  - Edit script, add
 Tx0.1 Ty0.1 Tz0.1 to "i" lines, except for the first one.
  - modify the v lines to include Tx# Ty# Tz# (where # is the image
number)

  - run PToptimizer 539-549.txt
  - run PTmender -o 539-549 539-549.txt
  - run PTroller -o 539-549.tif 539-5490*.tif
  - crop 539-549.tif in your favorite image editor.


ciao
   Pablo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---