summaryrefslogtreecommitdiff
path: root/3176/CH6/EX6.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3176/CH6/EX6.6
downloadScilab-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.6')
-rw-r--r--3176/CH6/EX6.6/Ex6_6.sce39
1 files changed, 39 insertions, 0 deletions
diff --git a/3176/CH6/EX6.6/Ex6_6.sce b/3176/CH6/EX6.6/Ex6_6.sce
new file mode 100644
index 000000000..851ca7c89
--- /dev/null
+++ b/3176/CH6/EX6.6/Ex6_6.sce
@@ -0,0 +1,39 @@
+//Ex6_6 :
+//Color Coding of Multi Spectral Images.
+
+// 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).
+gray1=imresize(imread("Ex6_6_1.tif"),0.5);
+gray2=imresize(imread("Ex6_6_2.tif"),0.5);
+gray3=imresize(imread("Ex6_6_3.tif"),0.5);
+gray4=imresize(imread("Ex6_6_4.tif"),0.5);
+
+figure,ShowImage(gray1,'Gray Image');
+title('Visible RED Band Component');
+figure,ShowImage(gray2,'Gray Image');
+title('Visible GREEN Band Component');
+figure,ShowImage(gray3,'Gray Image');
+title('Visible BLUE Band Component');
+figure,ShowImage(gray4,'Gray Image');
+title('Near Infrared Band Image');
+
+temp(:,:,1)=gray1; //Visible RED Band Component
+temp(:,:,2)=gray2; //Visible GREEN Band Component
+temp(:,:,3)=gray3; //Visible BLUE Band Component
+figure,ShowColorImage(temp,'Color Image');
+title('Color Composite Image');
+
+temp1(:,:,1)=gray4; //Near Infrared Band Component
+temp1(:,:,2)=gray2; //Visible GREEN Band Component
+temp1(:,:,3)=gray3; //Visible BLUE Band Component
+figure,ShowColorImage(temp1,'Color Image');
+title('Color Composite Image');