clc
close all
I = imread('Image1.tif');
J = I(:, :, 1:3);
K = rgb2gray(J);
BW2 = edge(K,'sobel',50,'horizontal');
%h = ones(5,5) /25;
h = fspecial('gaussian', 100,0.5);
m = fspecial('sobel');
hvert = ( fspecial('sobel'));
I2 = imfilter(K,h);
I3 = imfilter(K,hvert);
%figure, imshow(I2);
figure,imshow(I3);
%figure, imshow(BW2);
%figure, imshow(BW2);
%figure, imshow(J);
focsuses on using sobel to find horizontal / vertical pieces of a poll.
No comments:
Post a Comment