how I link the broken edges ?
Show older comments
%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.**
Answers (1)
Image Analyst
on 18 May 2017
0 votes
Try hough() or houghlines(). See the documentation for a nice demo.
4 Comments
sufian ahmed
on 18 May 2017
Image Analyst
on 18 May 2017
Look up "edge linking MATLAB" in Google and find things like this: http://www.peterkovesi.com/matlabfns/#edgelink so I can't give you the solution directly.
Personally, I don't have any such code for you.
sufian ahmed
on 19 May 2017
Image Analyst
on 19 May 2017
I understand. Keep working on it. Good luck.
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!