opencvsharp icon indicating copy to clipboard operation
opencvsharp copied to clipboard

Unable to perform Dual TV-L1 calculation

Open wouterpleizier opened this issue 11 years ago • 4 comments

I'm trying to calculate the optical flow between two images using the Dual TV-L1 algorithm. I am able to initialize the algorithm by calling Cv2.CreateOptFlow_DualTVL1(), but I can't seem to perform the calculation. The returned object's Calc method is protected and abstract, and it's only implemented in DenseOpticalFlowImpl, which is an internal sealed class.

Is the wrapper for this algorithm incomplete, or have I overlooked something?

wouterpleizier avatar May 29 '15 08:05 wouterpleizier

I see that 64ff4838bb736dc2a3c494015f8e2e45e2dde875 addresses this issue. However, it looks like the most recent build does not include those changes. Is this intentional?

Thank you for your efforts, by the way. OpenCvSharp is very pleasant to work with :smiley:

wouterpleizier avatar Jun 11 '15 13:06 wouterpleizier

The previous DenseOpticalFlowExt.CreateDualTVL1 in OpenCvSharp calls createOptFlow_Farneback . I fixed this https://github.com/shimat/opencvsharp/commit/f5678cf21b2e74c7af91a316b938293bc647615c Thank you :+1:

It looks like OpenCvSharp.CPlusPlus.dll in the latest release already contains a public Calc method.

shimat avatar Jun 12 '15 04:06 shimat

It looks like OpenCvSharp.CPlusPlus.dll in the latest release already contains a public Calc method.

Ah, I was looking at DenseOpticalFlow instead of DenseOpticalFlowExt. The latter indeed has a public Calc method. In that case, what is the purpose of DenseOpticalFlow? The difference between these classes is not clear to me.

wouterpleizier avatar Jun 12 '15 06:06 wouterpleizier

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 24 '20 19:07 stale[bot]