Ads 468x60px

Thursday, April 26, 2012

OpenSURF Computer Vision Library

Hi all

       Recently i get to know about a new lib written using OpenCV library for feature extraction .
The name of this library is OpenSURF .OpenSURF is a clean ,unintrusive SURF feature extraction library written in C++ with OpenCV 

Check this links for more details

How to acess Enviornmental Variable in CMAKE


     This is a simple tip to show how we can acess the Enviornmental Variable in CMake .

For acessing ENV_variable you have to use 

Syntax: $ENV{variable}

How to acess Enviornmental Variable in Linux using cpp

Hi all
        Enviornmental variables can acess through c or cpp code in Linux .I am giving  function which can  retrieve Enviornmental Variables

getenv() :=Used to acess the Enviornmental Varible

Syntax :char* getenv(const char *name) ,where name is the Required env. variable 

Example code :

/* getenv example: getting path */
#include <stdio.h>
#include <stdlib.h>

int main ()
  char * pPath;
  pPath = getenv ("PATH");
  if (pPath!=NULL)
    printf ("The current path is: %s",pPath);
  return 0;

Saturday, April 14, 2012

OpenCV and Mouse

Hi all 

      A simple program to show the  interaction with mouse using OpenCV


#include "cv.h"
#include "highgui.h"

#include <iostream>

#include <stdio.h>
#include <stdlib.h>

IplImage* capture;

CvPoint pt1;
CvFont font;
void on_mouse(int event,int x ,int y,int flags,void* param)


int main(int argc,
char** argv


cvInitFont(&font, CV_FONT_HERSHEY_SIMPLEX, 1.0, 1.0, 0, 1, CV_AA);

    capture = cvLoadImage(argv[1], 1);
    cvNamedWindow( "result", 1 );
    cvShowImage( "result",capture );
    //Mouse call back funtion


    cvReleaseImage( &capture );



Wednesday, April 11, 2012

Doxygen on Linux

Hi all 

Doxygen is a documentation system for C++ ,C,Java ,Objective C,Python ,IDL ,Fortran ,VHDL ,PHP,C#

We can generate html documentation ,Latex document ,man pages ,xml using Doxygen

In Linux there is a GUI for doxygen called doxygen-gui or doxywizard .

Procedure for generating document

  • Keep the source code in a folder ,it can be a header file + cpp code or cpp code alone .
  • Take the GUI
You can type doxywizard in terminal to launch GUI .Browse the source code folder and follow the instruction as per the screenshots

1)Browse the path where source code is placed ,path for output html files

Tuesday, April 10, 2012

Setting OpenCV 2.3.1 on VS2008 and 2010

Hi all

       This is a simple tutorial for setting Opencv 2.3.1 library on Windows 7 .

Procedure :
  • Download Visual c++  2008 Express Edition through web-install 

  • Install Opencv 2.3.1 into C:\ProgramFiles
  • OpenVisual c++ and create an empty project .

  • Add a cpp file for Coding :
  • Right click on Sourcefile->Add->Newitem .Select .cpp and give a name to cpp file

  • Setup Include Dir and Link folders as per screenshots