How can I convert a series of 2D images (grayscale) into a 3D image?

9 ビュー (過去 30 日間)
Sterne_17
Sterne_17 2023 年 1 月 10 日
編集済み: Sterne_17 2023 年 2 月 3 日
I have collected a series of images from a line laser hitting a rotating metal sphere with an industrial camera, and processed them accordingly, now keeping a series of images of the outline of the metal sphere (grayscale image). I need to convert this series of 2D images into a 3D image. How do I do this? How do I write the code?

採用された回答

Image Analyst
Image Analyst 2023 年 1 月 10 日
You can use cat
image3d = cat(3, image1, image2, image3, image4, image5); % etc.
Or you can do in a loop
image3d = cat(3, image3d, thisImage);
where this image is that particular image, for example read in from a disk file or cell array or whatever.
  9 件のコメント
Sterne_17
Sterne_17 2023 年 1 月 12 日
Sir, thank you very much. I will give it a try.
Sterne_17
Sterne_17 2023 年 2 月 3 日
編集済み: Sterne_17 2023 年 2 月 3 日
Hello sir @Image Analyst.
I am uploading in the attachment the code I used in this project and the image that was used as input, and the final image generated is an image in the 3D coordinate system where I can get the coordinates of the sets of spheres I want.
if I have already got the coordinates of some points on the sphere, I now need to fit a sphere with this function sphere and my goal is to find its radius, how can I do that?
Can you give me an example if you can, I don't really know how to write a complete program.
Thank you so much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by