why my 3D image is not extruded in 3D software?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, i have 3D image but when I view the image in the 3D software to be printed, the image does not extrude. here i attached my code and images. can anyone check on my code. Many thanks.
a = imread ('stomachgray.tif');
mask = zeros(size(a));
mask(100:end-100,100:end-100) = 1;
bw = activecontour(a,mask,1000);
c = im2double(bw);
shading flat
d = imgaussfilt3 (c,4);
colormap(bone)
h = hgtransform;
mesh(d*100, 'Parent', h, 'FaceColor', 'r' )
view(3)
lighting gouraud
camlight right
% Make it taller
set (gca, 'units', 'cent')
set(h, 'Matrix', makehgtform('scale', [10 10 500]))
[X,Y] = meshgrid(1:length(h));
surf2stl('stomachSurf7.stl',X,Y,d);
end
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158406/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158407/image.jpeg)
12 commentaires
KSSV
le 6 Déc 2016
Resizing will not help...I don't know about the software in which you are viewing.
Réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!