How to Perform an Operation on a Sequence of DICOM Images

HI i am doing a project on CT data(DICOM) image processing so i need to process(filtering) a bunch of dicom files in matlab for this how can i load and process a bucnh of DICOM files
this is my code i am getting error at I=dicomread(x{1});
CT = fullfile(CT data,'toolbox','images','imdata'); dirOutput = dir(fullfile(CT,'image000001*.dcm')); x = {dirOutput.name}; numFrames = numel(fileNames);
I = imread(x{1}); sequence = zeros([size(I) numFrames],class(I)); sequence(:,:,1) = I; % for p = 2:numFrames sequence(:,:,p) = imread(fileNames{p}); end

 採用された回答

Ben11
Ben11 2014 年 8 月 12 日

0 投票

You might want to look at this to get you started on the right track.

3 件のコメント

vinod naidu
vinod naidu 2014 年 8 月 12 日
thank u MR.Ben ,but i am getting one error at filename = sprintf('image-%3d.dcm', p); (i do have a buch of CT dicom images of 512 512 ) what is %3d in 'brain_%03d' how can i assign a multiple images tku
Ben11
Ben11 2014 年 8 月 13 日
what error do you get precisely? The %3d is used to tell matlab the precision/format of numbers in your name for example.
vinod naidu
vinod naidu 2014 年 9 月 3 日
編集済み: vinod naidu 2014 年 9 月 3 日
ok i got it thanks for that, if i want convert a bunch of accessed(p 1-20) frames into a binary image how can i convert into it or any filtering operations ,example
X1 = repmat(int16(0), [256 256 1 20]); for p=1:20 filename = sprintf('brain_%03d.dcm', p); X1(:,:,1,p) = im2bw(filename); % here getting error........... end

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDICOM Format についてさらに検索

質問済み:

2014 年 8 月 12 日

編集済み:

2014 年 9 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by