This repositories provides a debugging visualizer utility when working on OpenCV Mat.
- Create the file
~/.gdbinit
. - Insert the following lines:
python
import sys
sys.path.insert(0, THE_PATH_OF_THIS_REPOSITORY)
import cv_mat_vis.py
cv_mat_vis.register_printers()
end
- Launch gdb or some editor call gdb (like VSCode) then you can print mat as build-in support type variables.
- As a simple utility, it only support small matrix variables with continuous storage, which is adequate for general applications.
- The performance overhead is not guaranteed.
- Support Graphical debugger of Clion.
- Support discontinuous matrix.