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

14 vues (au cours des 30 derniers jours)
RYO ARATA
RYO ARATA le 6 Oct 2022
DICOM画像が1枚であればdicominfoで抽出できるのですが、DICOM画像が複数の場合にはどのように行えば良いでしょうか。

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur DICOM Format dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!