how I link the broken edges ?

조회 수: 1 (최근 30일)
sufian ahmed
sufian ahmed 2017년 5월 18일
댓글: Image Analyst 2017년 5월 19일
%Input Image
A=imread('C:\Users\sufi\Desktop\matlab_kinect\Data_image\st1.png');
figure,imshow(A);
B=medfilt2(A);
figure,imshow(B);
B= imfill(B,'holes');
figure,imshow(B);
%Image obtained using MATLAB function 'edge'
E=edge(B,'sobel',.03,'horizontal');
figure,imshow(E);title('Image obtained using MATLAB function');
##########
  • * after applying this code, it eliminates stairs edges also. But if i dont use filtering then there are some broken edges. what should i do now. i want to detect strong horizontal edges and try to find straight horizontal lines. plez help me out of this.**

답변 (1개)

Image Analyst
Image Analyst 2017년 5월 18일
Try hough() or houghlines(). See the documentation for a nice demo.
  댓글 수: 4
sufian ahmed
sufian ahmed 2017년 5월 19일
i already tried this code edgelinking.m . but it not works giving some error.
Image Analyst
Image Analyst 2017년 5월 19일
I understand. Keep working on it. Good luck.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by