Panorama-Stitching | Stitches images into panoramas using OpenCV | Computer Vision library
kandi X-RAY | Panorama-Stitching Summary
kandi X-RAY | Panorama-Stitching Summary
Stitches images into panoramas using OpenCV.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Panorama-Stitching
Panorama-Stitching Key Features
Panorama-Stitching Examples and Code Snippets
Community Discussions
Trending Discussions on Panorama-Stitching
QUESTION
I'm trying to stitch 2 images together by using template matching find 3 sets of points which I pass to cv2.getAffineTransform()
get a warp matrix which I pass to cv2.warpAffine()
into to align my images.
However when I join my images the majority of my affine'd image isn't shown. I've tried using different techniques to select points, changed the order or arguments etc. but I can only ever get a thin slither of the affine'd image to be shown.
Could somebody tell me whether my approach is a valid one and suggest where I might be making an error? Any guesses as to what could be causing the problem would be greatly appreciated. Thanks in advance.
This is the final result that I get. Here are the original images (1, 2) and the code that I use:
EDIT: Here's the results of the variable trans
ANSWER
Answered 2018-Apr-02 at 16:27This post inspired a GitHub repo providing functions to accomplish this task; one for a padded warpAffine()
and another for a padded warpPerspective()
. Fork the Python version or the C++ version.
What any transformation does is takes your point coordinates (x, y)
and maps them to new locations (x', y')
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Panorama-Stitching
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page