diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3176/CH6/EX6.16 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3176/CH6/EX6.16')
-rw-r--r-- | 3176/CH6/EX6.16/Ex6_16.sce | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/3176/CH6/EX6.16/Ex6_16.sce b/3176/CH6/EX6.16/Ex6_16.sce new file mode 100644 index 000000000..ebae21bf0 --- /dev/null +++ b/3176/CH6/EX6.16/Ex6_16.sce @@ -0,0 +1,38 @@ +//Ex6_16
+//Edge Detection Vector Space
+// 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).
+rgb=imread("Ex6_16.tif");
+[nr nc]=size(rgb2gray(rgb)); // find the size of image
+figure,ShowColorImage(rgb,'Color Image');
+title('Original Image','color','blue','fontsize',4);
+
+R=rgb(:,:,1); //Separation of red component from image
+G=rgb(:,:,2); //Separation of green component from image
+B=rgb(:,:,3); //Separation of blue component from image
+
+Image_Edge=edge(R,'canny',0.18); // Gradient Computation by Canny
+figure,ShowImage(Image_Edge,'Edge Image');
+title('Gradient Image','color','blue','fontsize',4);
+
+Image_Edge=edge(G,'canny',0.17); // Gradient Computation by Canny
+figure,ShowImage(Image_Edge,'Edge Image');
+title('Gradient Image','color','blue','fontsize',4);
+
+Image_Edge=edge(B,'canny',0.19); // Gradient Computation by Canny
+figure,ShowImage(Image_Edge,'Edge Image');
+title('Gradient Image','color','blue','fontsize',4);
+
+
+
+
+
|