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

cv::Mat reshape does not support 1d and 0d arrays #25174

Open
4 tasks done
asmorkalov opened this issue Mar 6, 2024 · 1 comment
Open
4 tasks done

cv::Mat reshape does not support 1d and 0d arrays #25174

asmorkalov opened this issue Mar 6, 2024 · 1 comment

Comments

@asmorkalov
Copy link
Contributor

System Information

OS: any

Detailed description

C++ exception with description "OpenCV(5.0.0-pre) /home/alexander/Projects/OpenCV/opencv-next/modules/core/src/matrix.cpp:1194: error: (-215:Assertion failed) dims <= 2 in function 'reshape'

Steps to reproduce

std::vector<float> tmp;
cv::Mat(tmp).reshape(...);

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)
@asmorkalov asmorkalov added the bug label Mar 6, 2024
@asmorkalov asmorkalov modified the milestones: 4.10.0, 5.0 Mar 6, 2024
@opencv-alalek
Copy link
Contributor

relates #23473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants