EE369C: Assignment 1

Similar documents
ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

E E Introduction to Wavelets & Filter Banks Spring Semester 2009

Digital Image and Fourier Transform

Upgrading E-learning of basic measurement algorithms based on DSP and MATLAB Web Server. Milos Sedlacek 1, Ondrej Tomiska 2

Problem Set #1 Problem Set Due: Friday, April 12

Technical Specifications

colors AN INTRODUCTION TO USING COLORS FOR UNITY v1.1

Lab 5 Linear Predictive Coding

A Parametric Autoregressive Model for the Extraction of Electric Network Frequency Fluctuations in Audio Forensic Authentication

AN INTEGRATED MATLAB SUITE FOR INTRODUCTORY DSP EDUCATION. Richard Radke and Sanjeev Kulkarni

Transform Coding of Still Images

Realizing Waveform Characteristics up to a Digitizer s Full Bandwidth Increasing the effective sampling rate when measuring repetitive signals

Handout 1 - Introduction to plots in Matlab 7

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

Ocean bottom seismic acquisition via jittered sampling

Extraction Methods of Watermarks from Linearly-Distorted Images to Maximize Signal-to-Noise Ratio. Brandon Migdal. Advisors: Carl Salvaggio

Chapter 27. Inferences for Regression. Remembering Regression. An Example: Body Fat and Waist Size. Remembering Regression (cont.)

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

QSched v0.96 Spring 2018) User Guide Pg 1 of 6

A Parametric Autoregressive Model for the Extraction of Electric Network Frequency Fluctuations in Audio Forensic Authentication

UNIVERSAL SPATIAL UP-SCALER WITH NONLINEAR EDGE ENHANCEMENT

Note: Please use the actual date you accessed this material in your citation.

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

Adaptive Resampling - Transforming From the Time to the Angle Domain

MUSC 1331 Lab 1 (Sunday Class) Basic Operations and Editing in Performer. Quantization in Performer

Integer Chips. Explore Mode. In this tool, you can model and solve expressions using integer chips.

Investigation of Digital Signal Processing of High-speed DACs Signals for Settling Time Testing

Experiment 2: Sampling and Quantization

Module 2 :: INSEL programming concepts

A Matlab toolbox for. Characterisation Of Recorded Underwater Sound (CHORUS) USER S GUIDE

A Novel Approach towards Video Compression for Mobile Internet using Transform Domain Technique

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

AP Statistics Sec 5.1: An Exercise in Sampling: The Corn Field

PS User Guide Series Seismic-Data Display

The Effect of Plate Deformable Mirror Actuator Grid Misalignment on the Compensation of Kolmogorov Turbulence

Session 1 Introduction to Data Acquisition and Real-Time Control

Moving on from MSTAT. March The University of Reading Statistical Services Centre Biometrics Advisory and Support Service to DFID

SHF Communication Technologies AG,

MULTI-STATE VIDEO CODING WITH SIDE INFORMATION. Sila Ekmekci Flierl, Thomas Sikora

United States Patent: 4,789,893. ( 1 of 1 ) United States Patent 4,789,893 Weston December 6, Interpolating lines of video signals

NON-UNIFORM KERNEL SAMPLING IN AUDIO SIGNAL RESAMPLER

Datasheet SHF A

CMPT 365 Multimedia Systems. Mid-Term Review

DIRECT DIGITAL SYNTHESIS AND SPUR REDUCTION USING METHOD OF DITHERING

The Measurement Tools and What They Do

ECE438 - Laboratory 1: Discrete and Continuous-Time Signals

Part 1: Introduction to Computer Graphics

Exercise 4. Data Scrambling and Descrambling EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION. The purpose of data scrambling and descrambling

ANALYSIS OF ERRORS IN THE CONVERSION OF ACCELERATION INTO DISPLACEMENT

From Fourier Series to Analysis of Non-stationary Signals - X

Single Channel Speech Enhancement Using Spectral Subtraction Based on Minimum Statistics

ONE SENSOR MICROPHONE ARRAY APPLICATION IN SOURCE LOCALIZATION. Hsin-Chu, Taiwan

Region Adaptive Unsharp Masking based DCT Interpolation for Efficient Video Intra Frame Up-sampling

DATA COMPRESSION USING THE FFT

EndNote for Mac. EndNote for PC. User Guide. UTS Library University of Technology Sydney UTS CRICOS PROVIDER CODE 00099F

Digital music synthesis using DSP

MindMouse. This project is written in C++ and uses the following Libraries: LibSvm, kissfft, BOOST File System, and Emotiv Research Edition SDK.

International Journal of Engineering Research-Online A Peer Reviewed International Journal

Streamcrest Motion1 Test Sequence and Utilities. A. Using the Motion1 Sequence. Robert Bleidt - June 7,2002

Politecnico di Torino HIGH SPEED AND HIGH PRECISION ANALOG TO DIGITAL CONVERTER. Professor : Del Corso Mahshid Hooshmand ID Student Number:

Steganographic Technique for Hiding Secret Audio in an Image

Appendix D. UW DigiScope User s Manual. Willis J. Tompkins and Annie Foong

Error Resilience for Compressed Sensing with Multiple-Channel Transmission

DHANALAKSHMI COLLEGE OF ENGINEERING Tambaram, Chennai

Quick Guide Book of Sending and receiving card

06-Inverse Theory. February 28, 2018

DATA! NOW WHAT? Preparing your ERP data for analysis

Digital Audio: Some Myths and Realities

Classical simulations with PJNMR BCMB/CHEM LAB 01/25/12

PRBS non-idealities affecting Random Demodulation Analog-to-Information Converters

Analyzing Modulated Signals with the V93000 Signal Analyzer Tool. Joe Kelly, Verigy, Inc.

EE 261 The Fourier Transform and its Applications Fall 2007 Problem Set Two Due Wednesday, October 10

The following exercises illustrate the execution of collaborative simulations in J-DSP. The exercises namely a

WYNER-ZIV VIDEO CODING WITH LOW ENCODER COMPLEXITY

MATLAB Basics 6 plotting

OPERATING GUIDE. HIGHlite 660 series. High Brightness Digital Video Projector 16:9 widescreen display. Rev A June A

Design of Speech Signal Analysis and Processing System. Based on Matlab Gateway

USING MATLAB CODE FOR RADAR SIGNAL PROCESSING. EEC 134B Winter 2016 Amanda Williams Team Hertz

Design and analysis of non-uniform rate digital controllers

Case study: how to create a 3D potential scan Nyquist plot?

Chapter 40: MIDI Tool

Research on sampling of vibration signals based on compressed sensing

Pre-processing of revolution speed data in ArtemiS SUITE 1

Pre-Processing of ERP Data. Peter J. Molfese, Ph.D. Yale University

Module 3: Video Sampling Lecture 17: Sampling of raster scan pattern: BT.601 format, Color video signal sampling formats

Exercise #1: Create and Revise a Smart Group

Practical Bit Error Rate Measurements on Fibre Optic Communications Links in Student Teaching Laboratories

/$ IEEE

Benefits of the R&S RTO Oscilloscope's Digital Trigger. <Application Note> Products: R&S RTO Digital Oscilloscope

AP Statistics Sampling. Sampling Exercise (adapted from a document from the NCSSM Leadership Institute, July 2000).

Comprehensive Citation Index for Research Networks

Avocet Remote II, D/A information about the changes. Jan 18, 2013 rev1

Hugo Technology. An introduction into Rob Watts' technology

Torsional vibration analysis in ArtemiS SUITE 1

Topic 11. Score-Informed Source Separation. (chroma slides adapted from Meinard Mueller)

Luma Adjustment for High Dynamic Range Video

The Effect of Time-Domain Interpolation on Response Spectral Calculations. David M. Boore

Robert Alexandru Dobre, Cristian Negrescu

Transcription:

EE369C Fall 17-18 Medical Image Reconstruction 1 EE369C: Assignment 1 Due Wednesday, Oct 4th Assignments This quarter the assignments will be partly matlab, and partly calculations you will need to work out by hand. I encourage you to typeset your solutions in LaTeX. Convert the output to a pdf file, turn it is as described below. Your solution is due sometime the night of the due date. I will put the late source code on the web site, so you can splice your answers directly in. This is a nice way to keep the problems and the solutions together. A good introduction and reference for LaTeX is the original book, available in the bookstore, or online here: http://en.wikibooks.org/wiki/latex Links for popular Mac and PC distributions are available on the course web site, on the assignments page. One approach for your matlab plots is to generate the figure, and then use the command line >> print -dpdf myplot.pdf This makes sure you don t have a rasterized image. This will be centered on a full page, so use a pdf viewer to trim it to fit. On a mac, Preview does this. First select the plot with the select tool, the use the crop command, found under the Tools menu. You can add annotation in matlab if you d like, or another program. The default matlab plot linewidth is.5 pt, which almost disappears. You can change this in the plot window by choosing Aes Properties under the Edit menu. Click on the line you want to change, and you ll get a set of controls to change the width, color, and other properties. A width of two points shows up well. For the matlab problems, if you are asked to write an mfile, include the code in your solution. This will probably be very short. Include the requested plots, along with the listing of how the plot was generated. Use subplots to save paper. Turning in Your Assignment Email me your solutions. Include your name, the assignment number, and the course number in the subject line. For eample, I would include Subject: John Pauly, Assignment 1, EE369C That way I can easily find your assignments, and keep track of them. Introduction This assignment concerns sampling and reconstruction of band limited signals. We ll start with a simple signal that will be important in about two weeks. Define the sampled sequence by >> d = [zeros(1,1) [1:-1:1] [1:1] zeros(1,1)] >> = [-:]; and the plot it >> subplot(11) % makes it fit better in your assignment >> stem(,d); >> label( ); >> print -dpdf plot1.pdf The result should look like Fig. 1.

15 1 5 5 1 15 15 1 s() 5 5 15 1 5 5 1 15 Figure 1: Stem plot of the test signal 1. Sinc Interpolation The first task it to write an m-file to perform sinc interpolation on a sampled signal. We will take the test signal, and upsample by a factor of 1. We will consider this to be the gold standard, the signal we will try to recover in the subsequent problems. Write an m-file function di = sinc_interp(d,,i) % % inputs % d -- uniformly sampled data points, spaced by 1 % -- uniform sample locations % i -- locations to evaluation for the sinc interpolation % outputs % di -- since interpolated values at locations i The matlab sinc() function is useful here, it takes a vector and returns a vector sinc(). We will assume that the uniform sample spacing is 1 for convenience. Then, define a fine grid to use for evaluation >> i = [-:.1:]; >> di = sinc_interp(d,,i); >> subplot(11); >> plot(i,di); hold; >> stem(,d) >> print -dpdf plot.pdf The result should look something like Fig.. Include your m-file, and your plot in your assignment. Non-Uniform Sampling Net, we will look at the case where the sampling is not uniform. In class we set this up as a matri equation. If we knew the uniform samples, we could sinc interpolate to solve for the nonuniform samples M ( ) n m s( n ) = s( m ) sinc X m=1

3 1 1 8 s() 6 4 15 1 5 5 1 15 15 Figure : Original data, and the sinc interpolation. s() 1 where n are the nonuniform samples, and m are the uniform samples. The matri equation was then 5 s n = Es u were s n is an N length vector of the non-uniform samples, and s u is an M length vector of the uniform samples, and E is a matri of the sinc coefficients. We can solve for the uniform samples 5 with the pseudo inverse 15 1 5 5 1 15 s u = (E E) 1 E s n Write an m-file that does this. Note that in matlab, you can perform this operation more quickly and accurately using the \ operator. function du= sinc_resample(dn,n,u) % % inputs % dn -- non-uniformly sampled data points % n -- non-uniform sample locations % u -- uniform sample points, spaced by 1 % outputs % du-- uniformly sampled data Again, for convenience, assume the uniform sample spacing is 1, and that this corresponds to the Nyquist rate for the underlying signal. Include a listing of your m-file. To test this, we ll look at two test cases to see how this works.. Bunched Samples the first eample is of bunched samples. We will generate the bunched sample data by subsampling our sinc interpolated data. Generate the data and plot it, >> db = [di(3::end) di(8::end)] >> b = [i(3::end) i(8::end)] >> stem(b,db); >> plot(i,di) The samples aren t in order, but you can sort them if you d like. This should look like Fig. 3. Use your m-file to see if you can recover the original samples (Fig. 1) from the bunched samples. There

4 1 1 8 6 4 15 1 5 5 1 15 Figure 3: Bunched samples, and the original sinc interpolation. Note that we ve completely missed the peak ripple on the right. are only 4 samples in db and 41 in d, so this problem is underdetermined. You can use only 4 samples of d, or use the matlab \ operator which does the right thing here. Include a plot of the uniformly sampled data. With any luck, it should look like Fig. 1. 3. Random Samples In the case of bunched sampling, there are actually eplicit solutions for the interpolators (See The Fourier Transform and its Applications by Ron Bracewell for one derivation). It gets more interesting with random samples, in which case each sample has its own unique interpolator. This is what we will look at net. First, we need to generate random samples. We ll choose random samples from the sinc interpolated signal >> nd = unique(randi(length(di),1,5)); >> dr = di(nd); >> r = i(nd); >> stem(r,dr) >> plot(i,di) The unique() function sorts nd, and removes duplicates. Make sure that you have at least 41 samples left! If not, generate another set of points. Include your plot. See if you can recover the uniform samples from this data. 4. Interpolators We can generate what the interpolators look like for your specific random pattern by using an impulse input. For eample, for the 15th sample, we generate an input >> dp15 = zeros(1,length(dr)); >> dp15(15) = 1; >> dp15u = sinc_resample(dp15,r,) This gives us the uniformly sampled values for this interpolator, which we can then sinc interpolate and plot. >> stem(r,ones(1,length(r)) >> plot(i,sinc_interp(dp15u,,i))

5 This compares the interpolator for the 15th sample to impulses at all of the random samples. Pick a couple of interesting samples, and plot the results. Do they do what you epect? There are only two interpolators for the bunched samples case. Make a plot showing any two of these, along with the stem plot of the sample locations, as we did above for the random samples. 5. Signal Noise and Sample Timing Jitter Physical systems cannot sample a signal perfectly. We will consider the effect of error in the sampled values (noise) and in the sampling time (jitter). First we will consider sample noise. Add noise (stdev =.5) to the randomly spaced samples. How good is the reconstruction if there are 5 samples, as in the previous section? drn = dr +.5*randn(size(dr)); du = sinc_resample(drn,r,); figure, plot(i,di); % ground truth hold; stem(, du); % uniform samples plot(r,drn, r. ); % random samples, with noise Does doubling the number of samples to 1 samples help? Do this by adding another 5 random samples. Include plots in your report to support your conclusion. Now consider the effect of uncertainty in the timing of the sampling. Add an error of stdev =.5. How good is the reconstruction if there are 5 samples? rn = r +.5*randn(size(r)); du = sinc_resample(dr,rn,); figure, plot(i,di); % ground truth hold; stem(, du); % uniform samples plot(rn,dr, r. ); % random samples, with jitter Does doubling the number of samples to 1 samples help here? Again, include plots to support your conclusion.