Showing posts with label opencv. Show all posts
Showing posts with label opencv. Show all posts

Tuesday, 14 May 2013

Running STIP feature detection on Ubuntu 12.04

Ivan Laptev's code on Space-time interest points (STIP) detection can be downloaded here. To run it on Ubuntu 12.04, there are several dependencies you need to install.

First you need to install OpenCV. As the newer version of OpenCV's library names are changed and the code is compiled with the older version of the library, you need to make symbolic links that point from the old library names to the new library names. The stackoverflow post lists all the symbolic links you need to make.

In order to make video reading work with OpenCV, you need to compile OpenCV with libgtk2.0-dev and pkg-config installed. Also you need libgstreamer0.10-dev and libgstreamer0.10-vaapi-dev. The libgstreamer0.10-vaapi-dev provides the headers such as gst/video/video.h which is required in compiling OpenCV.

Thursday, 7 July 2011

OpenCV naming convensions


  • Matrix data types:
    CV_[bit_depth](S|U|F)C[number_of_channels]
    S = Signed integer
    U = Unsigned integer
    F = Float 
    
    E.g.: CV_8UC1 means an 8-bit unsigned single-channel matrix,
            CV_32FC2 means a 32-bit float matrix with two channels.

  • Image data types:
    IPL_DEPTH_[bit_depth](S|U|F)
    E.g.: IPL_DEPTH_8U means an 8-bit unsigned image.
            IPL_DEPTH_32F means a 32-bit float image.
Note that in the image data types, the depth and number of channels are specified separately.