Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python中原图片可视化转换 #69

Open
guanshuicheng opened this issue Aug 20, 2020 · 0 comments
Open

python中原图片可视化转换 #69

guanshuicheng opened this issue Aug 20, 2020 · 0 comments

Comments

@guanshuicheng
Copy link

guanshuicheng commented Aug 20, 2020

原图片的64位深度无法直接使用常规的图片阅览器打开,python环境下转换为24位深度代码:
img_path = './BDCI2017-jiage-Semi/train/train1.png' img = cv2.imread(img_path, cv2.CV_64F) img = np.array(img, dtype=np.uint8) cv2.imwrite('./BDCI2017-jiage-Semi/train1.png', img)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant