Extract curve present in JPG image and bring it back to a 3D environment

조회 수: 2 (최근 30일)
Hello! I have this JPG image.
I would like to extrapolate the curve present in the JPG image and bring it back to a 3D environment (plot3D). Can anyone tell me how to proceed?
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 9월 30일
Is the assumption that this would be a circle if you were looking at it from the correct angle, and that the parts that suggest otherwise are due to it sitting on a curved surface?

댓글을 달려면 로그인하십시오.

채택된 답변

Rijuta
Rijuta 2023년 2월 23일
Hi Alberto,
I understand that you are trying to extract the curve from a 2D environment and plot it in 3D.
Here, the values of the third dimension(Z) are unknown. One way to solve this is by assuming a fixed value of Z co-ordinate.
To extrapolate a curve from a 2D image and plot it in 3D using MATLAB, we can follow these general steps:
  1. Load the image: Use the imread’ function to load the JPG image into MATLAB.
  2. Extract the curve: Use image processing techniques to extract the curve from the image. Depending on the complexity of the curve and the image quality, we may need to use techniques such as edge detection, thresholding, morphological operations, or segmentation.
  3. Convert the curve to 3D: If the curve representsa 3D object, we need to convert the 2D coordinates to 3D coordinates. One way to do this is to assume a fixed z-coordinate for all points on the curve, so that weend up with a set of (x, y, z) coordinates that define the 3D curve.
  4. Plot the curve in 3D: Once wehave the (x, y, z) coordinates of the curve, wecan use the ‘plot3 function to plot it in 3D.
I hope the above information has helped you answer your query.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by