[Twoc] = GetCameraPosFromSphereSetup(vPi,dr, nN, nM, dThetaL, dThetaR, dPhiT, dPhiD)
Description: Computes the camera positon Cpos [X,Y,Z] from sphere camera setup data (See figure 1)
Out parameters:
- Twoc = Camera vector positions respect world arxis [X Y Z]. Row vectors. Camera one is top-left, second top left+1, etc… (rear view)
In parameters:
- vPi = Point of interest. It’s the central point that all cameras surround. Vector [X Y Z]
- dr = Distance from Pi to cameras. Radius of the sphere
- nN = Number of cameras per row
- nM = Numbers of cameras per col
- dThetaL = Angle of cameras (left X-Y axis)
- dThetaR = Angle of cameras (right X-Y axis)
- dPhiT = Angle of cameras (top X-Z)
- dPhiD = Angle of cameras (down X-Z)