资源简介

CNN在遥感图像配准中的实现源代码,参考论文:利用深度卷积特征进行多时相遥感图像配准《Multi-Temporal Remote Sensing Image Registration Using Deep Convolutional Feature》

资源截图

代码片段和文件信息

from __future__ import print_function
import Registration
import matplotlib.pyplot as plt
from utils.utils import *
import cv2

# designate image path here
IX_path = ‘../img/1a.jpg‘
IY_path = ‘../img/1b.jpg‘

IX = cv2.imread(IX_path)
IY = cv2.imread(IY_path)

#initialize
reg = Registration.CNN()
#register
X Y Z = reg.register(IX IY)
#generate regsitered image using TPS
registered = tps_warp(Y Z IY IX.shape)
cb = checkboard(IX registered 11)

plt.subplot(131)
plt.title(‘reference‘)
plt.imshow(cv2.cvtColor(IX cv2.COLOR_BGR2RGB))
plt.subplot(132)
plt.title(‘registered‘)
plt.imshow(cv2.cvtColor(registered cv2.COLOR_BGR2RGB))
plt.subplot(133)
plt.title(‘checkboard‘)
plt.imshow(cv2.cvtColor(cb cv2.COLOR_BGR2RGB))

plt.show()






    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-05 08:42  cnn-registration-publish\
     文件          65  2018-08-05 08:42  cnn-registration-publish\.gitattributes
     文件          11  2018-08-05 08:42  cnn-registration-publish\.gitignore
     文件        1066  2018-08-05 08:42  cnn-registration-publish\LICENSE
     文件        2598  2018-08-05 08:42  cnn-registration-publish\README.md
     目录           0  2018-08-05 08:42  cnn-registration-publish\img\
     文件       96602  2018-08-05 08:42  cnn-registration-publish\img\1a.jpg
     文件       88800  2018-08-05 08:42  cnn-registration-publish\img\1b.jpg
     文件      843499  2018-08-05 08:42  cnn-registration-publish\img\process_comp.jpg
     文件          52  2018-08-05 08:42  cnn-registration-publish\requirements.txt
     目录           0  2018-08-05 08:42  cnn-registration-publish\src\
     文件        5886  2018-08-05 08:42  cnn-registration-publish\src\Registration.py
     文件        3203  2018-08-05 08:42  cnn-registration-publish\src\VGG16.py
     文件         751  2018-08-05 08:42  cnn-registration-publish\src\demo.py
     目录           0  2018-08-05 08:42  cnn-registration-publish\src\utils\
     文件           0  2018-08-05 08:42  cnn-registration-publish\src\utils\__init__.py
     文件        3286  2018-08-05 08:42  cnn-registration-publish\src\utils\shape_context.py
     文件        4306  2018-08-05 08:42  cnn-registration-publish\src\utils\utils.py
     文件    39981496  2018-08-05 08:42  cnn-registration-publish\src\vgg16partial.npy

评论

共有 条评论