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

empty cv::Mat when read jpg file with specified cv::IMREAD_COLOR_RGB #174

Open
My-captain opened this issue Dec 17, 2024 · 0 comments
Open

Comments

@My-captain
Copy link

My-captain commented Dec 17, 2024

当指定以RGB mode读取jpg图片时,得到的图片空的(长宽高是0、0、1)。示例代码如下

cv::Mat image = cv::imread(image_path, cv::IMREAD_COLOR_RGB);

std::cout<<image.cols<<":"<<image.rows<<":"<<image.channels()<<std::endl;

// 0:0:1

请问是不是我的使用方法有问题?烦请指点迷津

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