diff --git a/tools/plugin/ImageWatchNCNN.natvis b/tools/plugin/ImageWatchNCNN.natvis new file mode 100644 index 000000000..c1fe08dbe --- /dev/null +++ b/tools/plugin/ImageWatchNCNN.natvis @@ -0,0 +1,37 @@ + + + + + + + + + + + + {{FLOAT32, {c} x {w} x {h}}} + {{FLOAT16, {c} x {w} x {h}}} + {{INT8, {c} x {w} x {h}}} + + + FLOAT32 + + + FLOAT16 + + + INT8 + + c + w + h + c + ((float*)(data)) + data + data + w + w*2 + w*4 + + + diff --git a/tools/plugin/README.md b/tools/plugin/README.md new file mode 100644 index 000000000..5016c7b08 --- /dev/null +++ b/tools/plugin/README.md @@ -0,0 +1,9 @@ + +## NCNN Image Watch Plugin for Visual Studio +Image Watch plugin is a good tool for better understanding insight of images. This tiny work offer a ".natvis" file which could add ncnn::Mat class support for Image Watch, and users could debug ncnn::Mat image just like debuging cv::Mat via Image Watch. + +To use this plugin, please move this "ImageWatchNCNN.natvis" file to "C:/user/${your user name}/Documents/Visual Studio ${VS_Version}/Visualizers" folder. If not exist this folder, create it(such as: "C:\Users\nihui\Documents\Visual Studio 2017\Visualizers"). + +![](https://github.com/Tencent/ncnn/blob/master/tools/plugin/snapshot.png) + +See [Image Watch Help](https://imagewatch.azurewebsites.net/ImageWatchHelp/ImageWatchHelp.htm) page for more advanced using tips of Image Watch(For example, get single channel from channels, such as getting confidence heatmap from forward result list {confidence, x1, y1, x2, y2}). \ No newline at end of file diff --git a/tools/plugin/snapshot.png b/tools/plugin/snapshot.png new file mode 100644 index 000000000..1b6d8c9bd Binary files /dev/null and b/tools/plugin/snapshot.png differ