Ask Your Question

appollosputnik's profile - activity

2013-11-13 05:15:38 -0600 asked a question JPEG picture not shown up- with Qt

I am using opencv with Qt and in IDE QT creator. When I try to show a jpeg image it doesn't show but when I try a PNG image it shows up.

Please help me what id goind wrong. I need to show jpeg image. please check the code snippet.

imageWidget = new CVImageWidget();
setWidget(imageWidget);
// Load an image
cv::Mat image = cv::imread("C:\\Users\\sofp\\Documents\\Sujan\\Project\\Source\\images\\frontview.jpeg", true);
imageWidget->showImage(image);