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

Question for get stable frame #7

Open
Lwy-1998 opened this issue Nov 16, 2022 · 2 comments
Open

Question for get stable frame #7

Lwy-1998 opened this issue Nov 16, 2022 · 2 comments

Comments

@Lwy-1998
Copy link

Hello ,thans for your implementation!

Your code have many comments on it, which is helpful when I read it. But I still have trouble understanding "final matrix" here
function write_ourput
Here we get the final matrix by multiply scale, shift_to_center and shitft_back. I don't understand why we need to shift the frame.
I tried to remove the shift_to_center and shit_back matrix, and the final_matrix is scale @ inv(B). The result video end up showing some black border and losing the content, so these matrix are very important for stabilization.

what puzzle me most is , the shift_matrix ,to my intuition,is move all pixels by shape[0] / 2.0 in both x and y directions. similiar to scale_back, which is negtive shape[0]/2.0 so when we multiplt a point(0,0) by these two matrix, the point will go back to (0,0).

I know I was wrong, could you explained to me?

@ishank-juneja
Copy link
Owner

Hi,

Am busy with something at the moment and can only get back late this week/the weekend

@Lwy-1998
Copy link
Author

Hi,

Am busy with something at the moment and can only get back late this week/the weekend

Don't mind, I am glad you reply

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