LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OpenCV commands (https://www.linuxquestions.org/questions/linux-software-2/opencv-commands-705228/)

cp_almora09 02-16-2009 10:00 PM

OpenCV commands
 
can anybody send me the commands of openCV to check whether it is working properly or not.
again thanks in advance.

alan_ri 02-17-2009 03:51 AM

How to load and display image;
Code:

/* 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.


All times are GMT -5. The time now is 06:36 PM.