Ask Your Question

Revision history [back]

First of all, if dynamic linking doesn't seem to work try to do some manual debugging.

Step 1: add static path to your image : img = imread("D:/lena.jpg", 1); Make sure that the image is actually there and the extension is actually .jpg and not .jpeg

Step 2: place a debug stop after the imread function and see if actually something is inside the mat object.

Then report back with the results!