gpt4 book ai didi

c++ - 无法在 OpenCV 中打开 1 位二进制图像?

转载 作者:太空宇宙 更新时间:2023-11-04 13:34:54 29 4
gpt4 key购买 nike

如果我检查空图像,它在使用 imread 读取二进制图像时返回 true

original_img = imread("E:/Newfolder/ER41615-12.TIF",  CV_LOAD_IMAGE_ANYCOLOR );

最佳答案

来自doc

The function imread loads an image from the specified file and returns it. If the image cannot be read (because of missing file, improper permissions, unsupported or invalid format), the function returns an empty matrix ( Mat::data==NULL ).

Mat::empty() 将返回 true。

关于c++ - 无法在 OpenCV 中打开 1 位二进制图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29913498/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com