MATLABでフォル​ダ内の全てのDICO​M画像を読み込む方法

特定のフォルダ内にある複数のDICOM画像を全てMATLABで読み込む方法をご享受願います。

 Accepted Answer

Atsushi Ueno
Atsushi Ueno on 5 Oct 2022
Edited: Atsushi Ueno on 6 Oct 2022
本回答の実行には、Image Processing Toolbox が必要です。
dicomDir = uigetdir(pwd); % 画像が含まれるフォルダを選択する
dicomds = imageDatastore(dicomDir,'FileExtensions','.dcm','ReadFcn',@dicomread); % イメージデータストア作成
dicomimg = readall(dicomds);

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!