Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot display .bmp image captured by GigE camera in Visual Studio

Hello everyone!

I succesfully configured GigE camera Manta, OpenCV and Visual Studio, soo I am able to capture the image and save it to disk.

Image that is saved to disk is ''image.bmp'' , other informations about the image are:

size: 2048 x 1088, ,bith depth : 8 ,element Type: bmp

If I want now to display this image using code:

Mat img = cv::imread("image.bmp");
cv::namedWindow("img", CV_WINDOW_AUTOSIZE);
cv::imshow("img", img);

I only get black window with no image on!! What I am doing wrong? Should I use other parameters when reading image from disk? Is there possible that it has to do something with image depth?