Detecting a meniscus line in MATLAB images

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
member 428835
Hi PF!

Do any of you know a good way to detect the meniscus of the attached image (in MATLAB)? I have a very ghetto method, and would like something more automated.

Thanks for your help!
 

Attachments

  • pic.jpg
    pic.jpg
    63.5 KB · Views: 279
Physics news on Phys.org
Perhaps detect the steep color gradient of the Red fluid.
 
I actually ended up creating a binary file as the picture and then made a loop to detect the first pixel in a certain region. Seems to work well. Thanks for the reply!