Azzera filtri
Azzera filtri

Segment layers of an image

1 visualizzazione (ultimi 30 giorni)
Sheetal Padhi
Sheetal Padhi il 6 Feb 2023
Risposto: Rahul il 20 Feb 2023
I have an image and there is a varnish applied. I want to segment the varnish area as seen in the image, and then find the volume of it. How would I go about doing that?

Risposte (1)

Rahul
Rahul il 20 Feb 2023
There are many segmentation algorithms that you can leverage such as region growing, Graph-Based Segmentation, Clustering, etc. Please find the documentation link below to know more about them:
You can also use Image Segmenter app for manual segmentation.
Now to calculate the volume of the segmented area, you can use "regionprops" in-built function. As the image is in 2D format, you will be able to calculate its area as follows:
>> measurements = regionprops(segmented_binary_2Dimage, 'Area');
If you have an image in 3D format, you can use "regionprops3" in-built function as given below.
>> measurements = regionprops3(segmented_binary_3Dimage, 'Volume');

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by