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

12 views (last 30 days)
RYO ARATA
RYO ARATA on 5 Oct 2022
Edited: Atsushi Ueno on 6 Oct 2022
特定のフォルダ内にある複数の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

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!