/usr/share/radiance/fisheye.cal is in radiance-materials 4R1+20120125-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | {
Calculate coordinates for a 180 degree fisheye lens.
Assume view direction is (0,1,0), view up (0,0,1), (1,0,0) right.
4/30/90
}
fish_Rxz = sqrt(Dx*Dx + Dz*Dz);
fish_Ry = Acos(Dy) / PI;
fish_u = .5 + Dx/fish_Rxz * fish_Ry;
fish_v = .5 + Dz/fish_Rxz * fish_Ry;
|