Line detection: Difference between revisions

Content deleted Content added
No edit summary
Line 251:
[[File:Testbuilding.jpg|thumb|Original Image]]
[[File:LineImage.jpg.png|thumb|line detection]]
<syntaxhighlight lang="matlab" line="1">
clear all
clc
Line 260:
%it may not appear to be
[~,angle] = imgradient(building);
out = (angle >= 180 - tol | angle <= -180 + tol);
%this part will filter the linesline
out_filter = bwareaopen(out, 50);
figure,imshow(crazy),title('Original Image');