1

I want to extend Image Watch with a *.natvis description for my own matrix class. The data in this matrix class is stored in column major format, in contrast to the row major order of OpenCV.

I were able to display my matrices like transposed with the following code:

<Item Name="[width]">m_Rows</Item>
<Item Name="[height]">m_Cols</Item>
<Item Name="[data]">m_pData</Item>
<Item Name="[stride]">m_Rows*sizeof($T1)</Item>

Is their a way to display column major matrices correctly?

Zhanglong Wu - MSFT
  • 1,652
  • 1
  • 7
  • 8
Knipser
  • 347
  • 1
  • 13

1 Answers1

0

Have you tried changing the stride to simply <Item Name="[stride]">sizeof($T1)</Item> ?

Michael Konečný
  • 1,696
  • 1
  • 16
  • 20