shazzy99 0 Junior Poster in Training

Hi all,

I'm trying to display an image in C# using openCV library. I've installed the openCV 1.0 and have downloaded the opencv wrapper dll file for the c#.

I've tried the following code but it isn't showing any image. just an empty window, can anyone help

thanks

IplImage image1 = cvlib.CvLoadImage("image.jpg", cvlib.CV_LOAD_IMAGE_UNCHANGED);
            cvlib.CvNamedWindow("show Image", cvlib.CV_WINDOW_AUTOSIZE);
            cvlib.CvShowImage("image window", ref image1);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.