フィルターのクリア

I have 300 images dicom in a folder and I want to extra the features glcm,Can you help me with what code I can use?

2 ビュー (過去 30 日間)
I have 300 images dicom in a folder and I want to extra the features glcm,Can you help me with what code I can use?
imagefiles = dir('D:\ct\New folder (2)');
nfiles = length(imagefiles); % Number of files found
for i=1:nfiles
currentfilename = imagefiles(i);
currentimage = imread(currentfilename);
images{i} = currentimage;
end

採用された回答

Image Analyst
Image Analyst 2022 年 5 月 8 日
編集済み: Image Analyst 2022 年 5 月 8 日
Use dicomread instead of imread.
See my GLCM demo and take the relevant code and insert it into your loop.
  1 件のコメント
pantea sam
pantea sam 2022 年 5 月 9 日
編集済み: pantea sam 2022 年 5 月 9 日
I used the code GLCM that gave me all the properties such as variance, entropy, homogeneity, etc. Now I want to use the same for a photo folder that gives it as a matrix for all photos.The code you said does not give me these value
Code as follows:
I=dicomread('D:/ct/A0001/8d783e21-806e-42a5-a964-d1b6e3cba896');
offsets = [0 1];
GLCM2 = graycomatrix(I,'NumLevels',8,'Offset',offsets);
stats = GLCM_Features(GLCM2)
What should I do?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by