Debugger Visualizer

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to: navigation, search

Introduction

Debugger visualizers enable advanced, customized data display while you are running your application under the Visual Studio Debugger. Today's data windows have their limitations; they are text-only, hierarchical, and spatially constrained. They are not the best way to view an image, for example.

A visualizer is associated with a particular type. Whenever a variable of that type is included in a data window like the Watch window or DataTips, a little magnifying glass will be shown next to its entry. [1]

Version 2.0.0.0 Alpha comes with a debugger visualizer for Visual Studio 2005 / 2008 to help you quickly debug your Image Processing application. The visualizer can be used to inspect the following data types:

  • Image<TColor, TDepth>
  • Matrix<T> class
  • DenseHistogram class

How to Install

Automatic Installation

Staring with Version 2.0.0.0 Alpha, Emgu CV comes with a windows installation package. The installation will automatically install the Debugger Visualizer for Visual Studio 2005/2008.

Manual Installation

Manual installation is required if you are using SVN version of Emgu CV, or if you are using Visual Studio 2010.

First you should download the binary of Emgu CV. Debugger Visualizer is version specific. e.g. You cannot use Emgu CV 2.0.1.0's debugger visualizer for Version 2.0.0.0 Alpha development.

  • For Visual Studio 2005, copy all the .dll files to C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\Visualizers
  • For Visual Studio 2008, copy all the .dll files to C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers

That's all.

Using Debugger Visualizer

Using Debugger Visualizer is simple. When you are debugging your application, simply click on the Image/Matrix/DenseHistogram you wants to exam, a little magnifying glass will be shown next to its entry. Click on the magnify glass and you can conveniently exam your object as shown below.

Debugger Visualizer for Image

Debugger Visualizer for Image

Debugger Visualizer for Single Channel matrix

Debugger Visualizer for Single Channel matrix

Debugger Visualizer for Multi-Channel Matrix

Debugger Visualizer for Multi-Channel Matrix

References

  1. MSDN, Creating a Debugger Visualizer Using Visual Studio 2005 Beta 2