|
|
@ -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 |
|
|
|