lab 3 - % optimal deblurring length is 340 % h =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 101 - Linear Systems, Winter 2009 Lab # 3 Solutions (send comments/questions to kquest@ucsd.edu) n = 340 200 400 600 100 200 300 400 500 600 n = 140 200 400 600 100 200 300 400 500 600 n = 540 200 400 600 100 200 300 400 500 600 n = 0 200 400 600 100 200 300 400 500 600 The length for“deblurring” is 340. Incorrect values result in overlaid images, resulting in a smear for the original picture. The portrait is of Colin Powell, former Chairman of the Joint Chiefs of Staff as well as the former Secretary of State. The code for producing the figures is found below. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
% lab 3, ECE101, Winter, 2009 clear all load -mat lab3.mat % % Plot for a deblurring length of 340, 140, 540, and 0
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % optimal deblurring length is 340 % h = diag_matrix(340,693); hi = inv(h'); pic1 = pic*hi; subplot(2,2,1);image(pic1); colormap(map); axis image ; title( 'n = 340' ); h = diag_matrix(140,693); hi = inv(h'); pic1 = pic*hi; subplot(2,2,2);image(pic1); colormap(map); axis image ; title( 'n = 140' ); h = diag_matrix(540,693); hi = inv(h'); pic1 = pic*hi; subplot(2,2,3);image(pic1); colormap(map); axis image ; title( 'n = 540' ); subplot(2,2,4);image(pic); colormap(map); axis image ; title( 'n = 0' );...
View Full Document

This note was uploaded on 02/24/2010 for the course ECE ECE25 taught by Professor Bill lin during the Spring '09 term at UCSD.

Page1 / 2

lab 3 - % optimal deblurring length is 340 % h =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online