Image Processing: Break straight lines
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have an edge image of a square, and would like to treat it as 4 separate lines: 2 horizontal and 2 vertical. Is there a way to disconnect the corner edges so that I can process each side individually?
0 Kommentare
Antworten (2)
Image Analyst
am 28 Sep. 2011
Do you have the Image Processing Toolbox? See the help on corner():
corner
Find corner points in image
Description
C = corner(I) detects corners in image I and returns them in matrix C.
C = corner(I, method) detects corners in image I using the specified method.
C = corner(I, N) detects corners in image I and returns a maximum of N corners.
C = corner(I, method, N) detects corners using the specified method and maximum number of corners.
C = corner(..., Name,Value) specifies parameters and corresponding values that control various aspects of the corner detection algorithm.
Image Analyst
am 28 Sep. 2011
Yes, corner() is somewhat new. Then use bwmorph() with the 'diag' option, or use bwhitmiss().
0 Kommentare
Siehe auch
Kategorien
Mehr zu Read, Write, and Modify Image 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!