在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):YoshiRi/ImRegPOC开源软件地址(OpenSource Url):https://github.com/YoshiRi/ImRegPOC开源编程语言(OpenSource Language):Jupyter Notebook 94.6%开源软件介绍(OpenSource Introduction):Robust FFT-Based Image Registration Tools for PythonThis program provides robust image registration method using "Phase Correlation" technique. With this toolbox, you can estimate Translation, Rotation and Scaling between two images. Output form is supported: Affine Matrix, each parameter Here is image mosaicing result with this tool. Getting startedRequirements
This branch is for the opencv 3.X. For windows users, anaconda is one of the choise to install both of this. InstallationPut import imregpoc or use setup.py shown below.
or using pip
TestThere are two classes included in this module. Both classes supports the image registration method. preparationImport modules and read monocular images. import cv2
import numpy as np
import imregpoc
# read monocular image
ref = cv2.imread('ref.png',0)
cmp = cv2.imread('cmp.png',0) Phase-CorrelationRead monocular images and put two images to the # initialization
result = imregpoc.imregpoc(ref,cmp) You can get perspective transformation matrix with
or can get transformation parameters of [x traslation, y translation, rotation, scaling].
The merit of this method is that you can detect the success of this estimation via checking certain value. You can use isSucceed() function to check it. (0/1 to failure/succeed)
Finally you can see stitched image based on the matching results.
Feature points based template trackIf you can use opencv-contrib package, this
Here is sample code. # read monocular image
ref = cv2.imread('ref.png',0)
cmp = cv2.imread('cmp.png',0)
# initialization (SIFT can be changed to other descriptor)
matcher = imregpoc.TempMatcher(ref,'SIFT') match() function can do matching with the chosen descriptor. matcher.match(cmp,1) # you can ommit like matcher.match(cmp) to avoid show matched image # perspective transformation matrix (Homography matrix)
matcher.getPerspective()
# stitching two images based on the matching result
matcher.stitching() For further function, please see Data SetsThe data sets to evaluate the Image registration results are available in Google Drive. LICENSEBSD license Author and CitationIf you used this programs, please cite our paper. For Japanese, please refer this paper.
Or this paper.
Another Related paper is here :
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论