python 图像重叠分块恢复

图像重叠分块请阅读这篇文章:

https://blog.csdn.net/coolsunxu/article/details/102639674


import cv2
import math 
import numpy as np
import functools
 
from pathlib import Path

def custom_sort(x,y):
	x = x.split(tag)[-1].split('.')[0].split('_')
	x = [int(i) for i in x]
	y = y.split(tag)[-1].split('.')[0].split('_')
	y = [int(i) for i in y]
	for i in range(len(x)):
		if(x[i]>y[i]):
			return 1
		elif(x[i]

 

你可能感兴趣的:(Python,python,图像重叠分块)