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

3 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by