morphological operations in matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
I am having an image uploaded at: http://tinypic.com/view.php?pic=1h2n8g&s=6 After doing some processing on it I found the following results uploaded at: http://tinypic.com/view.php?pic=1jqffa&s=6 and http://tinypic.com/view.php?pic=2l6sk1&s=6
The code used for processing is:
img = imread('newroad1.jpg');
hsv = rgb2hsv(img);
I1 = hsv(:,:,3);
figure,imshow(I1)
se = strel('square',5);
mgrad = imdilate(I1, se) - imerode(I1, se);
figure,imshow(mgrad)
I=im2bw(mgrad,0.1);
I want to get the following results uploaded at: http://tinypic.com/view.php?pic=orp2rn&s=6 and http://tinypic.com/view.php?pic=14dga2s&s=6
What morphological operations should I use so that I can get the above mentioned results.
댓글 수: 0
채택된 답변
Image Analyst
2013년 2월 18일
Those would be the 'skel' and 'spur' options of bwmorph().
댓글 수: 9
Image Analyst
2013년 2월 18일
Just do it a frame at a time. Of course there are fancier ways involving time projection where you predict positions based on past frames but that's a lot more advanced. Just start with a frame at a time.
추가 답변 (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!