Clear Filters
Clear Filters

How to remove unwanted white region in frames

2 views (last 30 days)
I have three frames of a video uploaded at: http://tinypic.com/view.php?pic=21dpojs&s=6 http://tinypic.com/view.php?pic=34oc0ea&s=6 and http://tinypic.com/view.php?pic=fuw00m&s=6 As clear from the figure uploaded;the first frame is clear having just the lanes. In second and third frame there is also some white region other than lanes. I want to remove that. I need to obtain the frames having only lanes not the smaller unwanted white region. Can anyone guide me of any general way that removes these type of unwanted white regions e.g I have used the command of bwareaopen(image,60) but its works for first frame but not for the rest.

Accepted Answer

Walter Roberson
Walter Roberson on 22 Feb 2013
regionprops() and test the eccentricty; it will be quite different for the blobs than for the long white lines.
  5 Comments
azan
azan on 5 Mar 2013
got the solution thanx for your guidance :)

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 22 Feb 2013
You may have to measure of bunch of blobs for different things: eccentricity, circularity (perimeter^2/(4*pi*Area)), MajorAxisLength, Solidity, Area, etc. Then see which things, or combination of things accurately distinguish your lines. Then use ismember, like I do in my Image Segmentation Tutorial to filter out bad blobs and keep the ones you want. You might even need to compute the centroids and keep only those that are in some relation (like pairs on the nearby line numbers, or in certain parts of the image, though that would have to be adaptive to allow for your vehicle to change lanes and not lose the lane lines when it does so).
How do people in section 15.3.3.2 of Vision Bib do it? Have you read their papers on how they successfully did it? You're not breaking new ground here (at least not yet). You're far from the first person to do it so you might as well learn from them.

Products

Community Treasure Hunt

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

Start Hunting!