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

조회 수: 2 (최근 30일)
RYO ARATA
RYO ARATA 2022년 10월 6일
편집: Atsushi Ueno 2022년 10월 6일
DICOM画像が1枚であればdicominfoで抽出できるのですが、DICOM画像が複数の場合にはどのように行えば良いでしょうか。

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!