摘要:
from skimage import measure import cv2 import numpy as np ## ##image:二值图像 ##threshold_point:符合面积条件大小的阈值 def remove_small_points(image,threshold_point) 阅读全文
摘要:
#Python计算矩阵8邻域之和 Neighbors = [(1, 1), (1, -1), (1, 0), (-1, 0), (-1, 1), (-1, -1), (0, 1), (0, -1)] def get_neighbors_sum(array_of_arrays, row, col): 阅读全文
摘要:
1.去除NoData import cv2 import gdal import scipy.interpolate import numpy as np def read_img(filename): dataset=gdal.Open(filename) im_width = dataset.R 阅读全文