360° Stiching [closed]

asked 2015-09-21 15:19:04 -0600

Waishon gravatar image


I'm trying to create a 360° Pamorma, so I used the OpenCV Stichling Library. I found an interesting and pretty well working code in github. https://github.com/Itseez/opencv/blob...

The result is nearly perfect, but if I render this image as a sphere the color/brightness of the beginning and the end doesn't fit very well. http://i.stack.imgur.com/HBNdL.jpg

Is there an easy improvement to fix this issue? I don't want to rewrite the complete algorithm. :)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2017-09-03 06:20:54.705590


Have you try this code or this one (same code without timelapser bug)?

LBerger gravatar imageLBerger ( 2015-09-22 01:24:40 -0600 )edit

This is a known problem of panoramic stitching, especially when projecting to a spherical image. You will need to write a personal smooting/brightness adapting algorithm at the final stitch position.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-22 03:13:15 -0600 )edit

Have you try to use a Multiband blend_type with a blend strength of 2? With these values I think boundary line would disappear but not color difference between two images here an example with feather blend and here with multiband blend

LBerger gravatar imageLBerger ( 2015-09-22 03:44:51 -0600 )edit

That indeed seems a solution ;)

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-22 04:15:33 -0600 )edit

@LBerger The Problem is, that the border isn't in the middle of the image. Is it possible to cut about 500px from the right end and 500px from the beginning, stitch it and replace this area? I am using OpenCV 2.4.11 if this info is necessary.

Waishon gravatar imageWaishon ( 2015-09-22 08:41:23 -0600 )edit

Have you try to use a cylindrical projection instead of spherical?

LBerger gravatar imageLBerger ( 2015-09-22 10:30:32 -0600 )edit

Yes, I tried this, I get the same result. :(

Waishon gravatar imageWaishon ( 2015-09-22 13:03:04 -0600 )edit

can you post orignal images ?

LBerger gravatar imageLBerger ( 2015-09-22 13:24:14 -0600 )edit

Yes, but I have to make a new one, I dont want to publish my garden on the Internet :) It looks like a every 360 degree image, but only horizontal :)

Waishon gravatar imageWaishon ( 2015-09-22 13:28:44 -0600 )edit

In your picture what you call border is it located here ? and should be in the middle?

LBerger gravatar imageLBerger ( 2015-09-22 14:06:14 -0600 )edit