24小时热门版块排行榜    

查看: 2512  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

rjie88

银虫 (小有名气)

[求助] matlab中的reducevolume函数

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

» 猜你喜欢

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

人生最大的快乐在于分享
已阅   关注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的回帖
查看全部 3 个回答

月只蓝

主管区长 (职业作家)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 332求调剂 +3 凤凰院丁真 2026-03-20 3/150 2026-03-21 10:27 by luoyongfeng
[考研] 085601调剂 358分 +3 zzzzggh 2026-03-20 4/200 2026-03-21 10:21 by luoyongfeng
[考研] 能源材料化学课题组招收硕士研究生8-10名 +5 脱颖而出 2026-03-16 15/750 2026-03-21 10:16 by 脱颖而出
[考研] 一志愿西安交通大学材料工程专业 282分求调剂 +7 枫桥ZL 2026-03-18 9/450 2026-03-21 09:56 by JineShine
[考研] 材料工程(专)一志愿985 初试335求调剂 +3 hiloiy 2026-03-17 4/200 2026-03-21 03:04 by JourneyLucky
[考研] 一志愿中国石油大学(华东) 本科齐鲁工业大学 +3 石能伟 2026-03-17 3/150 2026-03-21 02:22 by JourneyLucky
[考研] 280求调剂 +7 咕噜晓晓 2026-03-18 8/400 2026-03-21 01:27 by JourneyLucky
[考研] 299求调剂 +4 shxchem 2026-03-20 5/250 2026-03-21 00:24 by 星空星月
[考研] 274求调剂 +10 S.H1 2026-03-18 10/500 2026-03-20 23:51 by JourneyLucky
[考研] 南京大学化学376求调剂 +3 hisfailed 2026-03-19 6/300 2026-03-20 23:43 by hisfailed
[考研] 308求调剂 +3 阿姐阿姐家啊 2026-03-18 3/150 2026-03-20 23:24 by JourneyLucky
[考研] 一志愿南京理工大学085701资源与环境302分求调剂 +4 葵梓卫队 2026-03-18 6/300 2026-03-20 23:02 by JourneyLucky
[考研] 288求调剂,一志愿华南理工大学071005 +5 ioodiiij 2026-03-17 5/250 2026-03-19 18:22 by zcl123
[考研] 085600材料与化工调剂 324分 +10 llllkkkhh 2026-03-18 12/600 2026-03-19 14:33 by llllkkkhh
[考研] 0703化学调剂 +5 pupcoco 2026-03-17 8/400 2026-03-19 13:58 by houyaoxu
[考研] 085600材料与化工求调剂 +6 绪幸与子 2026-03-17 6/300 2026-03-19 13:27 by houyaoxu
[考研] 本科郑州大学物理学院,一志愿华科070200学硕,346求调剂 +4 我不是一根葱 2026-03-18 4/200 2026-03-19 09:11 by 浮云166
[考研] 材料专硕326求调剂 +6 墨煜姒莘 2026-03-15 7/350 2026-03-17 17:10 by ruiyingmiao
[考研] 26考研一志愿中国石油大学(华东)305分求调剂 +3 嘉年新程 2026-03-15 3/150 2026-03-15 13:58 by 哈哈哈哈嘿嘿嘿
[考研] 0856专硕279求调剂 +5 加油加油!? 2026-03-15 5/250 2026-03-15 11:58 by 2020015
信息提示
请填处理意见