filmov
tv
Point, Line and Edge detection in DIP and its implementation in MATLAB || Image Segmentation|| #DIP

Показать описание
Video lecture series on Digital Image Processing, Lecture: 49,
Point, Line and Edge detection in DIP and its implementation in MATLAB
Classify image segmentation techniques
What is the difference between Gradient based and Gaussian based operators?
How the discontinuities can be detected?
Which are different edge models?
Explain steps in edge detection.
What is Laplacian of Gaussian?
Link to download ppts/lecture notes:
#DIP
#DIPwithMATLAB
#DigitalImageProcessingUsingMATLAB
#DigitalImageProcessing
#StudywithDrDafda
MATLAB codes used in the video are given below:
% MATLAB code for Point detection
clc;
clear all;
close all;
w=[-1,-1,-1;-1,8,-1;-1,-1,-1];
g=abs(imfilter(double(a),w));
T=max(g(:));
g=g(greater than or equal to)T; % T is the threshold
subplot(121),imshow(a),title('Original image');
subplot(122),imshow(g),title('Result of point detection');
% MATLAB code for Edge detection (Sobel operator)
clc;
clear all;
close all;
[gv,t]=edge(f,'sobel','vertical');%%automatically threshold
subplot(231)
imshow(f)
title('original image');
subplot(232)
imshow(gv)
title('Results using vertical Sobel with automatically t');
gv=edge(f,'sobel',0.15,'vertical'); %%specified threshold
gboth=edge(f,'sobel',0.15); %%ver and hor
subplot(233)
imshow(gv)
title('Results using vertical Sobel with specified t');
subplot(234)
imshow(gboth)
title('Results using ver and hor Sobel with specified t');
w45=[-2 -1 0;-1 0 1;0 1 2];%%45
g45=imfilter(double(f),w45);
T=0.3*max(abs(g45(:)));
g45=g45(greater than or equal to)T;
subplot(235)
imshow(g45)
title('The edge oriented at 45 ');
ww45=[0 1 2;-1 0 1;-2 -1 0]; %%-45
gg45=imfilter(double(f),ww45);
T2=0.3*max(abs(gg45(:)));
gg45=gg45(greater than or equal to)T2;
subplot(236)
imshow(gg45)
title('The edge oriented at -45 ');
Point, Line and Edge detection in DIP and its implementation in MATLAB
Classify image segmentation techniques
What is the difference between Gradient based and Gaussian based operators?
How the discontinuities can be detected?
Which are different edge models?
Explain steps in edge detection.
What is Laplacian of Gaussian?
Link to download ppts/lecture notes:
#DIP
#DIPwithMATLAB
#DigitalImageProcessingUsingMATLAB
#DigitalImageProcessing
#StudywithDrDafda
MATLAB codes used in the video are given below:
% MATLAB code for Point detection
clc;
clear all;
close all;
w=[-1,-1,-1;-1,8,-1;-1,-1,-1];
g=abs(imfilter(double(a),w));
T=max(g(:));
g=g(greater than or equal to)T; % T is the threshold
subplot(121),imshow(a),title('Original image');
subplot(122),imshow(g),title('Result of point detection');
% MATLAB code for Edge detection (Sobel operator)
clc;
clear all;
close all;
[gv,t]=edge(f,'sobel','vertical');%%automatically threshold
subplot(231)
imshow(f)
title('original image');
subplot(232)
imshow(gv)
title('Results using vertical Sobel with automatically t');
gv=edge(f,'sobel',0.15,'vertical'); %%specified threshold
gboth=edge(f,'sobel',0.15); %%ver and hor
subplot(233)
imshow(gv)
title('Results using vertical Sobel with specified t');
subplot(234)
imshow(gboth)
title('Results using ver and hor Sobel with specified t');
w45=[-2 -1 0;-1 0 1;0 1 2];%%45
g45=imfilter(double(f),w45);
T=0.3*max(abs(g45(:)));
g45=g45(greater than or equal to)T;
subplot(235)
imshow(g45)
title('The edge oriented at 45 ');
ww45=[0 1 2;-1 0 1;-2 -1 0]; %%-45
gg45=imfilter(double(f),ww45);
T2=0.3*max(abs(gg45(:)));
gg45=gg45(greater than or equal to)T2;
subplot(236)
imshow(gg45)
title('The edge oriented at -45 ');
Комментарии