◄home    

OpticFlow - How to use

Javier Sánchez Pérez

Computer Science Department

University of Las Palmas de Gran Canaria


This program recovers the optical flow from two consecutive images.

 

The inputs to the program are:

    - two images (taken from left to right in the example: Test2_1b.img, Test2_1b.img)

    - and two parameters (alpha and the isotropic fraction) which are used by our method.

 

The outputs are:

    - The U component (displacement of pixels in x direction from left image to right image:     

        UMatrix.dat)

    - The V component (displacement of pixels in y direction from left image to right image: 

        VMatrix.dat)

 

To execute the program write "OpticFlow" in the command line. In the "File" menu you have the possibility to create an image, load an image, save it, convert into another format,...

 
How to convert files into XMW format

XMW works with four image formats. The first two formats (IMG and RIM) are XMW own formats (IMG-->integers, RIM-->floats). The other formats are TGA and RGB. If you want to utilize your own images, you will have to convert them into TGA or RGB (I think TGA is better). For this you have to use another program. XMWStereoZoom program only works with IMG format. The first think you have to do is to convert into this format. This can be done from the Convert submenu in the "File" menu. There you will find the four options.

Select the IMG option an press OK.

How to select an image in XMW

To select an image, you have to click on the image with the middle mouse button. Once you have setected it, its name appears on the XMW window. As you select other images, their names appear below. You may unselect an image by clicking again with the middle button on the image.

How to use OpticFlow

First, before carrying out the program, you have to select two images (see how to select an image: in the example, you may select first Test2_1b.img and then Test2_2b.img). To execute our Program, you have to select the "Form Recog." menu. There you will  find:

    -Optic Flow

When you select this there will appear a parameter window:

     - The first two parameters are used by our method. 

     - The last two are the outputs (U and V matrices as explained before) which are created at the end of the process as ASCII files (take a look at the section File Formats for a better explanation).

Then press OK.

 


 ◄home

  last update 24/12/2004