24小时热门版块排行榜    

查看: 2484  |  回复: 2

rjie88

银虫 (小有名气)

[求助] matlab中的reducevolume函数

matlab中的reducevolume函数的用法是什么,怎么我在三维重建的时候,不对三维数据用reducevolume预处理,重建就不能进行。
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

人生最大的快乐在于分享
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

月只蓝

主管区长 (职业作家)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
rjie88: 金币+10, 有帮助 2013-10-15 10:21:09
REDUCEVOLUME  Reduce volume dataset.
    [NX, NY, NZ, NV] = REDUCEVOLUME(X,Y,Z,V,[Rx Ry Rz]) reduces the number
    of elements in the volume by only keeping every Rx element in the x
    direction, every Ry element in the y direction, and every Rz element
    in the z direction. If a scalar R is used to indicate the amount or
    reduction instead of a 3 element vector, the reduction is assumed to
    be [R R R]. Arrays X, Y and Z specify the points at which the data V
    is given. The reduced volume is returned in NV and the coordinates of
    the reduced volume are given in NX, NY, and NZ.
   
    [NX, NY, NZ, NV] = REDUCEVOLUME(V,[Rx Ry Rz]) assumes  
                    [X Y Z] = meshgrid(1:N, 1:M, 1) where [M,N,P]=SIZE(V).

    NV = REDUCEVOLUME(...) returns the reduced volume only.

    Example:
       load mri
       D = squeeze(D);
       [x y z D] = reducevolume(D, [4 4 1]);
       D = smooth3(D);
       p = patch(isosurface(x,y,z,D, 5,'verbose'), ...
                 'FaceColor', 'red', 'EdgeColor', 'none');
       p2 = patch(isocaps(x,y,z,D, 5), 'FaceColor', 'interp', 'EdgeColor', 'none');
       view(3); axis tight;  daspect([1 1 .4])
       colormap(gray(100))
       camlight; lighting gouraud
       isonormals(x,y,z,D,p);
MATLAB、MS小问题、普通问题请发帖求助!时间精力有限,恕不接受无偿私信求助。
2楼2013-10-15 10:04:21
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

rjie88

银虫 (小有名气)

引用回帖:
2楼: Originally posted by 月只蓝 at 2013-10-15 10:04:21
REDUCEVOLUME  Reduce volume dataset.
     = REDUCEVOLUME(X,Y,Z,V,) reduces the number
    of elements in the volume by only keeping every Rx element in the x
    direction, every Ry element in the ...

这个我知道,[x y z D] = reducevolume(D, [4 4 1])这一步好像是按4 4 1抽取,减少数据量,我就是不知道为什么非得要这一?本来我的D应该是461*461*567的三维矩阵,但是经过reducevolume处理后就变为了:X 116*116*567 Y: 116*116*567 Z:116*116*567,这样做出来的图好像不太对。
人生最大的快乐在于分享
3楼2013-10-15 10:25:14
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 rjie88 的主题更新
信息提示
请填处理意见