Get extrinsic camera parameters from pose estimation
Show older comments
Hi,
I have a camera mounted on the roof of a vehicle and try to transform between the image and the world coordinate system. I made a calbration via cameraCalibrator and have the intrinsics, which do look good. Afterwards i tried to get the camera pose via estimateMonoCameraParameters, which gave me following values:
Estimated camera pose:
pitch: -0.6738
yaw: 3.2368
roll: 0.9376
height: 1.7581
which looks totally fine and plausible. My question is now, how can I get the camera matrices Translation, R respectively A from the estimated pitch, yaw, roll angle and height which i got from estimateMonoCameraParameters? If i use
monoCamera(cameraParams.Intrinsics, Camera.height, 'Yaw', Camera.yaw, 'Pitch', Camera.pitch, 'Roll', Camera.roll)
i dont get any more information. Unfortunately the camera position was moved, but before that i had a set of corresponding image and worldpoints and used
Camera.Extrinsics = estimateExtrinsics(imagePoints, worldPoints, Camera.Model.Intrinsics)
to get the extrinsics. Since i do not have any image and worldpoints for the new position, i can not use the estimateExtrinsics function for the new positioned camera. Additionally I was trying to compute the rotation and translation matrices by myself using
tform = rigidtform3d(angles,translation)
and use this as an extrinsics object, but i think I'm missing some additional transformation from the camera to the vehicle coordinate system and I'm not quite sure about the convention of the euler angles.
Is there maybe an easier way to get these camera matrices?
Any help would be appreciated,
Thanks a lot, Jens
Accepted Answer
More Answers (0)
Categories
Find more on Camera Sensor Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!