90 likes | 247 Views
ENEE408G: Capstone Design Project: Multimedia Signal Processing Design Project 1: Digital Speech Processing. Outline. Matlab Assignment – Common Mistakes Matlab Programming Tasks Announcement. Matlab Assignment – Common Mistakes. Wrong Names:
E N D
ENEE408G: Capstone Design Project: Multimedia Signal Processing Design Project 1: Digital Speech Processing ENEE408G Fall 2005 Multimedia Signal Processing
Outline • Matlab Assignment – Common Mistakes • Matlab Programming Tasks • Announcement ENEE408G Fall 2005 Multimedia Signal Processing
Matlab Assignment – Common Mistakes • Wrong Names: • Avoid using names of Matlab built-in functions to name for your functions or scripts • Problem 1: • Use 8 bits to quantize the hidden message Z • Z = Z/power(2, 8-1) – 1; • sound(Z, fs, 8); • Initialize Z before using for loop • Z = zeros(1, N/8); or Z= zeros(N/8,1); ENEE408G Fall 2005 Multimedia Signal Processing
Matlab Assignment – Common Mistakes • Problem 2 and 3: • Convert uint8 (unsigned 8-bit integers) to double (double-precision) • Im = imread(‘Girl.bmp’); Im = double(Im); • Im = double(imread(‘Girl.bmp’)); • Initialize before using for loop for summation • [H,W] = size(Im); Im_new = zeros(H,W); • Im_new = zeros(size(Im)); • Work on the whole array (vectors, matrices,…) instead of on the individuals (elements). ENEE408G Fall 2005 Multimedia Signal Processing
Matlab Programming Tasks • Two types of Matlab programs: function or script • Scripts do not accept input arguments or return output arguments. They operate on data in the workspace. • Functions can accept input arguments and return output arguments. Internal variables are local to the function. • Example: Im = imread(‘Girl.bmp’); • Should write functions for Matlab programming tasks • [wq, Tq, Gq] = lpcencoder(filename, L, fr, fs); ENEE408G Fall 2005 Multimedia Signal Processing
Matlab Programming Tasks • A clear program structure with components: • Show the understanding about the implemented system • Easy to integrate the components together between group members • Example: In JPEC_encoder.m • Member1: ImY_DCT = DCT_transformer(ImY, N); • Member1: ImY_Q = quantizer(ImY_DCT, N, comp_factor); ENEE408G Fall 2005 Multimedia Signal Processing
Announcement • Office Hours: • Time: 5pm – 7pm on Wednesday • Place : Jasmine Lab • Design project 1 [S] Report: • Submit to your group’s folder in ECELABS File server • Deadline: 09/30 (next Friday). • 8:45am for section 0101 and • 1:45pm for section 0102 ENEE408G Fall 2005 Multimedia Signal Processing
Announcement • Next Friday (09/30/2005) • Check in : Pocket PC • Bring your own microphone, earphone, and converter. • Today: Test your Pocket PC programs for the current projects. ENEE408G Fall 2005 Multimedia Signal Processing