L1-optimal-paths-Stabilization icon indicating copy to clipboard operation
L1-optimal-paths-Stabilization copied to clipboard

Question for get stable frame

Open Lwy-1998 opened this issue 2 years ago • 2 comments

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?

Lwy-1998 avatar Nov 16 '22 11:11 Lwy-1998

Hi,

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

ishank-juneja avatar Nov 16 '22 12:11 ishank-juneja

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

Lwy-1998 avatar Nov 17 '22 01:11 Lwy-1998