Python图像逐像素点取邻域数据
图像比较大的话,在MATLAB上跑起来比较慢,用Python跑就会快很多,贴此备用吧!
#coding=utf-8
import pandas as pd
import numpy as np
from pandas import DataFrame
from matplotlib import pyplot as plt
from matplotlib import image
import scipy
import cv2
import scipy.io as sio
#原始数据四周补0