flowty icon indicating copy to clipboard operation
flowty copied to clipboard

Output format: HSV video

Open willprice opened this issue 6 years ago • 1 comments

willprice avatar Apr 17 '19 21:04 willprice

It appears that the colouring strategy used in Middlebury, Flying Chairs and MPI Sintel all use the same strategy, and it's actually not HSV. The approach was originally proposed as part of the Middlebury dataset based on ideas from http://www.quadibloc.com/other/colint.htm

This is an HSV circle image

This is the colouring proposed: image

Note how in the Middlebury strategy the colour lightness decreases and saturation increases as the flow magnitude increases unlike the HSV approach.

The original code to generate this colouring was provided with the Middlebury dataset:

  • http://vision.middlebury.edu/flow/code/flow-code.zip

Deqing Sun also ported it to Matlab

  • http://vision.middlebury.edu/flow/code/flow-code-matlab.zip

A few people have ported it to Python:

  • https://github.com/tomrunia/OpticalFlow_Visualization/blob/master/flow_vis.py

More references:

  • https://github.com/davidstutz/flow-io-opencv/blob/master/lib/colorcode.cpp

willprice avatar May 24 '19 23:05 willprice