From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001
From: priyanka
Date: Wed, 24 Jun 2015 15:03:17 +0530
Subject: initial commit / add all books

---
 125/CH6/EX6.23/Fig6_23.sce                         |  26 +++++++++++++++++++++
 .../EX6.23/Fig6_23_median_filtering_ColorImage.JPG | Bin 0 -> 14265 bytes
 2 files changed, 26 insertions(+)
 create mode 100755 125/CH6/EX6.23/Fig6_23.sce
 create mode 100755 125/CH6/EX6.23/Fig6_23_median_filtering_ColorImage.JPG

(limited to '125/CH6/EX6.23')

diff --git a/125/CH6/EX6.23/Fig6_23.sce b/125/CH6/EX6.23/Fig6_23.sce
new file mode 100755
index 000000000..8ec3f9b9b
--- /dev/null
+++ b/125/CH6/EX6.23/Fig6_23.sce
@@ -0,0 +1,26 @@
+//Caption:Scilab code to Perform median filtering of colour image
+//Fig6.23(a)
+//page 353
+clc;
+close;
+a=imread('E:\DIP_JAYARAMAN\Chapter6\peppers.png'); //SIVP toolbox
+N=input('enter the window size');
+b=imresize(a,[256,256]);
+b=imnoise(b,'salt & pepper',.1);
+[m n]=size(b);
+R=b(:,:,1); 
+G=b(:,:,2);
+B=b(:,:,3);
+Out_R=Func_medianall(R,N);//Applying Median filter to ‘R’ plane
+Out_G=Func_medianall(G,N);//Applying Median filter to ‘G’ plane
+Out_B=Func_medianall(B,N);//Applying Median filter to ‘B’ plane
+Out_Image(:,:,1)=Out_R;
+Out_Image(:,:,2)=Out_G;
+Out_Image(:,:,3)=Out_B;
+b = uint8(b);
+Out_Image = uint8(Out_Image);
+//ShowColorImage(b,'noise added')
+//title('noise added')
+figure
+ShowColorImage(Out_Image,'3x3 median filtered')
+title('3x3 median filtered') 
\ No newline at end of file
diff --git a/125/CH6/EX6.23/Fig6_23_median_filtering_ColorImage.JPG b/125/CH6/EX6.23/Fig6_23_median_filtering_ColorImage.JPG
new file mode 100755
index 000000000..694b43140
Binary files /dev/null and b/125/CH6/EX6.23/Fig6_23_median_filtering_ColorImage.JPG differ
-- 
cgit