How to find length, width,edges of rice in this image??
3 ビュー (過去 30 日間)
古いコメントを表示

0 件のコメント
採用された回答
その他の回答 (1 件)
Mark Sherstan
2018 年 11 月 16 日
Use the Image Processing Toolbox and this code:
I = imread('download.jpg');
I = rgb2gray(I);
BW = imbinarize(I);
stats = regionprops(I)
You can retrive the results from the structure in stats. Alternatively you could use the Image Region Analyzer app which is also part of the toolbox:

2 件のコメント
Mark Sherstan
2018 年 11 月 17 日
You have an extra space at the end of your string. Also please confirm that the image and your script are in the same directory.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
