You are on page 1of 2

Bil

1 Detect a point in the image ‘Point_Test.tif’. Use the point detection filter and perform
thresholding after filtering.

2 Detect all diagonal lines in ‘Wirebond.tif’. Use the diagonal line detection filter and perform
thresholding after filtering.
I = imread('wirebond.png');
>> [~,threshold] = edge(I,'sobel');
fudgeFactor = 0.5;
BWs = edge(I,'sobel',threshold *
fudgeFactor);
>> imshow(BWs)

3 Detect horizontal and vertical edges in ‘Building.tif’. Use the edge detection filter and
perform thresholding after filtering.
I = imread('building.tif');
intImage = integralImage(I);
horiH = integralKernel([1 1 4 3; 1 4 4
3],[-1, 1]);
vertH = horiH;
imtool(horiH.Coefficients,
'InitialMagnification','fit');
horiResponse =
integralFilter(intImage,horiH);
vertResponse =
integralFilter(intImage,vertH);
figure;
imshow(horiResponse,[]);
title('Horizontal edge responses');
figure;
imshow(vertResponse,[]);
title('Vertical edge responses');

4 Now perform Exercises (1 – 4) using edge() function.

You might also like