summaryrefslogtreecommitdiff
path: root/3176/CH9/EX9.2/Ex9_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3176/CH9/EX9.2/Ex9_2.sce')
-rw-r--r--3176/CH9/EX9.2/Ex9_2.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3176/CH9/EX9.2/Ex9_2.sce b/3176/CH9/EX9.2/Ex9_2.sce
new file mode 100644
index 000000000..0547f2ae2
--- /dev/null
+++ b/3176/CH9/EX9.2/Ex9_2.sce
@@ -0,0 +1,30 @@
+//Ex9_2
+//An Illustration of Dilation
+// Version : Scilab 5.4.1
+// Operating System : Window-xp, Window-7
+//Toolbox: Image Processing Design 8.3.1-1
+//Toolbox: SIVP 0.5.3.1-2
+//Reference book name : Digital Image Processing
+//book author: Rafael C. Gonzalez and Richard E. Woods
+
+clc;
+close;
+clear;
+xdel(winsid())//to close all currently open figure(s).
+
+Image=imread("Ex9_2.tif");
+//Color=imresize(Color,0.25);
+[nr nc]=size(Image);
+figure,ShowImage(Image,'Gray Image');
+title('Original Image','color','blue','fontsize',4);
+
+Mask.Width=3;
+Mask.Height=3;
+Mask.Data=[%F %T %F;%T %T %T;%F %T %F];
+
+//Mask=[0 1 0;1 1 1;0 1 0];
+Image_Eroide=ErodeImage(Image,Mask);
+figure,ShowImage(Image_Eroide,'Eriode Image');
+title('Eriode Image with 3*3 Square Mask','color','blue','fontsize',4);
+
+