conversion of pixel coordinates from a vision sensor to real coordinates

11 ビュー (過去 30 日間)
Ahmed Abdelhamed
Ahmed Abdelhamed 2023 年 3 月 2 日
回答済み: Remo Pillat 2023 年 3 月 6 日
im currently using a vision sensor attached to my end effector for detection and position estimation, i have managed to perform the circular detection needed as follows
and the pixel coordinates are also displayed. however, im having troubles convert them to real world coordinates assuming the z axis is known, how can i obtain the other 2D coordinates

回答 (1 件)

Remo Pillat
Remo Pillat 2023 年 3 月 6 日
If you know the Z depth of the detected image points, you can use the Computer Vision Toolbox function pcfromdepth to get 3D coordinates of the world points (use the ImagePoints name-value pair; you might have to construct your own simple depth image from the few detected points you have). The 3D coordinates will be relative to the center of the camera.
Note that you need the cameraIntrinsics of the camera you are using. You can use the Camera Calibration tools to get that information.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by