1 Lab of COMP 319 Lab tutor : Yao Zhang, Shenghua ZHONG Lab 4: Nov 30, 2011 Final Project: Image Compression.

Slides:



Advertisements
Similar presentations
CSc 2310 Principles of Programming (Java)
Advertisements

Introduction to Matlab & Data Analysis
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
Functions.
A Brief Introduction to MATLAB Shibaji Shome and Rob MacLeod CVRTI University of Utah.
Get number The ginput command creates crosshairs. When the user clicks the x,y values of the crosshairs are returned.
Extra Notes for Assignment 1 – Salary Tax Run the sample program –The program executable can only be executed on CSLINUX machines (linux platform only)
Introduction to programming in MATLAB MATLAB can be thought of as an super-powerful graphing calculator Remember the TI-83 from calculus? With many more.
EPSII 59:006 Spring Topics Using TextPad If Statements Relational Operators Nested If Statements Else and Elseif Clauses Logical Functions For Loops.
Matlab tutorial course Exercises 2:. Exercises Copy the script ‘face_points.m’ from my webpage into your ‘scripts’ folder Create a new folder in your.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
Accessing & Submitting Homework myitlab Microsoft Office Professional 1 CSP 1203.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Submitting your work online This is a two stage process 1.First you need to add your submission to Moodle, this is usually done by uploading one or more.
StAR web server tutorial for ROC Analysis. ROC Analysis ROC Analysis: This module allows the user to input data for several classifiers to be tested.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Numerical Computation Lecture 2: Introduction to Matlab Programming United International College.
Chapter 9: MuPAD Programming II Procedures MATLAB for Scientist and Engineers Using Symbolic Toolbox.
CSC350: Learning Management Systems COMSATS Institute of Information Technology (Virtual Campus)
1 Lab 2 of COMP 319 Lab tutor : Shenghua ZHONG Lab 2: Sep. 28, 2011 Data and File in Matlab.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Quiz Me Tutorial. Introduction QuizMe is a trivia game (the example uses baseball) you can use as a template to build quizzes on any topic. The user steps.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Advanced Topics- Functions Introduction to MATLAB 7 Engineering 161.
Scientific Computing Introduction to Matlab Programming.
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Covenant College November 27, Laura Broussard, Ph.D. Professor COS 131: Computing for Engineers Chapter 5: Functions.
Recap Saving Plots Summary of Chapter 5 Introduction of Chapter 6.
Lesson 3 - The Entry Box.. Last week We produced a Tkinter window with a label and a button Now we are going to create a new program that creates a Button.
Hints on debugging
CENG 476 Projects 2014 (10’th November 2014) 1. Projects One problem for each student One problem for each student 2.
Recap Functions with No input OR No output Determining The Number of Input and Output Arguments Local Variables Global Variables Creating ToolBox of Functions.
Math 010 online work that was due today at the start of class: Section 1.3A Online Homework.
1 ASSIGNMENT OBJECTIVES LEARN TO USE: 1. Textboxes, labels, buttons, picture boxes, properties, and methods 2.Arithmetic computations 3.Variables and constants.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Fundamentals of Physics I. Download the following files: Syllabus All the documents are available at the website:
ENG College of Engineering Engineering Education Innovation Center 1 Functions 1 in MATLAB Topics Covered: 1.Uses of Functions Organizational Tool.
Homework 1 (due:April 8th) Deadline : April 8th 11:59pm Where to submit? eClass “ 과제방 ” ( How to submit? Create a folder. The name.
1 Project 3: Farey Sequences. 2 Farey Sequences Further details about Farey sequences, and more examples, can be found in the Wikipedia article:
CSC 1201 LAB RULES Nouf Aljaffan (C) CSC 1201 Course at KSU.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Lab 9 Exercises.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
1 Project 4: Palindrome Detector. 2 Assignment Write a C++ program that reads a line of text from the keyboard and reports to the user whether the text.
1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.
Introduction to Programming
Homework 3 (due:May 27th) Deadline : May 27th 11:59pm
Introduction to Programming
Basic operations in Matlab
Homework 3 (due:June 5th)
Scripts & Functions Scripts and functions are contained in .m-files
Lab 01 - Grades.
User Defined Functions
Using AMOS With SPSS Files.
Introduction to Programming
M434/534 Numerical Linear Algebra MATLAB Tutorial Session (Fall 2010)
Programming in JavaScript
Introduction to Programming
ASSIGNMENT OBJECTIVES
Programming in JavaScript
Homework 2 (due:May 15th) Deadline : May 15th 11:59pm
Programming in JavaScript
Introduction to Programming
Introduction to Programming
Homework 2 (due:May 13th) Deadline : May 11th 11:59pm
Presentation transcript:

1 Lab of COMP 319 Lab tutor : Yao Zhang, Shenghua ZHONG Lab 4: Nov 30, 2011 Final Project: Image Compression with MATLAB

2 Outline of Lab 4  Some important reminders of final project  Some important steps and information of final project  How to debug the user defined function

3 Important reminders of final project 1.Deadline: Mon Dec. 15 at 23:59pm. Penalty for late submission Tue. Dec : :59 25% deduction Wed. Dec : :59 50% deduction Thu. Dec : :59 75% deduction After Dec :59 Zero point Please try your best to finish the project and submit it on time !

4 Important reminders of final project 2.There are only two functions should be and can be modified and submitted: Compress.m and Decompress.m. There is no need to submit a final project report. your personal compress.m and decompress.m functions will be scored by using the uniform main.m function, so submission of other functions or files is useless and unallowed.

5 Important reminders of final project 3.You can observe the MSE value and the compression ratio to check the performance of your functions. The MSE value and compression ratio will be given above your recovered image, you can check them according to the grading sample listed on the course’s webpage. The compression ratio should larger than 1, otherwise the score of your final project will be zero!

6 Important reminders of final project 4. The components in the matrixes orig_image, comp_image and reco_image should be the integers. The size of the reco_image should be same with the size of orig_image. Don't make any modification of the provided functions expect Compress.m and Decompress.m. Don't read the image file when you modify Compress.m and Decompress.m, otherwise, you will get zero point in the final project.

77 How to Debug User-Defined Function User-defined functions are stored as M-files. Each must start with a function definition line that contains  the word “function”,  one or several variables that defines the function output,  a function name, and  one or several variables used for the input argument.  Save the function as M-file using the same name in your function Some examples: function output = my_function(x) function [output1, output2] = my_function(x1,x2,x3) Hints: The function name and the names of the input and output variables are arbitrary and selected by the programmer, but the word “function” can not be changed.

88 Review of Lab 2 about User-Defined Function function output = poly(x) % This function calculates the value of a third-order % polynomial output = 3*x.^3+5*x.^2-2*x+1 Save above commands into an M-file and then type the below commands in command window to observe the results: >> a=4; >> poly(a) >> b=1:5; >> poly(b) comments

9 How to Debug User-Defined Function Compress.m, Decompress.m, and xxx.m except main.m are both user-defined function.Compress.m, Decompress.m, and xxx.m except main.m are both user-defined function. They like a black box (user only know the input and output parameters)They like a black box (user only know the input and output parameters) Debug is important to check whether the programms are correct.Debug is important to check whether the programms are correct.

10 The First Step to Debug User-Defined Function Set breakpoint at the line of the Entry to the user-defined function in the main.m

11 The Second Step to Debug User-Defined Function Run main.m to the Entry

12 The Third Step to Debug User-Defined Function Click Step in button and go into the user-defined function