Need help to sticth

95 views
Skip to first unread message

Mihai Dobrescu

unread,
Jan 29, 2022, 3:56:11 AM1/29/22
to hugin and other free panoramic software
Hello,

I have a batch of images taken by hand. I could make a panorama in Photoshop in two minutes, but I would like to move to Hugin. I could not make it although I've tried for days.
The main problem is it keeps mixing like this:

crop.jpg

Is there anybody willing to help me with this, please?

Thanks.

johnfi...@gmail.com

unread,
Jan 29, 2022, 7:56:04 AM1/29/22
to hugin and other free panoramic software
I'm pretty sure your main problem is that by default Hugin aligns images based on the assumption that they were taken from a fixed point of view (not hand held) so only yaw, pitch and roll vary between images.

I find the expert interface much simpler than the "Simple" interface (once you know the basic work flow).  In the photos tab (in expert interface) you can try to get better alignment using the Optimize / Geometric controls.  "Position" there refers to yaw, pitch and roll.  It seems to be a good idea to calculate first with just that, so subsequent optimize runs are starting near the answer.  But when lens properties and/or hand held causes position alone to give poor alignment, recalculate with more parameters ("translation" is the name of the parameters that deal with the images being hand held).  If that isn't enough, you need to change some control points:

1) individual control point might badly fail to align and their contribution then makes all the other points align a bit worse.  So just deleting them (in the control points tab) then recalculating Optimize / Geometric may help.

2) If you need translation computed and significant parts of your image are at different distances from the camera, there is no way for the translation computation to be correct (no stitching software could get that right because there is no right).  You need to select a single most important distance and delete control points that are on objects too close or too far away and add some more at the right distance.  In some panoramas that is enough because there is a single most important distance.  Other times, you then need to fix things for the less important distances.  That requires masking so each important object at other than the select distance is taken from just one photo, rather than blurred between two photos.  Masking lets the software transition between photos either in areas that already were not very sharp (sky, very distant trees, etc.) or in areas with perfect alignment.  Remember if you use a tripod and slide if necessary to get exactly the right axis of rotation, then all distances act the same (zero translation is correct for everything).

Mihai Dobrescu

unread,
Jan 29, 2022, 6:36:17 PM1/29/22
to hugin and other free panoramic software
I have picked all the images, put them in Photoshop and it has chosen exactly what I would have chosen automatically. In a few minutes.

Tried in Hugin to get a consistent image for weeks. It either outputs black areas or strange gray to black gradients, although the images were apparently set in a good disposition.
The best outcome was like the previous sample, a mix of repeating parts. I am not good at this, I presume, although I've tried peeking some or changing the order, adding/removing control points etc..
Whoever is willing, I can share the images and Photoshop result as proof it's possible.

Regards.

David W. Jones

unread,
Jan 29, 2022, 7:24:03 PM1/29/22
to hugi...@googlegroups.com
Can you post your images somewhere? I'm curious to see what I can do with them.

--
David W. Jones
gnome...@gmail.com
exploring the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

Mihai Dobrescu

unread,
Jan 30, 2022, 12:38:35 AM1/30/22
to hugi...@googlegroups.com

--
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/8A266A50-37F2-4B2A-9A60-A30AACBAA629%40gmail.com.


--
Mihai Sorin Dobrescu

David W. Jones

unread,
Feb 2, 2022, 1:21:28 AM2/2/22
to hugin-ptx
Hi, Mihai!

How I got this

Note: I use Linux and don't have Photoshop, so I viewed the panorama you
provided in GIMP.

I use the Expert interface in Hugin.

I shoot handheld panoramas all the time, so I used my usual process.

Steps

1. Converted CR2 to 16-bit TIF images using RawTherapee.
2. Opened Hugin, added the TIF images.
3. Went to Fast Preview window and ran the Assistant. The Assistant gave
me a panorama with two separate arcs, about half on each side, with some
empty space between. See below for what I think may have fixed that.
4. Closed the Fast Preview window.
5. On the Photos tab, optimized Geometric for Positions (incremental,
starting from anchor).
6. Cleaned control points - right-click in the photos list, select
Control points > Clean control points.
7. Optimized Geometric for Positions (y,p,r).
8. Cleaned control points.
9. Optimized Geometric for Positions and View (y,p,r,v).
10. Cleande control points.
11. Optimized Geometric for Positions and Barrel Distorion (y,p,r,b).
12. Cleaned control points.
13. Optimized Geometric for Positions, View and Barrel (y,p,r,v,b).
14. Cleaned control points.
15. Optimized Geometric for Everything without translation.
16. Optimized Photometric for Low Dynamic Range.
17. Opened the Fast Preview window.
18. On the Projection tab, I set projection to Cylindrical.
19. On the Move/Drag tab, I clicked Center.

That gave me an image that looked very much like what you have in
Photoshop. The vertical lines in mine came out more vertical because
that's what the Cylindrical projection does.

The Clean control points steps each removed a lot of control points. So
your initial foray using Hugin might have been affected by having so
many bad control points.

About the split arc in step 3. The stand of trees to the left of the
small pagoda in the center was where the arcs were broken. I manually
added a control point on the peak of the building to the right of the
trees, and one on the corner of one of the lower windows. I think that
was the bit that turned the split arcs into a single panorama, but the
subsequent optimization and control point cleaning might have also fixed
it, too.

I uploaded the PTO and one of the HDR versions I made to my Google Drive
and shared it with you. They're smaller than the 670MB 48-bit TIFF
original I started with.

Hope that helps!

On 1/29/22 19:37, Mihai Dobrescu wrote:
> Here you go!
> Just tell me if you need access.
> IMG_2886.CR2
> <https://drive.google.com/file/d/1Lpx6NWXMoYwexh-oZZIdsIcwnAYTm48G/view?usp=drive_web>
> IMG_2887.CR2
> <https://drive.google.com/file/d/1SqI24puW6sNtSprp8xxqFH4PnmSdjXCB/view?usp=drive_web>
> IMG_2888.CR2
> <https://drive.google.com/file/d/1hMs8LRVBw8MxvE9eNvhiULz1DYBR-kua/view?usp=drive_web>
> IMG_2889.CR2
> <https://drive.google.com/file/d/1OTLL_yn9aGQ3xzPqeknqRkauFfYJBPK5/view?usp=drive_web>
> IMG_2890.CR2
> <https://drive.google.com/file/d/13SKFXY8pU-RpTER8zIKZP4y8_pdnYeqv/view?usp=drive_web>
> IMG_2891.CR2
> <https://drive.google.com/file/d/12CodjQ8-U4NJsPaenhqD-HVTrjCDmtd2/view?usp=drive_web>
> IMG_2892.CR2
> <https://drive.google.com/file/d/1nL-mroc0c-2lTcBOcf9TVZ02w_QCR2em/view?usp=drive_web>
> IMG_2893.CR2
> <https://drive.google.com/file/d/1Ay1AcH4Xf3GzPBRy7ALbYV2jJ_l7M_gl/view?usp=drive_web>
> IMG_2894.CR2
> <https://drive.google.com/file/d/1MOtxaal3rPOXPS-1laOEwQ-IkQZ1yGgJ/view?usp=drive_web>
> IMG_2895.CR2
> <https://drive.google.com/file/d/1i5CcbyOz_zUqUIuEPfpkTJJqiy8WQd1A/view?usp=drive_web>
> IMG_2896.CR2
> <https://drive.google.com/file/d/1Ie87Qg7qBZdFAEgg5H1t2MQQrK-6lk20/view?usp=drive_web>
> IMG_2897.CR2
> <https://drive.google.com/file/d/1_JkZtqWbheAsrHIKHlrnExuzAUle-Su6/view?usp=drive_web>
> IMG_2898.CR2
> <https://drive.google.com/file/d/17KcEKx1v7hIxZG9HSX9cmaZP4IF9vAFs/view?usp=drive_web>
> IMG_2899.CR2
> <https://drive.google.com/file/d/1wH8AHbOkXibUsPMtp-cITVAAfTHjR-tw/view?usp=drive_web>
> IMG_2900.CR2
> <https://drive.google.com/file/d/1kF_6l9ZVPHP4LPrMbz6BY7uIB4A-k2vC/view?usp=drive_web>
> IMG_2901.CR2
> <https://drive.google.com/file/d/19f0i65eOS8BhsfNDbFBx1-WVR65r0Eyw/view?usp=drive_web>
> IMG_2902.CR2
> <https://drive.google.com/file/d/1oV0aKjivTDP-1i2mFxDf5f7eA_QTdQHD/view?usp=drive_web>
> IMG_2903.CR2
> <https://drive.google.com/file/d/19emXAYjeAi8irFJ3MOqPHiaRw1Upp0kf/view?usp=drive_web>
> IMG_2904.CR2
> <https://drive.google.com/file/d/1T0of1XgTuqJkGJE79biKlOrgnxiDrhCF/view?usp=drive_web>
> IMG_2906.CR2
> <https://drive.google.com/file/d/1z6uUAdU78Wvv5624ZaOutpTrfhwjEb-7/view?usp=drive_web>
> IMG_2907.CR2
> <https://drive.google.com/file/d/1NNn2lq7Uk4K918orNtlTZCE3ECh1X5kv/view?usp=drive_web>
> IMG_2908.CR2
> <https://drive.google.com/file/d/1BGMDP-xqCZP9yFiSWWeqVG97dfvbfvf0/view?usp=drive_web>
> IMG_2886-2899_2901-2904_2906-2908_Pano.psd
> <https://drive.google.com/file/d/1xjT15kUU7mfh_wJOHr5Ug6IqZoy6r68B/view?usp=drive_web>
>
> On Sun, Jan 30, 2022 at 2:24 AM David W. Jones <gnome...@gmail.com
> <mailto:gnome...@gmail.com>> wrote:
>
> Can you post your images somewhere? I'm curious to see what I can do
> with them.
>
> On January 29, 2022 1:36:17 PM HST, Mihai Dobrescu
> <msdob...@gmail.com <mailto:msdob...@gmail.com>> wrote:
>
> I have picked all the images, put them in Photoshop and it has
> chosen exactly what I would have chosen automatically. In a few
> minutes.
>
> Tried in Hugin to get a consistent image for weeks. It either
> outputs black areas or strange gray to black gradients, although
> the images were apparently set in a good disposition.
> The best outcome was like the previous sample, a mix of
> repeating parts. I am not good at this, I presume, although I've
> tried peeking some or changing the order, adding/removing
> control points etc..
> Whoever is willing, I can share the images and Photoshop result
> as proof it's possible.
>
> Regards.
>
>
> On Saturday, January 29, 2022 at 2:56:04 PM UTC+2
> crop.jpg
>
> Is there anybody willing to help me with this, please?
>
> Thanks.
>

--
David W. Jones
gnome...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com
My password is the last 8 digits of π.

Mihai Dobrescu

unread,
Feb 2, 2022, 1:41:06 AM2/2/22
to hugin and other free panoramic software
Thank you so much for your time, I'll try to follow the steps and learn!
I may come back to ask about some stuff.
For instance, I'd prefer image 2886 to prevail, but in my tests that makes everything go wrong, the image you have picked seems to provide the best alignment.

I'd like to be able to open Hugin in Expert with the Fast Panorama view too, or any other combination of its windows I chose.

If you have such complicated workflow, scripting some parts would be nice (I know there are manual adjustments too).

I use Linux too, I keep Windows for Photoshop only, this is why I started to learn Hugin in the first place, so I can get rid of Windows.

The images are in Romania, at Bârsana Monastery, here you can find wooden Orthodox churches. Around that you can find the tallest wooden church in Europe, at Săpânța.

I'll remove the images from my drive soon, if anyone is interested.

Best Regards.

Mihai Dobrescu

unread,
Feb 9, 2022, 3:02:36 AM2/9/22
to hugin and other free panoramic software
Hello, I've been through a system update, something may be broken.
I have picked the same set from scratch and it never ends aligning them (the first step).
It seems to go in circles for hours to no conclusion.
How can I assess the reason?

Thank you.

Mihai Dobrescu

unread,
Feb 17, 2022, 9:18:06 AM2/17/22
to hugin and other free panoramic software
Hi, still not getting it working.
When I run the assistant, it goes and goes, at some point I spot -'nan units' values.
Is this expected?

Thank you!
Reply all
Reply to author
Forward
0 new messages