Need help with code to loop through 10 images, calculating the edge, smoothness, and texture of each image

1 回表示 (過去 30 日間)
Hello! I'm trying to write the code that loops through 10 images and calculates the edge, smoothness, and texture of each image and outputs them as a number. Thanks!

回答 (1 件)

Image Analyst
Image Analyst 2021 年 10 月 18 日
Start withthe FAQ
and the documentation for edge(), histogram(), stdfilt(), and glcm() (Demo attached).
Write back if you still can't figure it out.
  4 件のコメント
Alex McConville
Alex McConville 2021 年 10 月 19 日
Entropy for texture. Also, If I provide the directory path for the file I am using, could you input it into your code? I've only taken the image processing onramp for matlab and a lot of the code you are using seems a little beyond me.
Link to screenshot of the 10 images I need the code to calculate - https://gyazo.com/07c4a5389cc86e35bcd202fcf15a5051
Image Analyst
Image Analyst 2021 年 10 月 19 日
Alex, you way, way underestimate yourself. You're quite capable of writing this line
myFolder = 'C:\Users\Alex\Desktop\capstone\data\Images_for_Processing';
and replacing my line with that one.
And I'm sure that if you deserve a good grade on your capstone project that you can simply add a call to entropy(), just like I added calls to edge() and stdfilt(). Trust yourself. It's NOT beyond your capabilities. If it is, then you'll get the grade you deserve for your project. You don't deserve the grade I get for doing your project perfectly and completely for you - in fact submitting my code might get you into trouble with your university.

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

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by