MATLABでフォル​ダ内の全てDICOM​画像のヘッダー情報を​抽出する方法

7 views (last 30 days)
RYO ARATA
RYO ARATA on 6 Oct 2022
Edited: Atsushi Ueno on 6 Oct 2022
DICOM画像が1枚であればdicominfoで抽出できるのですが、DICOM画像が複数の場合にはどのように行えば良いでしょうか。

Accepted Answer

Atsushi Ueno
Atsushi Ueno on 6 Oct 2022
Edited: Atsushi Ueno on 6 Oct 2022
先日の回答の応用で、関数 dicominfo のハンドルとして読み取り関数を指定して、imageDatastore を作成します。
dicomDir = uigetdir(pwd); % 画像が含まれるフォルダを選択する
dicomds = imageDatastore(dicomDir,'FileExtensions','.dcm','ReadFcn',@dicominfo); % イメージデータストア作成
dicomtgs = readall(dicomds);

More Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!