Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyricccco authored Nov 5, 2024
1 parent 3d66fa8 commit c352c75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/bgu.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ def bguFit(input_fs, output_fs):


if __name__ == "__main__":
input_fs = cv2.imread('/ailab/user/liruikang/DualDn/utils/high_in.png')
output_fs = cv2.imread('/ailab/user/liruikang/DualDn/utils/high_out.png')
input_fs = cv2.imread('high_in.png')
output_fs = cv2.imread('high_out.png')
gamma = bguFit(input_fs, output_fs)
result_fs = bguSlice(gamma, input_fs)
result = (np.clip(result_fs, 0, 1) * 255).astype(np.uint8)
cv2.imwrite('/ailab/user/liruikang/DualDn/utils/result.jpg',result)
cv2.imwrite('result.jpg',result)

0 comments on commit c352c75

Please sign in to comment.