Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial time derivative in Horn Schunck method #5

Open
stefanieberger opened this issue Mar 9, 2020 · 2 comments
Open

Partial time derivative in Horn Schunck method #5

stefanieberger opened this issue Mar 9, 2020 · 2 comments

Comments

@stefanieberger
Copy link

stefanieberger commented Mar 9, 2020

Hi,

I have a question regarding the HornSchunck method and the partial time derivative:

ft = im2 - im1

ft = filter2(im1, kernelT) + filter2(im2, -kernelT)

with kernelT = np.ones((2, 2))*.25

If my understanding is correct, you substract the values from the second image from the ones in the first image.
In the Horn und Schunck paper I understood that you are supposed to do it the other way around.

Could you maybe tell me, if I understood it wrong or what the reasoning is to put this the other way around?

I also tried implementing the method myself, and exactly this issue seems to be my problem. If I implemented this with the minus sign in the im2 kernel, my directions are correct. I just donot understand why that is the case.

Thank you and greetings!

@scivision
Copy link
Owner

This may be a mistake on my part, I will have to look into it. Thanks!

@scivision
Copy link
Owner

scivision commented Oct 18, 2021

I compared results with a couple different image pairs between 3 implementations, using matlab/RunHornSchunck.m.

This includes Matlab Computer Vision toolbox.

The plots appear similar qualitatively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants