Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Optical Flow Farneback - doubt in tutorial

So i was trying to understand the python code for optical flow using Farneback method. But I had a doubt about expressions like this- 1.hsv[...,1] = 255 2.hsv[...,0] = ang*180/np.pi/2

I do not understand what the 3 dots in the square brackets represent. This is the first time I'm seeing such notation in python.

I need to understand this so that I can write the equivalent program in C++ as I can't find any decent tutorial or documentation on Farnebeck method in C++.

Link to tutorial(2nd program)- http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_video/py_lucas_kanade/py_lucas_kanade.html#lucas-kanade

Optical Flow Farneback - doubt in tutorial

So i was trying to understand the python code for optical flow using Farneback method. But I had a doubt about expressions like this- this-

1.hsv[...,1] = 255 255

2.hsv[...,0] = ang*180/np.pi/2

I do not understand what the 3 dots in the square brackets represent. This is the first time I'm seeing such notation in python.

I need to understand this so that I can write the equivalent program in C++ as I can't find any decent tutorial or documentation on Farnebeck method in C++.

Link to tutorial(2nd program)- http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_video/py_lucas_kanade/py_lucas_kanade.html#lucas-kanade