how can i calculate morphological features such as nucleus area and perimeter, number of the separated parts of nucleus, mean and variance of the nucleus boundaries and roundness criterion of nucleus are extracted from the segmented area ? any code?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sumu nowshin
il 5 Ago 2018
Commentato: Image Analyst
il 20 Dic 2023
example segmented image.
0 Commenti
Risposta accettata
Image Analyst
il 5 Ago 2018
You can get most of that from regionprops(). See my Image Segmentation Tutorial: https://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
props = regionprops(binaryImage, grayImage, 'Area', 'Perimeter', 'EulerNumber');
allAreas = [props.Area];
allPerimeters = [props.Perimeter];
allRoundnesses = 4 * pi * allAreas ./ allPerimeters .^ 2; % Or whatever formula you use.
To get the mean and variance of the boundaries, you have to define what the mean of the boundary is. One way might be to smooth it out until it's really smooth using the function sgolayfilt() in the Signal Processing Toolbox. See attached demo. Then you can use min() to find the closest original point and get the distance between them with sqrt(). Then take the standard deviation of all those distances with std().
8 Commenti
Nancy
il 20 Dic 2023
how can i identify Nuclei and stoma of a RGB image may i know the argument please
Image Analyst
il 20 Dic 2023
@Nancy If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Do it in a new question (not here).
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!