Comments (3)
Have a good day @kumar-jitendra , as it could be seen by running ./image-stitching match image1.jpg image2.jpg
the match.jpg
shows that the method is confused because of the repeated pattern shown at the curtains, where left curtain pattern points are matched to the right curtain pattern points. I am trying to arrive to a solution for your problem.
When using ./image-stitching inlier image1.jpg image2.jpg
things get better but some details appear, as an slope appears at the top-part image perspective distortion frame (attaching image with marked frame). That slope needs to be diminished in order to accomplish the task. I would try with new parameters and would let you know.
from openpano.
I adjusted some settings in the configuration file in order to have some results. I attach the configuration file and the solution here.
Configuration file
# [general modes]: if no modes is set, will use naive mode
CYLINDER 0
ESTIMATE_CAMERA 1
TRANS 0
# if no modes above is set, use naive mode
ORDERED_INPUT 0 # set this option when input is ordered
CROP 1 # crop the result to a rectangle
MAX_OUTPUT_SIZE 8000 # maximum possible width/height of output image
LAZY_READ 1 # use images lazily and release when not needed.
# save memory in feature stage, but slower in blending
# focal length in 35mm format. used in CYLINDER mode
#FOCAL_LENGTH 37 # from jk's camera
#FOCAL_LENGTH 40
FOCAL_LENGTH 15
#FOCAL_LENGTH 24 # my sony camera
#FOCAL_LENGTH 25.83 # for Mi3 phone, focal length * 7.38
# [keypoint related parameters]:
SIFT_WORKING_SIZE 800 # working resolution for sift
NUM_OCTAVE 4
NUM_SCALE 7
SCALE_FACTOR 1.4142135623
GAUSS_SIGMA 1.4142135623
GAUSS_WINDOW_FACTOR 7 # larger value gives less feature
# These parameters are tuned for images of about 0.7 megapixel
# For smaller images, you may need to change parameters for more features
CONTRAST_THRES 8e-2 #Lowe: 3e-2. smaller value gives more feature
JUDGE_EXTREMA_DIFF_THRES 2e-3 # smaller value gives more feature
#!! making it small could result in low-quality keypoint
EDGE_RATIO 6 #lowe: 10. larger value gives more feature
PRE_COLOR_THRES 5e-2
CALC_OFFSET_DEPTH 4
OFFSET_THRES 0.3 # 0.3 is still good, this settings has big impact
# lowe used 0.5. smaller value gives more feature
# ----
# [descriptor and matching related]:
ORI_RADIUS 4.5 # this radius might be large?
ORI_HIST_SMOOTH_COUNT 2
DESC_HIST_SCALE_FACTOR 3
DESC_INT_FACTOR 512
MATCH_REJECT_NEXT_RATIO 0.8
# use more iteration if hard to find match
RANSAC_ITERATIONS 4000 # lowe: 500
RANSAC_INLIER_THRES 5.0 #3.5 # inlier threshold corresponding to 800-resolution images
INLIER_IN_MATCH_RATIO 0.05 #0.1 # number of inlier divided by all matches in the overlapping region
INLIER_IN_POINTS_RATIO 0.04 # number of inlier divided by all keypoints in the overlapping region
# ----
# [optimization and tuning]
STRAIGHTEN 0
SLOPE_PLAIN 8e-3
LM_LAMBDA 5
MULTIPASS_BA 2
# 0: only perform one-pass bundle adjustment for all images and connections (fast)
# 1: perform BA for each image added (suggested)
# 2: perform BA for each connection found (best quality, slow)
# ---
# [blending]
MULTIBAND 2 # set to 0 to disable, set to k to use k bands
from openpano.
FYI I came across a similar result at one point when doing some stitching. It could be completely unrelated BUT are you normalizing your EXIF data before processing the images? Many cameras will shoot photos landscape while storing information so the OS knows to rotate it.
Details below on how to fix that but again, might not be your issue at all.
You can use exiftool to normalize them like this:
exiftool -all:all= -tagsfromfile @ -exif:Orientation ./images/
or with imagemagik
for f in *.JPG *.jpg; do convert $f -auto-orient $f; done
from openpano.
Related Issues (20)
- HOW TO RUN IN MAC (2022) -compiler issues HOT 2
- error:Failed to find hfactor HOT 1
- 请问一下超过4k分辨率的图像拼接会有明显的重影的话,应该往哪个方向优化呢
- 在windows vs2015上配置问题 HOT 7
- 双目AI球型摄像机拼接 HOT 1
- CImg critical errors
- 为什么会出现error link 2001和error link 2019?
- About Panorama Stitching?
- TRANS模式下,扫描平面的图像队列,拼接后的的图形变形严重如何修正?
- libopenpano.so: undefined reference to `LZ4_decompress_safe_continue' HOT 1
- src.rows() > 1 && src.cols() > 1" failed, in resize<float>, HOT 1
- Can resources be optimized
- Compiled on ARM mac / 在 ARM mac 上编译完的
- Windows 编译报错太多啦, 大佬们,希望维护一下windows上的编译环境和代码,谢谢啦 HOT 1
- cv2 Stitcher_create() C++ output blur
- stich images output blur
- error: Cannot find feature in image
- Realtime Stitch
- record how to use on windows
- Dataset availability?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openpano.