is it possible to convert 2d image into 3d binary image form?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sidra Rafique
am 14 Okt. 2019
Kommentiert: sidra Rafique
am 18 Okt. 2019
i want to use 3d binary image for printing or sketching purpose. But i am not sure how to create the 3d binary image. please guide me through this.
8 Kommentare
Walter Roberson
am 15 Okt. 2019
How is the Z value to be derived? And are you wanting only a surface or a filled volume ?
Akzeptierte Antwort
Walter Roberson
am 15 Okt. 2019
h = surf(YourImageArray);
or more likely
h = surf(YourImageArray, 'edgecolor', 'none');
After that you would use https://www.mathworks.com/matlabcentral/fileexchange/4512-surf2stl . If you need x and y coordinates you can use 1:size(YourImageArray,2) for x and 1:size(YourImageArray,1) for y.
5 Kommentare
Walter Roberson
am 17 Okt. 2019
The error message is misleading: what it is really complaining about is the YourImageArray being 3D.
h = surf(YourImageArray(:,:,1), 'edgecolor', 'none');
I suspect that the ragged edges you will see have to do with JPEG blurring of straight edges.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!