How to choose the right image filtering technique for my application
Show older comments
I am observing two droplets, one with a air bubble and one without an air bubble. The droplets are frozen and I watch the freezing process and track through time. Currently I send my black and white video (a snippet of it is attached as image.png) through an edge-detection filter in Matlab this filter is as follows:
B = edge(Frames,'canny',0.1);
The only problem with this "canny" method of filtering is that they leave too much noise inside the droplets, especially in the one with an air bubble. When I analyze with these filters, the noise interferes with my analysis of the freezing line and skews my data. As you can see in the "withotu bubble.PNG" file there is some noise around the freezing line and this noise is much worse in the "withairbubble.PNG" file that is attached. I want to know if there is a way for me to either remove or avoid all that noise surrounding the lines and only filter in the freezing line as it goes up.

Answers (1)
Image Analyst
on 19 Mar 2018
0 votes
Then don't use edge detection. I see no reason why you'd want to use edge detection. And why can't you just throw out any droplets that have a bubble in them? Why even bother with them? Can't you just take another video, or not start recording if you see a bubble? Just record enough videos so that you have enough good videos even when you throw out the bad ones with air bubbles.
11 Comments
user
on 19 Mar 2018
Image Analyst
on 19 Mar 2018
Thresholding. What landmarks in the image do you need to locate? The outer edges of the blob?
Image Analyst
on 19 Mar 2018
Didn't I make up code for detecting the freezing line in another question you posted?
user
on 19 Mar 2018
Image Analyst
on 19 Mar 2018
Can you mock up a photo to show what an "ideal" image would look like? And I still don't know what you think edge detection is gaining you. Let's say you didn't have the problem of too much noise inside the droplets with the Canny method - let's say it was ideal. THEN what would your edge image look like and how would you use that image to improve anything?
user
on 20 Mar 2018
Edited: Image Analyst
on 20 Mar 2018
Image Analyst
on 20 Mar 2018
I would threshold, then take the two largest blobs. One is the base plate. The other is the droplet. For the droplet, I'd use bwconvhull() to create a mask for the droplet alone. Use the baseplate to define the zero y height. Then look inside the droplet mask area to determine the freezing line. Would that be the bottom, flat part of the bubble?
user
on 26 Mar 2018
Image Analyst
on 26 Mar 2018
Your video just has one droplet in each frame, right? Not two like you had above. I assume you just stitched two different frames side-by-side.
user
on 26 Mar 2018
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!