Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenCV Mat Image ShowNew to Visual Studio Code? Get it now.
OpenCV Mat Image Show

OpenCV Mat Image Show

zhu

|
33 installs
| (0) | Free
This is a simple extension to display opencv images while c++ debugging.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenCV C++ Image

OpenCV C++ Image is a Visual Studio Code extension for inspecting cv::Mat values while debugging C++ programs. It reads matrix metadata and raw pixel memory through the Debug Adapter Protocol, then renders the result in an interactive webview.

Key Features

  • Show image previews directly from debugger variables.
  • Display matrix values as a table (rows x cols x channels).
  • Support multiple OpenCV data types, including integer and floating-point matrices.
  • Zoom and pan large images, and read per-pixel values under the cursor.
  • Sync viewport (zoom/pan) across opened images with the same size.
  • Clean up generated preview files automatically when the debug session ends.

How It Works

  1. Start a C++ debug session in VS Code.
  2. In the Variables panel, right-click a cv::Mat variable.
  3. Run Show Image (opencv-image.image) from the context menu.
  4. The extension reads memory, converts image data, and opens a webview for inspection.

Demo

extension gif

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft