how to calculate the area size of each spot in the image of ROI (pixels) in Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
chihyu
am 18 Sep. 2021
Kommentiert: chihyu
am 19 Sep. 2021
I have a spot pattern (similar to the picture of rice grains below). I want to calculate the area of each rice grain in the image ROI. But no relevant discussions were found
clc;close
I=imread('rice.png');
imshow(I);
height = 200;
width = 200;
roi = images.roi.Rectangle(gca,'Position',[10,10,width,height],'StripeColor','r');
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 18 Sep. 2021
See my Image Segmentation Tutorial and adapt as needed:
If you need to background correct your image, see my attached demo.
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!