C:/Yann Dumortier/LKCudaLib/GPULK/LKCuda.h File Reference

pyramidal implementation of Lucas & Kanade optical flow with CUDA. More...

#include <cuda.h>
#include <cuda_runtime.h>
#include <cutil.h>

Functions

void LKCudaInit (unsigned nLevels, unsigned width, unsigned height)
 initialization function. function that allocates all cuda arrays needed, according to the level number and the image resolution.
void LKCudaRun (cudaArray *image1, cudaArray *image2, cudaArray *vX, cudaArray *vY, unsigned nIter, unsigned win, float alpha, bool cc)
 Lucas & Kanade optical flow computation.
void LKCudaFree ()
 memory free.


Detailed Description

pyramidal implementation of Lucas & Kanade optical flow with CUDA.

Version:
1.1
Date:
09-2008
Author:
Julien MARZAT (INRIA/ENSEM)

Yann DUMORTIER (INRIA/ENSMP)

<firstname>.<lastname>@gmail.com

Todo:
comment and clean source code before openning it.
Todo:
multiple GPUs version.

Function Documentation

void LKCudaInit ( unsigned  nLevels,
unsigned  width,
unsigned  height 
)

initialization function. function that allocates all cuda arrays needed, according to the level number and the image resolution.

Parameters:
nLevels number of level (pyramid size), at least equals to 1.
width width of input images.
height height of input images.

void LKCudaRun ( cudaArray *  image1,
cudaArray *  image2,
cudaArray *  vX,
cudaArray *  vY,
unsigned  nIter,
unsigned  win,
float  alpha,
bool  cc 
)

Lucas & Kanade optical flow computation.

Parameters:
image1 pointer to the first image stored on the GPU.
image2 pointer to the second image stored on the GPU.
vX pointer to the x-velocities on CUDA array.
vY pointer to the y-velocities on CUDA array.
nIter iteration number.
win patch size.
alpha regularization parameter, typically 0.00001f.
cc if different to 0 vX and vY are used to init the first pyramid level.


Generated on Tue Sep 9 17:08:04 2008 for LKCuda by  doxygen 1.5.6