From 5a00f3f8040d54280c8c2a1360928b12dbf50ec4 Mon Sep 17 00:00:00 2001 From: Josef Brandt Date: Mon, 31 Aug 2020 13:05:47 +0200 Subject: [PATCH] Fix in Imagestitch --- imagestitch.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imagestitch.py b/imagestitch.py index 48bb76c..519a812 100644 --- a/imagestitch.py +++ b/imagestitch.py @@ -24,17 +24,15 @@ import numpy as np def imageStacking(colimgs): full = [] - images = [] laplacians = [] for img in colimgs: gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) - lap = cv2.Laplacian(gray, cv2.CV_64F) + lap = cv2.Laplacian(gray, cv2.CV_64F, ksize=7) full.append(img) - images.append(gray) blurlap = (cv2.GaussianBlur((lap)**2,(25,25),0)) laplacians.append(blurlap) - images = np.array(images) + laplacians = np.array(laplacians) full = np.array(full) full = np.uint8(full) -- GitLab