Ask Your Question

Revision history [back]

Basically, the standard pixtureboxes do not support the Mat datatype and thus do not let you visualize the images directly. There are two things you could do:

  1. Save the image locally in a temporary folder then read it into your pixtureBox.
  2. Create a bitmap, loop over every pixel value in the matrix element using the at operator and then assigning that value to the same location in your bitmap object. And then visualizing this.

If you do not want a workaround, call a namedWindow when you want to visualize everything, and perform an imshow() function on that namedWindow.