How to draw line in the image through the image processing
Show older comments
After conducting the evaporator viusalization experiment, want to procced image processing by matlab and found out boundary line between liquid refrigerant and vapor refrigerant. I have tried it with binarize and threshold but didnt get any satisfying result.

here shows my code and the current problem is that i cant get any clear boundary as i can see in the picture with own eyes.


i'd like to ask for some advice to get through this problem
6 Comments
Rafael S.T. Vieira
on 3 Jun 2020
Edited: Rafael S.T. Vieira
on 3 Jun 2020
I'd recommend using the sobel or canny filter (https://www.mathworks.com/discovery/edge-detection.html).
The liquid is inside the tube, right? If so, does the liquid level varies too much? If it does not, then it would be better to align the camera to the average liquid level (transforming the water plane touching the tube into a solid line if possible). If the variation is too high, then maybe a ruler behind the tube would help (or a paper with markers). I also recommend trying to remove unnecessary lights and reflections from the tube (they are not helping): adding some diffuse material on the ceiling and ground planes would probably help.
The following result was obtained by using Sobel -> Dilation (x2) -> Color Levels (in Gimp).

Seunghyuk Lee
on 3 Jun 2020
Image Analyst
on 3 Jun 2020
Can you post an image with a red line drawn where you think the boundary between liquid and vapor are? Because with dozens of possible horizontal and vertical lines, I'm not sure which one you are looking at.
Seunghyuk Lee
on 4 Jun 2020
Image Analyst
on 4 Jun 2020
Can you use polarizers in front of your light and your camera? Rotate the one in front of the camera lens until all the spurious reflections are eliminated. It will be much easier to process without all those reflections in there.
Seunghyuk Lee
on 4 Jun 2020
Accepted Answer
More Answers (0)
Categories
Find more on Valves and Orifices 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!

