我是靠谱客的博主 跳跃雨,这篇文章主要介绍matlab两个产量三维图,matlab用几张图片形成一个三维图,现在分享给大家,希望可以做个参考。

% IM_3D creates a solid, 3D image of multiple slices. First, create a

% string of the directory name of the files (DIRECT1) and a cell of the

% .png filenames (FILES). All files must be the same dimensions and must be

% in the order from lowest slice to highest slice.

%

% example:

% direct1='~/webMill/2011-08-18/region4/images/';

% files=

% 'Result_7481_sub13755.0_vol3.0_sl28_rater27_tutfalse.png'

% 'Result_22495_sub13755.0_vol3.0_sl29_rater57_tutfalse.png'

% 'Result_42271_sub13755.0_vol3.0_sl30_rater32_tutfalse.png'

% 'Result_30727_sub13755.0_vol3.0_sl31_rater83_tutfalse.png'

% im_3d(direct2,files)

function im_3d(direct1,files)

c=length(imread([direct1 files{1,1}])); %finds dimensions of the matrix of the image

x=double(zeros(c,c,length(files))); %creates a zeros 3D matrix

for iii=1:length(files);

x(:,:,iii)=imread([direct1 files{iii,1}]); %puts each slice into matrix

end

z=smooth3(x);

isosurface(z) %creates 3D image

patch(isocaps(z,2),'Edgecolor','blue');

brighten(1)

light

最后

以上就是跳跃雨最近收集整理的关于matlab两个产量三维图,matlab用几张图片形成一个三维图的全部内容,更多相关matlab两个产量三维图内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(125)

评论列表共有 0 条评论

立即
投稿
返回
顶部