필터 지우기
필터 지우기

Converting 2D Image coordinate to 3D World coordinate

조회 수: 16 (최근 30일)
Abhishek Tiwari
Abhishek Tiwari 2023년 4월 5일
답변: Amit Dhakite 2023년 4월 10일
I have an image in PNG format with dimensions (N x M) and a specific point (x, y) within the image, I need determine the corresponding 3D world coordinate of this point using MATLAB.

채택된 답변

Amit Dhakite
Amit Dhakite 2023년 4월 10일
Hi Abhishek,
As per my understanding, you have a specific point in a PNG format image and you want to convert it into 3D world coordinate system.
In order to get the required coordinates, you need to estimate the intrinsic and extrinsic parameters of the camera used to capture the image.
To calculate intrinsic parameters, cameraIntrinsics() can be used. You can calculate extrinsic parameters using rotationMatrix and translationVector. Once, you have all the necessary data, you can use triangulate() to construct world coordinates.
worldPoints = triangulate(imagePoints, extrinsics, intrinsics);
To know more about the functions used above, kindly refer to the following links:
  1. cameraIntrinsics(): https://www.mathworks.com/help/vision/ref/cameraintrinsics.html
  2. triangulate(): https://www.mathworks.com/help/vision/ref/triangulate.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by