Image watch 自定义图像
除了OpenCV的Mat,还可以显示自定义图像格式,重要参考文档:
(34条消息) image Watch高级应用:自定义图像格式_未完城的博客-CSDN博客
显示TSV图像格式:C:\Users\alg2\Documents\Visual Studio 2019\Visualizers\ImageWatchTSV.natvis
<?xml version="1.0" encoding="utf-8"?> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" MenuName="Add to Image Watch"/> <Type Name="tsv::CBImage"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" /> </Type> <Type Name="tsv::CBImage"> <Expand> <Synthetic Name="[type]"> <DisplayString>UINT8</DisplayString> </Synthetic> <Item Name="[channels]">bytesPerPixel</Item> <Item Name="[width]">width</Item> <Item Name="[height]">height</Item> <Item Name="[data]">pixels</Item> <Item Name="[stride]">width*bytesPerPixel</Item> </Expand> </Type> <Type Name="tsv::CSImage"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" /> </Type> <Type Name="tsv::CSImage"> <Expand> <Synthetic Name="[type]"> <DisplayString>UINT16</DisplayString> </Synthetic> <Item Name="[channels]">1</Item> <Item Name="[width]">width</Item> <Item Name="[height]">height</Item> <Item Name="[data]">pixels</Item> <Item Name="[stride]">width*sizeof(short)</Item> </Expand> </Type> <Type Name="tsv::CIImage"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" /> </Type> <Type Name="tsv::CIImage"> <Expand> <Synthetic Name="[type]"> <DisplayString>INT32</DisplayString> </Synthetic> <Item Name="[channels]">1</Item> <Item Name="[width]">width</Item> <Item Name="[height]">height</Item> <Item Name="[data]">pixels</Item> <Item Name="[stride]">width*sizeof(int)</Item> </Expand> </Type> <Type Name="tsv::CFMatrix"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" /> </Type> <Type Name="tsv::CFMatrix"> <Expand> <Synthetic Name="[type]"> <DisplayString>FLOAT32</DisplayString> </Synthetic> <Item Name="[channels]">1</Item> <Item Name="[width]">columns</Item> <Item Name="[height]">rows</Item> <Item Name="[data]">data</Item> <Item Name="[stride]">columns*sizeof(float)</Item> </Expand> </Type> <Type Name="tsv::CDMatrix"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" /> </Type> <Type Name="tsv::CDMatrix"> <Expand> <Synthetic Name="[type]"> <DisplayString>FLOAT64</DisplayString> </Synthetic> <Item Name="[channels]">1</Item> <Item Name="[width]">columns</Item> <Item Name="[height]">rows</Item> <Item Name="[data]">data</Item> <Item Name="[stride]">columns*sizeof(double)</Item> </Expand> </Type> </AutoVisualizer>

浙公网安备 33010602011771号