The sizes of images that I am working on range from 5MB to 15MB, sometimes even larger. And the program that I am using is Wiener Filter. Since the image shrinks significantly after it is imported, is there any method to remain the size of picture and print out as high quality as original picture without changing the body of program?
Program: I = im2double(imread('1.tif')); imshow(I); title('Original Image (courtesy of MIT)');
LEN = 21; THETA = 11; PSF = fspecial('motion', LEN, THETA); blurred = imfilter(I, PSF, 'conv', 'circular'); figure, imshow(blurred)
noise_mean = 0; noise_var = 0.0001; blurred_noisy = imnoise(blurred, 'gaussian', … noise_mean, noise_var); figure, imshow(blurred_noisy) title('Simulate Blur and Noise')
estimated_nsr = 0; wnr2 = deconvwnr(blurred_noisy, PSF, estimated_nsr); figure, imshow(wnr2) title('Restoration of Blurred, Noisy Image Using NSR = 0')
estimated_nsr = noise_var / var(I(:)); wnr3 = deconvwnr(blurred_noisy, PSF, estimated_nsr); figure, imshow(wnr3) title('Restoration of Blurred, Noisy Image Using Estimated NSR');
Best Answer