I want to create a mat and show it in a window named \"figure\".
If there is nothing wrong, there should be a window named \"figure\", and accept any key to stop.
This problem is due to wrong linking settings.
opencv_world331d.lib
opencv_world331.lib