|
 |
How to Display image on pixmapLabel use openCV library |
ton_malaka
Assistant
Registration Date: 28.03.2008
Posts: 7
Location: Bali-Indonesia
Level: 7 [?]
Experience: 346
Next Level: 443
 |
|
| 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::..
|
|
30.04.2008 13:37 |
|
|
alokraj
Coder

Registration Date: 05.05.2008
Posts: 12
Location: Bangalore
Level: 5 [?]
Experience: 135
Next Level: 173
 |
|
| 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
|
|
06.05.2008 08:06 |
|
|
ton_malaka
Assistant
Registration Date: 28.03.2008
Posts: 7
Location: Bali-Indonesia
Level: 7 [?]
Experience: 346
Next Level: 443
Thread Starter
 |
|
| 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::..
|
|
06.05.2008 15:59 |
|
|
|
|
|
 |
views today: 10.021 | views yesterday: 17.520 | total views: 10.243.390
Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -
SMS Gewinnspiel -
Hotels -
Stadtpläne -
Branchenbuch & Stadtplan
|