how I link the broken edges ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
%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');
##########
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164221/image.png)
- * 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.**
0 Kommentare
Antworten (1)
Image Analyst
am 18 Mai 2017
Try hough() or houghlines(). See the documentation for a nice demo.
4 Kommentare
Siehe auch
Kategorien
Mehr zu Point Cloud Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!