Difference between revisions of "Debugger Visualizer"

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to: navigation, search
(Using Debugger Visualizer)
m (Reverted edits by Inuxejiq (talk) to last revision by Canming)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== What is it ==
+
== Introduction ==
According to [http://msdn.microsoft.com/en-us/library/zayyhzts.aspx MSDN]
+
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.  
  
: ''Visualizers are a new component of the Visual Studio debugger user interface. A visualizer creates a dialog box or other interface to displays a variable or object in a meaningful way that is appropriate to its data type.''
+
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. <ref>[http://msdn.microsoft.com/en-us/library/ms379596(VS.80).aspx MSDN, Creating a Debugger Visualizer Using Visual Studio 2005 Beta 2]</ref>
  
[[Emgu CV]] ver >= 2.0 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 Image and Matrix class during debug.
+
[[Version_History#Emgu.CV-2.0.0.0_Alpha|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 ==
 
== How to Install ==
Download the [[Emgu CV]] binary (ver >= 2.0).  
+
=== Automatic Installation ===
 +
Staring with [[Version_History#Emgu.CV-2.0.0.0_Alpha|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 [[Version_History#Emgu.CV-2.0.1.0|Emgu CV 2.0.1.0]]'s debugger visualizer for [[Version_History#Emgu.CV-2.0.0.0_Alpha|Version 2.0.0.0 Alpha]] development.
 +
 
* For Visual Studio 2005, copy all the .dll files to <code>C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\Visualizers</code>
 
* For Visual Studio 2005, copy all the .dll files to <code>C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\Visualizers</code>
 
* For Visual Studio 2008, copy all the .dll files to <code>C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers</code>
 
* For Visual Studio 2008, copy all the .dll files to <code>C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers</code>
That's it.
+
 
 +
That's all.
  
 
== Using Debugger Visualizer ==
 
== 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 ===
 +
[[image:DebuggerVisualizerImage1.png |center|Debugger Visualizer for Image]]
  
 
=== Debugger Visualizer for Single Channel matrix ===
 
=== Debugger Visualizer for Single Channel matrix ===
Line 19: Line 35:
 
=== Debugger Visualizer for Multi-Channel Matrix ===
 
=== Debugger Visualizer for Multi-Channel Matrix ===
 
[[image:DebuggerVisualizerMatrix2.png |center|Debugger Visualizer for Multi-Channel Matrix]]
 
[[image:DebuggerVisualizerMatrix2.png |center|Debugger Visualizer for Multi-Channel Matrix]]
 +
 +
==References==
 +
<references/>

Latest revision as of 13:39, 30 November 2010

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