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 /125/CH6/EX6.1 | |
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 '125/CH6/EX6.1')
-rwxr-xr-x | 125/CH6/EX6.1/Fig6_1.sce | 19 | ||||
-rwxr-xr-x | 125/CH6/EX6.1/Fig6_1_Blurring_Image.JPG | bin | 0 -> 5350 bytes |
2 files changed, 19 insertions, 0 deletions
diff --git a/125/CH6/EX6.1/Fig6_1.sce b/125/CH6/EX6.1/Fig6_1.sce new file mode 100755 index 000000000..4506c995b --- /dev/null +++ b/125/CH6/EX6.1/Fig6_1.sce @@ -0,0 +1,19 @@ +//Caption:Scilab code to create motion blur
+//Fig6.1
+//page 326
+clc;
+close;
+a = imread('E:\DIP_JAYARAMAN\Chapter6\humm.jpg');//SIVP toolbox
+//filter coefficients of fspecial('motion',10,25)
+H =[0,0,0,0,0,0,0,0.0032,0.0449,0.0865,0.0072;...
+0,0,0,0,0,0.0092,0.0509,0.0925,0.0629,0.0213,0;...
+0,0,0,0.0152,0.0569,0.0985,0.0569,0.0152,0,0,0;...
+0,0.0213,0.0629,0.0925,0.0509,0.0092,0,0,0,0,0;...
+0.0072,0.0865,0.0449,0.0032,0,0,0,0,0,0,0];
+Motion_Blur = imfilter(a,H);
+Motion_Blur =uint8(Motion_Blur);
+ShowImage(a,'original Image')
+title('original Image')
+figure
+ShowImage(Motion_Blur,'Motion Blurred Image')
+title('10x25 Motion Blurred Image')
\ No newline at end of file diff --git a/125/CH6/EX6.1/Fig6_1_Blurring_Image.JPG b/125/CH6/EX6.1/Fig6_1_Blurring_Image.JPG Binary files differnew file mode 100755 index 000000000..3293a5608 --- /dev/null +++ b/125/CH6/EX6.1/Fig6_1_Blurring_Image.JPG |