Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
How to Display image on pixmapLabel use openCV library
Hello, I want to display image from file location on "pixmapLabel" use openCV library. Here is my code, but I have some error message when I compile it. The error message just like this :
"undefined references to call cvLoadImage......bla...bla...bla...."
I have included the openCV library path. Can you help me to fix the problem?? I will appreciate your help.
//----------------------------------------------------------------------
#include "/usr/local/include/opencv/cv.h"
#include "/usr/local/include/opencv/highgui.h"
void FormMain::loadOpenCV()
{
IplImage* img = 0;
img=cvLoadImage("/home/ton_malaka/snapshot1.png");
pixmapLabelOut->setPixmap(img);
}
//---------------------------------------------------------------------------
..::Keep'n Free Minded::..
RE: How to Display image on pixmapLabel use openCV library
Hi
I am just trying to answer donnow whether its correct or False.
In QT we can either upload an image or a QRC file
Just try to do this using QT designer and see the generated code, it ll help you
I guess.
Sorry, if it doesnt clear your doubt!
Regards
Alok
Thanks!
Alok
RE: How to Display image on pixmapLabel use openCV library
Hi Alokraj,
Thank you for your reply. Actually in Qt we can upload and display image without openCV library, but I need openCV to process edge detection using Canny Algorithm.
Regards,
ton_malaka
..::Keep'n Free Minded::..