jpg does not show
Hello
The following code does not work with this image : http://dl.free.fr/vahKqrTqs while it works successfully with the cow image from this page : http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/laplace_operator/laplace_operator.html?highlight=laplacian
Any idea ?
cv::Mat img = cv::imread("R0010054.JPG");
if(img.empty())
{
return -1;
}
cv::imshow("image", img);
Thanks Julien
Did you write the correct name (case sensitive)? And did you add a cv::waitKey(); after your cv::imshow() ?
Hum, sorry, I did not put the whole code, it was obvious to me that there was a waitkey at the end. Sorry for that... In fact, a window appears but it does not contain something that looks like the original image. See "capture" here : http://dl.free.fr/nAe3YDU0W
btw: I don't like dl.free.fr it has many javascript-foo - I won't load that...
ok, I will find something else. Stay tuned !
screen capture : http://img9.imageshack.us/img9/3919/photouoc.jpg orginal image : http://img842.imageshack.us/img842/8052/r0010052x.jpg