How do i export to blender?

46 次查看(过去 30 天)
Rey Kelvin Peralta
Rey Kelvin Peralta 2015-8-23
评论: Pierre 2023-6-15
I have this code:
y = rgb2gray(imresize(imread('DSC_0009.jpg'),.2));
z = 255.0 - 1.0 * double(y);
z = z ./5 ;
z2 = imfilter(z, fspecial('average', 15));
z2(z2 > 35) = 35;
z2(z2 < 30) = 0;
surface(z2);
shading interp;
axis ij;
axis tight;
Can i ask help to make the output file of this be converted into a format that blender can read? i am trying to make a 3d model.
please help me.
  2 个评论
Walter Roberson
Walter Roberson 2015-8-26
In a duplicate question you asked about using saveobjmesh.m
Rena Berman
Rena Berman 2017-1-24
(Answers dev) Restored question.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2015-8-26
[X,Y] = ndgrid(1:size(y,1), 1:size(y,2));
saveobjmesh(X, Y, z2);
  1 个评论
Pierre
Pierre 2023-6-15
I'm afraid this does not run on recent Matlab versions (tried on 2022b).

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by