Use of the image watch plugin in VS2013

Source: Internet
Author: User

Before writing the OPENCV program in VS2010, often with nativeviewer, after installing this plug-in, when debugging code, for the Cv::mat variable, cv_type type CV_8UC1 or CV_8UC3, you can view the display results at any time. The following steps are:

1. Download the latest version of Nativeviewer from http://sourceforge.net/p/nativeviewer/wiki/QuickStartGuide_VS2010/and install it in VS2010 according to the steps described;

2. Open a project, set a breakpoint in debug, when the cursor is positioned to the Cv::mat variable, the Cv_type type must be one of the CV_8UC1 or CV_8UC3, other types do not, when you hold down the CTRL key, and then position the cursor to this variable, The content will be displayed as an image.

Recently with vs2013, found that Nativeviewer does not support, it only supports VS2010, found that there is a more powerful than nativeviewer plug-in image Watch, it can support vs2012, vs2013 and vs2015. The following steps are:

1. Download the latest version of image Watch from https://visualstudiogallery.msdn.microsoft.com/e682d542-7ef3-402c-b857-bbfba714f78d IMAGEWATCH.VSIX);

2. Install Imagewatch, double-click imagewatch.vsix to install;

3. Open a OPENCV project, set a breakpoint under Debug, and open the Image Watch window with view, other windows, image Watch to display the Cv::mat image.

The actions that Image watch can do include:

1. Enlarge and reduce the image;

2. Save the image to the specified directory;

3. Display image size, number of channels;

4. Drag and drop the image;

5. You can view the pixel values of the specified coordinates (in the order shown in memory);

6. Link Views: All images of the same size share a view;

7. Whether the pixel value is displayed in hexadecimal or decimal;

8. The actions that can be performed on the image in the Watch window include (Image watch includes locals and watch two windows):

(1), extract the specified channel Image: @band (img, number);

(2), the threshold of the specified image: @thresh (img, threshold);

(3), the image pixel value to take absolute operation: @abs (IMG);

(4), the image pixel value scaling operation: @scale (IMG, factor);

(5), through the 1/255 way scaling pixel value operation: @norm8 (IMG);

(6), horizontal flip along the y-axis: @fliph (IMG);

(7), flip vertically along the x-axis: @flipv (IMG);

(8), the image of the matrix transpose operation: @flipd (IMG);

(9), the image is clockwise 90, 180, 270 degrees operation: @rot90 (IMG), @rot180 (IMG), @rot270 (IMG);

(10), calculate the pixel difference of two images: @diff (img0, IMG1);

(11), Loading Image: @file (path), such as @file ("d:\1.jpg");

(12), the specified memory address content is displayed in the specified image format: @mem (address, type, channels, width, height, stride), such as @mem (0x00000000003d1050,uint8, 3, 256, 256, 768);

A more detailed description of image watch is available at: http://research.microsoft.com/en-us/um/redmond/groups/ivm/imagewatchhelp/imagewatchhelp.htm

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Use of the image watch plugin in VS2013

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.