How to remove unwanted white region in frames
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
Walter Roberson
2013 年 2 月 22 日
regionprops() and test the eccentricty; it will be quite different for the blobs than for the long white lines.
その他の回答 (1 件)
Image Analyst
2013 年 2 月 22 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!