corentinbrtx / image-stitching Goto Github PK
View Code? Open in Web Editor NEWImage Stitching algorithm in Python from scratch with gain compensation and blending
License: MIT License
Image Stitching algorithm in Python from scratch with gain compensation and blending
License: MIT License
Are the car and building datasets available to the public?
Hi, I am getting the following error when I try to run it with the "-mbb" argument:
Traceback (most recent call last): File "main.py", line 124, in <module> connected_component, num_bands=args["num_bands"], sigma=args["mbb_sigma"] File "C:\Users\Khizar\Desktop\Projects\Proposals\Image Stitching\image-stitching main\src\rendering\multiband_blending.py", line 218, in multi_band_blending weights.append([cv2.GaussianBlur(weights[-1][i], (0, 0), sigma_k) for i in range(len(images))]) File "C:\Users\Khizar\Desktop\Projects\Proposals\Image Stitching\image-stitching main\src\rendering\multiband_blending.py", line 218, in <listcomp> weights.append([cv2.GaussianBlur(weights[-1][i], (0, 0), sigma_k) for i in range(len(images))]) NameError: free variable 'sigma_k' referenced before assignment in enclosing scope
hi
thanks for the repo, looks real cool and easy to use.
I gave a try at the code, to stitch 11 images. It toolk quite along time before I got the following message:
../image-stitching/src/rendering/simple_blending.py:68: RuntimeWarning: invalid value encountered in true_divide
new_weights = (weights + image_weights) / (weights + image_weights).max()
I cannot share the images unfortunately, but they are 3kx4k (11Mpix) each, for a total size of about 45Mo.
Any idea? Could it be that an image could not get connected to the others?
Traceback (most recent call last):
File "C:\Users\felix\Downloads\image-stitching-main\image-stitching-main\main.py", line 68, in
pair_matches: List[PairMatch] = matcher.get_pair_matches()
File "C:\Users\felix\Downloads\image-stitching-main\image-stitching-main\src\matching\multi_images_matches.py", line 72, in get_pair_matches
if pair_match.is_valid():
File "C:\Users\felix\Downloads\image-stitching-main\image-stitching-main\src\matching\pair_match.py", line 95, in is_valid
self.set_overlap()
File "C:\Users\felix\Downloads\image-stitching-main\image-stitching-main\src\matching\pair_match.py", line 71, in set_overlap
mask_b = cv2.warpPerspective(
cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\imgwarp.cpp:3304: error: (-215:Assertion failed) (M0.type() == CV_32F || M0.type() == CV_64F) && M0.rows == 3 && M0.cols == 3 in function 'cv::warpPerspective'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.