Extracting 2D image from 3D volume data set

3 ビュー (過去 30 日間)
Andrius
Andrius 2011 年 2 月 28 日
コメント済み: Will 2014 年 9 月 16 日
Hello,
I have 3D data set (M x N x P), and i need to extract irregular (not parallel) 2D planes (cross-sections). And show it as an image. Maybe somebody tried this before?

回答 (2 件)

Sean de Wolski
Sean de Wolski 2011 年 2 月 28 日
perhaps
doc slice
If you actually want the data in a 2d matrix: define the plane as a function, let's call it S, through the volume and then extract it:
S = ao + a1x + a2y + a3z;
Define the parameters a0-3 and then define all of the indices that correspond to this plane within the bounds of the volume and use
meshgrid or ndgrid
to generate a full list of sub-indices. Convert them to linear indices using
sub2ind
and extract the information. Or, if memory isn't an issue, you can just define a logical volume with the only true values being the ones on the plane defined by the constraints of your plane function.
  1 件のコメント
Will
Will 2014 年 9 月 16 日
did you figure it out? i've been trying and don't know how to do this. I have the mesh and the plane equation. but can't figure it out after that. please help.

サインインしてコメントする。


Andrius
Andrius 2011 年 3 月 2 日
Thanks a lot :)
  1 件のコメント
Will
Will 2014 年 9 月 16 日
did you figure it out? i've been trying and don't know how to do this. I have the mesh and the plane equation. but can't figure it out after that. please help.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVolume Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by