Browse Source

git-svn-id: http://newslabx.csie.ntu.edu.tw/svn/Ginger@21 5747cdd2-2146-426f-b2b0-0570f90b98ed

master
Hobe 5 years ago
parent
commit
54416fa51b
2 changed files with 2 additions and 2 deletions
  1. BIN
      trunk/code/equalize.avi
  2. +2
    -2
      trunk/code/readGridEye.py

BIN
trunk/code/equalize.avi View File


+ 2
- 2
trunk/code/readGridEye.py View File

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


Loading…
Cancel
Save