Skip to content

LaboratoireMecaniqueLille/GCpu_OpticalFlow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCpu_OpticalFlow

This code is an accelerated open-source software for 2D optical flow estimation and mechanical strain.
The code is based on D. Sun method with some improvements.

Requirements

There are two versions of the software: a CPU and a GPU version.
To use the code, you will need Python 3 (3.6 or higher) with the following modules:
For the CPU version:

For the CPU version:
For the GPU version you will first need an NVIDIA CUDA GPU with the Compute Capability 3.0 or larger.
Beside the previous packages some additional ones with some and APIs will be needed to run the code on GPU

Documentation

Documentation

Test

Some image sequences were given in the folder Images in order to test the code.
Inputs:
The software will need at least 3 inputs:

  • The image sequence path
  • The name of the first image of the sequence
  • The name of the second image of the sequence

The other parameters were set by default, but you can modify them also using the keywords as how it was described in the documentation.
Outputs:
Two npy files will be generated in the end of running:

  • u_cucim.npy the horizontal flow field
  • v_cucim.npy the vertical flow field

To calculate the strain field, you can use the function gradient of numpy or( of cupy if you are using the graphic card).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%