why does Stitcher class not support translation

asked 2020-01-05 09:32:00 -0600

new_vision gravatar image

updated 2020-01-05 14:37:54 -0600

My project's goal is to create a map or mosaic via many images that are captured by translating by some distance. I'm confused as to why the opencv stitcher class seems to only support rotation and not translation even though SIFT, for example, is translation invariant. Additionally, from reading online, this paper link:http://matthewalunbrown.com/pape... looks like it was the basis of the stitcher class implementation.

Perhaps I am not understanding the underlying mathematics properly as a newbie to CV.

Thanks!

EDIT: https://drive.google.com/open?id=19G2...

edit retag flag offensive close merge delete

Comments

Have you try opencv tutorials?

LBerger gravatar imageLBerger ( 2020-01-05 09:49:40 -0600 )edit

Yes, I ran the stitcher_detailed.py example, and it doesn't work for my images even with passing in a lower conf_threshold, so I'm assuming the problem is with the images which are translated

new_vision gravatar imagenew_vision ( 2020-01-05 09:56:31 -0600 )edit

Can you insert 2 images in your question?

LBerger gravatar imageLBerger ( 2020-01-05 10:49:57 -0600 )edit

Inserted pictures -- they are images of the ground carpet.

The code works with frame1 and frame2, AND frame3 and frame4 separately, but doesn't for frame1,frame2, and frame3 altogether Here is the error I get running stitching_detailed: [ERROR:0] global /tmp/opencv-20191101-65027-1spwz8t/opencv-4.1.2/modules/core/src/ocl.cpp (3039) set OpenCL: Kernel(buildWarpPlaneMaps)::set(arg_index=0, flags=260): can't create cl_mem handle for passed UMat buffer (addr=0x7ffee4a8d428)

Sorry about the delay in response @LBerger

new_vision gravatar imagenew_vision ( 2020-01-05 14:28:21 -0600 )edit

let me know if you have any ideas! thank you

new_vision gravatar imagenew_vision ( 2020-01-05 20:20:23 -0600 )edit