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

3 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Image Analyst
Image Analyst el 15 de Feb. de 2024
Is the cannula always in the same place? Then just mask it out.
  4 comentarios
Gideon Mensah
Gideon Mensah el 19 de Feb. de 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 el 19 de Feb. de 2024
See attached mask that I forgot to include last time.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by