Sunday, July 20th 2008, 2:38am UTC+1

You are not logged in.

  • Login
  • Register

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.

ton_malaka

Beginner

Posts: 15

Location: Bali-Indonesia

Occupation: College Student

1

Wednesday, April 30th 2008, 12:37pm

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::..
  • Go to the top of the page

alokraj

Beginner

Posts: 12

Location: Bangalore

2

Tuesday, May 6th 2008, 7:06am

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
  • Go to the top of the page

ton_malaka

Beginner

Posts: 15

Location: Bali-Indonesia

Occupation: College Student

3

Tuesday, May 6th 2008, 2:59pm

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::..
  • Go to the top of the page

Rate this thread