Skip to content

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

@guanshuicheng

Description

@guanshuicheng

原图片的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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions