Incorrect formula in calcOpticalFlowFarneback documentatoin (OpenCV 2.x C++ API) (Bug #1172)
Description
In calcOpticalFlowFarneback documentation (OpenCV 2.x C++ API) there's incorrect formula relating prevImg, nextImg and calculated optical flow.
Formula is: prevImg(x,y) = nextImg( flow(x,y)r0, flow(x,y)r1 )
But flow array seems to be a relative flow (we must add previous coordiante to get absolute position). Additionally first image coordinate is y not x.
Correct formula is:
prevImg(y,x) = nextImg( y + flow(y,x)r0, x + flow(y,x)r1 )
Associated revisions
Merge pull request #1172 from StevenPuttemans:bugfix_3166_24
History
Updated by Vadim Pisarevsky over 13 years ago
Thanks, the formulae has been corrected in 2.3 branch and in the trunk. Updated PDFs are included into 2.3 distribution.
- Status changed from Open to Done
- (deleted custom field) set to fixed