How to compute thickness of a layer in an image
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I would like to compute the thickness of a layer in an image (image_1.png). I would like to do this by computing the pixel value in the top layer subtracted by the pixel value in the corresponding bottom layer and averaged over the entire layer
. Can someone help me how i could proceed with this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/689618/image.png)
Thank you
0 commentaires
Réponses (1)
Simon Chan
le 20 Juil 2021
Modifié(e) : Simon Chan
le 20 Juil 2021
You can only measure the thickness (or distance) in terms of pixel numbers according to your method.
Hence you also need to know the pixel size on your image so that you can convert the pixel value to a real distance.
You may use function imfinfo to retrieve the information regarding to the graphic file
On the other hand, if you are using dicom file, you may use function dicominfo
Voir également
Catégories
En savoir plus sur DICOM Format dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!