Hugin - How do I merge a standard photo into a 360 equirectangular panorama?

48 views
Skip to first unread message

DerekS

unread,
Nov 27, 2020, 5:32:35 PM11/27/20
to hugin and other free panoramic software
Hi

I have an equirectangular panorama taken with a 360 camera, and a more detailed photo of a section of that panorama taken with compact camera.

I imported both into Hugin, and added control points like this...
Hugin Screen shot.jpg

I was hoping to blend the two images so as to produce a 360 equirectangular panorama with more detail on the tower.

I clicked the "Align" button and then got this result

Chatley Heath Semaphore Tower - P1150542-Shrunk.jpg

Right place, but wrong size.

How do I get the result I'm hoping for?

Luís Henrique Camargo Quiroz

unread,
Nov 27, 2020, 8:55:21 PM11/27/20
to hugi...@googlegroups.com

   Hi Derek,

  It seems that the lens parameters are wrong. Have you optimized "v" for the compact camera lens?

  regards,

 Luís Henrique



--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/e6c6e89b-e29c-49c1-a056-226d1ab45687n%40googlegroups.com.


--

DerekS

unread,
Nov 28, 2020, 7:39:10 AM11/28/20
to hugin and other free panoramic software
Hi Luis

Thanks for the quick response.  No, I haven't optimized the "v" for the compact camera lens.  Never do I have any idea what you mean, can you point me in the direction of a tutorial or help page as I couldn't find it myself.


Cheers 

Derek

Luís Henrique Camargo Quiroz

unread,
Nov 28, 2020, 11:36:57 AM11/28/20
to hugi...@googlegroups.com

   Hi Derek!

   Well, I use only the "specialist" interface, so if after what I tell you here you could not find the "v" ("visualization angle", or, in other words, field of view of the camera/lens/photo) please change your interface via the menu.

  The v is related to the focal distance and its multiplier Hugin shows when you select any photo.

   Obviously the lenses -- and sensors -- from the 360 camera and from the compact one you used for the more detailed tower are not equal. So the mathematics Hugin will apply must take adequate (correct) v values, otherwise the images won't match. When you load the photos in Hugin the program will read the EXIF data from the files, and from there the "nominal" v of each picture, and the dimensions of the pics. Maybe the EXIF data is missing, or incorrect, for some of the cameras in your photos. Anyway, for a good blending, either for the seams among successive photos, or for the superposed tower in your case, the v can/must be optimized by Hugin. Maybe also other parameters related to distortions of the lenses. You will try and get the feeling :)

   I loaded some photos in Hugin, and I realized you must use at least the advanced interface to follow me.

    From the first tab, Photos, in Optimization, Geometric, select custom parameters ("parâmetros personalizados" in my figure below, in green). When you do this, a new tab shows up, Optimizer, the fourth tab.
image.png

Click in the Optimizer tab, you will see a window like in the next figure, where you should unselect the position (orientation) parameters y, p, r of (all) the 360 camera photo(s), and select only those for the compact camera photo. For the lens parameters, leave only v of the compact camera select.  This way you assume the 360 photo is the "anchor" (which you accept as good and won't allow to change) and just the tower detail has to adequate itself to the control points from the 360 photo. Note that the lens types of each camera probably don't match, I guess the 360 is a fisheye, and the compact camera has a rectilinear lens (as usual).
   Optimize, and voilà!  Think again in all that, refine as needed, explore the capabilities of Hugin, and happy "panoraming"!
image.png

    I think you will have to mask out the tower from the 360 camera, or, better, draw a mask only in the compact camera photo, the detailed tower, and change its type to "include region", so the same region from any other photos will be discarded and only the detailed will be used, otherwise you risk having ghosts, like in the tower you showed us.  Problems with colors?  Then you will have to optimize photometric parameters, ;)

   cheers!

   Luís Henrique

  
 

DerekS

unread,
Nov 30, 2020, 4:53:36 AM11/30/20
to hugin and other free panoramic software

Hi Luis


Many thanks for the guidance.   You’ve taught me a lot about Hugin and its terminology. 

I now have the correct lens info so the alignment is better, and you are right about the need for masking. I’m also going to need to sort out the photometrics as the resulting image does not look natural.  See cropped image below….

cropped tower.jpg

Maybe I’ve chosen a difficult set of images to for my first attempt at this.  But I’ll keep trying until I get a better result.

Many thanks once again, and best wishes.


Derek

Luís Henrique Camargo Quiroz

unread,
Nov 30, 2020, 12:11:06 PM11/30/20
to hugi...@googlegroups.com


   Welcome, Derek!

   I am glad I could help you, and your image seems good to me already.  Yes, maybe a kind of darker shadow in the sky around the tower, but, as you said, maybe you used difficult images. Indeed in your tower alone the sky was much brighter.
   The fence has some misalignments, you will need to use Gimp or the like. Was the compact camera offset to the 360 camera?  Sure, you will learn a lot and your next panorama... you will like it even more!

   bye,

   Luis Henrique

Reply all
Reply to author
Forward
0 new messages