ppwwyyxx / OpenPano

Automatic Panorama Stitching From Scratch
MIT License
1.86k stars 553 forks source link

[Question] explanation on mathematics behind update_proj_range() function, homo2proj() and Proj2Homo(). #65

Closed MehulAjax21 closed 6 years ago

MehulAjax21 commented 6 years ago

Hi Yuxin,

I understood most of the code base now. I just wanted brief explanation for the following functions/methods:-

update_proj_range(): How was this calculated? Is it finding the extreme points after applying transforms? homo2proj(): I think this is the forward mapping to the projection domain Proj2Homo(): I think it looks like inverse mapping from destination to source.

Am I correct here? A detailed explanation of these things will be very helpful.

Regards, Mehul Saxena

ppwwyyxx commented 6 years ago

update_proj_range(): How was this calculated? Is it finding the extreme points after applying transforms?

Yes. It was calculated by transforming all points on the edges of the source image. This is enough to cover the entire source image.

homo2proj(): I think this is the forward mapping to the projection domain Proj2Homo(): I think it looks like inverse mapping from destination to source.

Yes.

MehulAjax21 commented 6 years ago

Thanks Yuxin.