
cv
beenking
这个作者很懒,什么都没留下…
展开
-
使用pytorch卷积图像
import torch.nn as nnimport torchimport cv2import numpy as npif __name__ == "__main__": img = cv2.imread('/home/xxxx/lena.jpg') img = np.swapaxes(img, 0, 2) img = np.swapaxes(img, 1, 2).reshape(3, 512, 512) img = img.astype(np.float3.原创 2020-12-31 10:15:30 · 2709 阅读 · 1 评论 -
单应矩阵与透视变换矩阵
透视变换矩阵与单应矩阵1. 单应矩阵单应矩阵Wikipedia定义为: In the field of computer vision, any two images of the same planar surface in space are related by a homography (assuming a pinhole camera model). 在计算机视觉领域,空间同一平面原创 2016-12-26 13:25:28 · 8953 阅读 · 4 评论