Read Image Coordinates

6 ビュー (過去 30 日間)
Yassmin Abdallah
Yassmin Abdallah 2012 年 6 月 8 日
Hi all ,
I need a way to read the (x,y,z,colors) of a 3D image .
Thanks
  7 件のコメント
Yassmin Abdallah
Yassmin Abdallah 2012 年 6 月 8 日
function [F,V,col] = MarchingCubes(x,y,z,c,iso,colors)
im = dicomread('IM-0001-0001.dcm');
im2 = dicomread('IM-0001-0012.dcm');
im3= dicomread('IM-0001-0079.dcm');
im = im2double(im); % this line to convert from uint16 to double
im2 = im2double(im2);
im3 = im2double(im3);
im = mat2gray(im); % this line to put the data in range [0,1]
im2 = mat2gray(im2);
im3 = mat2gray(im3);
);
c = cat(3,im,im2,im3 );
x
y
z
colors
this is the code i try to run ,sorry if i presented the question the wrong way :(
Image Analyst
Image Analyst 2012 年 6 月 8 日
All that code does is to stack your slices into a volumetric gray scale image, and type out your inputs to the command window. It doesn't do anything like marching cubes.

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

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 8 日
x, y, z, and colors are inputs to the MarchingCubes routine.
You should be reading the data before you call MarchingCubes.
If your x, y, and z are equally spaced then
[x, y, z] = ndgrid( 1:size(c,1), 1:size(c,2), 1:size(c,3) );
  1 件のコメント
Yassmin Abdallah
Yassmin Abdallah 2012 年 6 月 8 日
thanks so much for your help .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by