Wednesday, 11 June 2014

My 1st Day in Taiwan



1st Day in Taiwan



          After pass many challenge to pursue my master degree, Finally I arrived  in Taoyuan International Airport (TPE). This is my 1st experience traveling out from Indonesia and alone. So, Here is my story :

1. From Manado---Jakarta
With Batik Air, I arrived safely at Terminal 3 Soekarno Hatta International Airport. Time : 22.00 WIB. and then I need to wait for the next flight and its in the morning. After arrived, I went to another terminal (Its : Terminal 2 for international flight) wait and sleep there hahahhaa....
 Soekarno Hatta International Airport  (Terminal 2)
2. From Jakarta-->Hongkong International Airport
After waiting, finally its time to flight hahaha..
And without sleep I still can walk and smile. I took China Airlines for my next flight from Jakarta--Hongkong--Taipe. Its a very long journey but enjoy because I can eating, watching, sleeping, etc inside the plane.
My 2nd meal (lunch)
After arrived at Hongkong international airport, I walked around inside the airport and find cute shop
Cute shop inside Hongkong International Airport

Only 30 minutes finally its time to end the journey. I took the same plane and the same seat. and after around 2 hours I arrived at Taoyuan International Airport in Taiwan and not forget to take a picture inside the airport ^_^.
 
Inside Tao-yuan Internation Airport Terminal 2
After that I took the baggage and directly went to Chang Gung University (I will spend my 2 years in that University). and special thanks to my beloved sister (Jiejie Melanie Aldrian and Her Husband) who pick me up from airport and take me to my dormitory at Chang Gung University 
Chang Gung University

Sunday, 8 June 2014

Digital System Processing Final Project

Final Project 
Name : Djeane Debora Onthoni

Simulate and Restore Image Using MATLAB

1. Read Original Image
1. I=im2double(imread('jein.jpg'));
2. imshow(I);
3. title('Original Image Jein');

This code  for read image                                     jein.jpg

2. Using Motion Blur
A. Simulate 
4. LEN=21;
5. THETA=11;
6. PSF=fspecial('motion',LEN,THETA);
7. blurred_image_jein=imfilter(I,PSF,'conv','circular');
8. imshow(blurred_image_jein);
9. title('Blurred Image Jein');

This code using : a point spread function (PSF=linear motion 21 pixels (LEN=21) and an angle of 11degree (THETA=11)). Simulate using filter (imfilter)
Output : 

B. Restore
10. restore1=deconvwnr(blurred_image_jein,PSF,0);
11. imshow(restore1);
12. title('Restore Image jein');

This code using simplest syntax deconvwnr (the blurrred image, Point spread function/PSF, noise power to singal power ration/NSR=0)
Output:

3. Using Blur and Noise
A. Simulate
13. noise_mean=0;
14. noise_var=0.0001;
15. blurred_noisy=imnoise(blurred_image_jein,'gaussian',noise_mean,noise_var);
16. imshow(blurred_noisy);
17. title('Both Blur and Noise');

This code simulate both  blur and noise (Gaussian)
Output:


B1. Restore the Blurred Image 
18. restore2=deconvwnr(blurred_noisy,PSF,0);
19. imshow(restore2);
20. title(''1st Attempt to restore the blurred and noisy UsingNSR=0');

This code using simplest syntax deconvwnr (the blurrred and noise image, Point spread function/PSF, noise power to singal power ration/NSR=0)
Output:


B2. Restore the Blurred Image 
21. signal_var=var(I(:));
22. restore3=deconvwnr(blurred_noisy,PSF,noise_var/signal_var);
23. imshow(restore3);
24. title('2nd Attempt to restore the blurred and noisy using Estimate NSR');

This code using estimate of the noise power to signal power ratio and syntax deconvwnr 
Output:

4. Using Blur and 8-Bit Quantization Noise
A. Simulate
25. I=imread('jein.jpg');
26. class(I);
27. blurred_quantity=imfilter(I,PSF,'conv','circular');
28. class(blurred_quantity)
ans =
uint8

B1. Restore the Blurred Image 
29. restore4=deconvwnr(blurred_quantity,PSF,0);
30. imshow(restore4);
31. title('Image without double Restore the blurred and noisy Using NSR=0');

This code using syntax deconvwnr (the blurrred and noise image, Point spread function/PSF, noise power to singal power ration/NSR=0)
Output:

B2. Restore the Blurred Image 
32. uniform_quantization_var=(1/256)^2/12;
33. signal_var=var(im2double(I(:)));
34. restore5=deconvwnr(blurred_quantity,PSF,uniform_quantization_var/signal_var);
35. imshow(restore5);
36. title('Restoration of blurred, quantized image using computes NSR');
This code using estimate of the noise power to signal power ratio and syntax deconvwnr 
Output:













Source :http://www.mathworks.com/index.html?s_tid=gn_logo