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

3 次查看(过去 30 天)
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?

采纳的回答

Image Analyst
Image Analyst 2024-2-15
Is the cannula always in the same place? Then just mask it out.
  4 个评论
Gideon Mensah
Gideon Mensah 2024-2-19
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by