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

3 visualizaciones (últimos 30 días)
Jasleen Kaur
Jasleen Kaur el 16 de Nov. de 2018
Comentada: Mark Sherstan el 17 de Nov. de 2018
c.jpg

Respuesta aceptada

Image Analyst
Image Analyst el 16 de Nov. de 2018
See my Image Processing Tutorial in My File Exchange

Más respuestas (1)

Mark Sherstan
Mark Sherstan el 16 de Nov. de 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:
Capture.PNG
  2 comentarios
Jasleen Kaur
Jasleen Kaur el 17 de Nov. de 2018
rice named image exists in my laptop but it gives error, i dint know why15424762880751037376185291316968.jpg
Mark Sherstan
Mark Sherstan el 17 de Nov. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by