Convert mat to numpy array , numpy gradient
1.mat to array:arr = np.asarray(mat)2.matlab and numpy gradient:第二列减第一列,第三列减第一列除以2,第四列减第二列,......,最后一列减前一列。(行同理)import cv2import numpy as np...#image readimg = cv2.imread(imgpath)img_a
转载
2016-06-02 19:19:16 ·
3850 阅读 ·
0 评论