diff --git a/trunk/code/equalize.avi b/trunk/code/equalize.avi new file mode 100644 index 0000000..beab47f Binary files /dev/null and b/trunk/code/equalize.avi differ diff --git a/trunk/code/readGridEye.py b/trunk/code/readGridEye.py index b49da2c..d21e2f0 100644 --- a/trunk/code/readGridEye.py +++ b/trunk/code/readGridEye.py @@ -95,9 +95,9 @@ if __name__ == '__main__': img = (np.array(frame.data)-15)*10 - img = cv2.resize(img.astype(np.uint8), (SIZE,SIZE), interpolation = cv2.INTER_CUBIC) # INTER_LINEAR, INTER_CUBIC + img = cv2.equalizeHist(cv2.resize(img.astype(np.uint8), (SIZE,SIZE), interpolation = cv2.INTER_CUBIC)) # INTER_LINEAR, INTER_CUBIC img2 = (np.array(frame2.data)-15)*10 - img2 = cv2.resize(img2.astype(np.uint8), (SIZE,SIZE), interpolation = cv2.INTER_CUBIC) + img2 = cv2.equalizeHist(cv2.resize(img2.astype(np.uint8), (SIZE,SIZE), interpolation = cv2.INTER_CUBIC)) out = np.zeros((SIZE*2, SIZE*2), dtype=np.uint16) out[:SIZE, :SIZE] = img