How to remove unwanted white region in frames
조회 수: 2 (최근 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!