Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-16-2009, 11:00 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
OpenCV commands

can anybody send me the commands of openCV to check whether it is working properly or not.
again thanks in advance.
Old 02-17-2009, 04:51 AM   #2
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
How to load and display image;
/* usage: prog <image_name> */
#include "cv.h"
#include "highgui.h"

int main( int argc, char** argv )
    IplImage* img;
    if( argc == 2 && (img = cvLoadImage( argv[1], 1)) != 0 )
        cvNamedWindow( "Image view", 1 );
        cvShowImage( "Image view", img );
        cvWaitKey(0); // very important, contains event processing loop inside
        cvDestroyWindow( "Image view" );
        cvReleaseImage( &img );
        return 0;
    return -1;
This is just one of the examples that you can find here.
Lots of other things OpenCV related are there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me for OpenCV application qinglau Linux - Software 0 03-09-2006 12:25 PM
installing ffmpeg for opencv josemalo Linux - Software 1 02-27-2006 11:34 PM
about Histogram Function of OpenCV? caicaicherry Programming 0 09-15-2005 06:34 AM
opencv problems in fedora 3 sinc2 Linux - Software 0 11-16-2004 07:44 PM
OpenCV fistroman Programming 0 07-28-2003 10:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration