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

3 views (last 30 days)
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?

Accepted Answer

Image Analyst
Image Analyst on 15 Feb 2024
Is the cannula always in the same place? Then just mask it out.
  4 Comments
Gideon Mensah
Gideon Mensah on 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

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!