How to find length, width,edges of rice in this image??
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akzeptierte Antwort
Weitere Antworten (1)
Mark Sherstan
am 16 Nov. 2018
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 Kommentare
Mark Sherstan
am 17 Nov. 2018
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.
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

