DICOM画像同士の​類似度(SSIM)を​評価したい

フォルダAとフォルダB内の50枚同士のDICOM画像を類似度評価(SSIM)したいと考えております。
内容としてはフォルダA内のDICOM image A1とフォルダB内のDICOM image B1,A2とB2....A50とB50のように計50個のSSIMの結果を導きたいと思っております。
MATLAB初心者のため、教えていただければ幸いです。
よろしくお願いいたします。

Respuestas (1)

Atsushi Ueno
Atsushi Ueno el 8 de Ag. de 2022

0 votos

listA = dir(fullfile(pwd,'A','*.dcm')); % フォルダA内のDICOM imageを検索
for n = 1:length(listA)
img1 = dicomread(fullfile(listA(n).folder,listA(n).name)); % フォルダAのA1,A2...を読む
img2 = dicomread(fullfile(pwd,'B',strrep(listA(n).name,'A','B'))); % フォルダBのB1,B2...を読む
ssimval{n} = ssim(img1, img2);
end

1 comentario

賢佑 柳
賢佑 柳 el 10 de Ag. de 2022
無事SSIMを出すことができました。
感謝申し上げます。

Iniciar sesión para comentar.

Categorías

Más información sobre DICOM Format en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 7 de Ag. de 2022

Comentada:

el 10 de Ag. de 2022

Community Treasure Hunt

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

Start Hunting!