Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Designer » How to Display image on pixmapLabel use openCV library » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page How to Display image on pixmapLabel use openCV library
Author
Post « Previous Thread | Next Thread »
ton_malaka ton_malaka is a male
Assistant


Registration Date: 28.03.2008
Posts: 7
Location: Bali-Indonesia

Level: 7 [?]
Experience: 346
Next Level: 443

97 points of experience needed for next level

How to Display image on pixmapLabel use openCV library Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 ton_malaka is offline Send an Email to ton_malaka Search for Posts by ton_malaka Add ton_malaka to your Buddy List YIM Account Name of ton_malaka: funk_ynot_24
alokraj
Coder


Registration Date: 05.05.2008
Posts: 12
Location: Bangalore

Level: 5 [?]
Experience: 135
Next Level: 173

38 points of experience needed for next level

RE: How to Display image on pixmapLabel use openCV library Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 alokraj is offline Send an Email to alokraj Search for Posts by alokraj Add alokraj to your Buddy List
ton_malaka ton_malaka is a male
Assistant


Registration Date: 28.03.2008
Posts: 7
Location: Bali-Indonesia

Level: 7 [?]
Experience: 346
Next Level: 443

97 points of experience needed for next level

Thread Starter Thread Started by ton_malaka
RE: How to Display image on pixmapLabel use openCV library Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 ton_malaka is offline Send an Email to ton_malaka Search for Posts by ton_malaka Add ton_malaka to your Buddy List YIM Account Name of ton_malaka: funk_ynot_24
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Designer » How to Display image on pixmapLabel use openCV library

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

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich