How to determine the contact angle of droplet with a cannula in place

3 vues (au cours des 30 derniers jours)
I have been using a code I found on the Matlab community to calculate the contact angle of a droplet on a solid surface. The code works well in detecting almost all contact angles, but I have encountered an error when trying to determine the contact angle of a sessile droplet with the cannula still in place. The issue is that the code is unable to determine the contour of the droplet for the calculation of the contact angle. How can I separate the cannula from the droplet profile in order to calculate the contact angle accurately?

Réponse acceptée

Image Analyst
Image Analyst le 15 Fév 2024
Is the cannula always in the same place? Then just mask it out.
  4 commentaires
Gideon Mensah
Gideon Mensah le 19 Fév 2024
Thank you for the rapid response
I edited the following part of the code : % Read in mask
mask = logical(imread('Cannula Mask.png'));
I replaced cannula mask.png with (grayImage) as the error message indicates the file name (cannula mask.png ) did not exsist. this has lead to a different results which i have attached to this responds
Image Analyst
Image Analyst le 19 Fév 2024
See attached mask that I forgot to include last time.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox 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!

Translated by