diff --git a/imagestitch.py b/imagestitch.py index 48bb76ce2389799e377f6cf3893332e1e91da33a..519a81268bab37749b8600ea5c34cb126aa39c6b 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)