wangzhizhou / Fish-eye-Image-Correction-Code

This is my paper "Correction of single circular fisheye image" related program code
249 stars 103 forks source link

question about latitudeCorrection3 function #4

Open why-scholar opened 7 years ago

why-scholar commented 7 years ago

hello, in the file corrector.cpp, function of latitudeCorrection3() utilizes getPhi() to estimate the latitude and longitude, which later used for estimate corresponding shpere coordinates. Though I understand the forward projection from shpere to cylinder coordinates based on the provided thesis, however I am confused about backward projection from cylinder to shpere coordinates. Could you please provide some corresponding references? I think it is will very helpful for me to understand the code snippets.

wangzhizhou commented 7 years ago

In my opinion, the image is produced in cylinder, so every location on the cylinder(specified size) should have a corresponding location on the sphere, and if we use forward projection to produce the cylinder, there will be some corresponding relation be losed, because I don't want to use interpolation pixel value. So,I specified size the cylinder, for every location on the cylinder, I use the backward projection to get the corresponding pixed on the original image. though the backward projection may lose some corresponding relations, but they are not scatter, but continue area.

why-scholar commented 7 years ago

Hi, Thanks for your reply. According to the forward projection from sphere to cylinder in your paper, I could not get the the backward projection formula. This makes me confused for your code. Could you please provide me with the backward projection formula? I think it will be very useful for me to understand your code.

wangzhizhou commented 5 years ago

Maybe I should refine this project to make it more readable. At that time I create this project, my skill in programming is basic, so, if someone can work with me, it will be better. I plan to refine this project during spare time