diff --git a/patchMatch2.py b/patchMatch2.py index 0beaf7c..c109202 100644 --- a/patchMatch2.py +++ b/patchMatch2.py @@ -4,7 +4,7 @@ from random import randint import numpy as np -def doPatchMatch(img,x1,y1,x2,y2,patchSize=129): +def doPatchMatch(img,x1,y1,x2,y2,patchSize=65): def getDist(pValue1, pValue2): return np.sum((pValue1 - pValue2) ** 2) @@ -139,7 +139,7 @@ def doPatchMatch(img,x1,y1,x2,y2,patchSize=129): # img[y, x] = [255, 255, 255] # return img -img = plt.imread('asset/vache.png') +img = plt.imread('asset/mur.jpg') if img.dtype == np.float32: img = (img * 255).astype(np.uint8) img = img[:,:,0:3]