Extract RGB values, shape and size of many objects in all images inside a folder.
이전 댓글 표시
Hi! May I know how to extract RGB values, major and minor diameter, and area of many seeds from different images in a folder using a single script? Please see attached sample images. Any help will be appreciated. Thank you so much!
댓글 수: 1
Rik
2023년 5월 9일
Start writing the code to do each task separately and then put those together. I would discourage the use of scripts for actual work. Use scripts only for debugging and use functions for code you plan to use next week or later.
채택된 답변
추가 답변 (1개)
Image Analyst
2023년 5월 9일
0 개 추천
See the FAQ: Process a sequence of files
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.
댓글 수: 2
Maria Pauline Capiroso
2023년 5월 9일
If you want diameter (Equivalent Circular Diameter) then you'd want to ask regionprops for "EquivDiameter".
I would not use MajorAxisLength because it's the length of an ellipse fitted to the seed, not the length of the actual seed itself. For that you'd need to call bwferet
help bwferet
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!