From 5ed4051a8e8c8a2e173dbb2b2949a7baf01f2656 Mon Sep 17 00:00:00 2001 From: Ludovic CASTIGLIA Date: Sun, 2 Feb 2025 11:01:14 +0100 Subject: [PATCH] patchMatch2 au propre --- patchMatch2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]