I need to check elements of some cv::Mat
s while debugging my OpenCV C++ code.
Tried adding mymat.at<double>(0, 0)
to watch but there are two problems:
- Sometimes it doesn't work:
Couldn't find method cv::Mat::at<double>
- Even if it works, it is very hard to check elements one by one.
Currently, I write Mat contents to a file using cv::FileStorage
but it is not a good solution also.
Is there any VSCode extension like Image Watch to show value of Mat elements while debugging?