How to find length, width,edges of rice in this image??

조회 수: 4 (최근 30일)
Jasleen Kaur
Jasleen Kaur 2018년 11월 16일
댓글: Mark Sherstan 2018년 11월 17일
c.jpg

채택된 답변

Image Analyst
Image Analyst 2018년 11월 16일
See my Image Processing Tutorial in My File Exchange

추가 답변 (1개)

Mark Sherstan
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:
Capture.PNG
  댓글 수: 2
Jasleen Kaur
Jasleen Kaur 2018년 11월 17일
rice named image exists in my laptop but it gives error, i dint know why15424762880751037376185291316968.jpg
Mark Sherstan
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by