Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/http://creativecommons.org/licenses/by-nc-

Slides:



Advertisements
Similar presentations
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Advertisements

2/18/2008ITK 1681 Feb. 20, Wed. 8:00 – 9:30 pm STV Closed book, notes, and no computer is allowed. 2.Everyone is allowed to bring a self- prepared.
First Bytes - LabVIEW. Today’s Session Introduction to LabVIEW Colors and computers Lab to create a color picker Lab to manipulate an image Visual ProgrammingImage.
CSE 8A Lecture 8 Reading for next class: None Prepare for In-term exam 2 PSA4: Collage and Picture Flip, DON’T WAIT (it’s longer than the previous PSAs)
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Image Processing & Perception Sec 9-11 Web Design.
NestedLoops-part11 Nested Loops – part 1 Barb Ericson Georgia Institute of Technology Nov 2009.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
CSC1401 Viewing a picture as a 2D image - 1. Review from the last week We used a getPixels() to get all of the pixels of a picture But this has been somewhat.
CSE8A Lecture3 TODO: –Finish PSA1 individually (no partner!) and turn it in with the bundlePSA1 command GET AN INTERVIEW for PSA1 from a tutor See tutor.
Georgia Institute of Technology Movies part 5 Barb Ericson Georgia Institute of Technology April 2006.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
TOPIC 11 RETURNING VALUES FROM METHODS PICTURE TRANSFORMATIONS 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
February ,  2/16: Exam 1 Makeup Papers Available  2/20: Exam 2 Review Sheet Available in Lecture  2/27: Lab 2 due by 11:59:59pm  3/2:
CPSC1301 Computer Science 1 Chapter 4 Manipulating Pictures, Arrays, and Loops part 5.
Conditionals-part41 Conditionals – part 4 Barb Ericson Georgia Institute of Technology Dec 2009.
CSC1401 Using Decisions in Java - 1. Recall from Alice We only wanted to shoot a lightning bolt at a philosopher So, we used the If statement.
Conditionals-part21 Conditionals – part 2 Barb Ericson Georgia Institute of Technology Nov 2009.
TOPIC 10 THE IF STATEMENT 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson,
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Probability Lesson 7: Mutually Exclusive Events I.B. Standard Bell Ringer Bin A contains 3 red and 2 white tickets. Bin B contains 4 red and 1 white tickets.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
CSE 8A Lecture 13 Reading for next class: Chapter 9 Today’s topics: –Sounds! Finish PSA 6: Chromakey! DUE TUESDAY Interm exam 3 next Thursday.
Conditionals-Mod8-part21 Conditionals – part 2 Edge Detection Barb Ericson Georgia Institute of Technology May 2007.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
CSE8A Lecture 5 TODO: –FINISH PSA2 WITH YOUR PARTNER! Read next class: Section 5.1. PLAY WITH CODE! –Get stuck, then figure out how to get unstuck – it’s.
TOPIC 8 MORE ON WHILE LOOPS 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson,
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Chemistry PODs POD # 41 10/12/2015 Write your first and last name and today’s date in the upper right hand corner of your paper. Fold your paper.
Georgia Institute of Technology Two-Dimensional Arrays and Nested Loops – part 2 Barb Ericson Georgia Institute of Technology August 2005.
AT THE START OF CLASS -- You should HAVE OUT: u 1. PENCIL, ERASER, and Calculator. u 2. LAST NIGHT’S HOMEWORK. u 3. Mathbook and paper.  PLEASE BE QUIET.
Barbara Ericson Georgia Tech Sept 2005
Photosynthesis Lab: Capture of Light Energy
CS 1430: Programming in C++ No time to cover HiC.
Creative Commons Attribution Non-Commercial Share Alike License
Topic 10 The if statement Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson,
Make sure you know your 3-digit Student Class I.D. number for Math.
Barb Ericson Georgia Institute of Technology August 2005
Two-Dimensional Arrays and Nested Loops – part 1
Barb Ericson Georgia Institute of Technology August 2005
Two-Dimensional Arrays and Nested Loops – part 1
Georgia Institute of Technology
Workshop for Programming And Systems Management Teachers
CSE 8A Lecture 6 Reading for next class:
Creative Commons Attribution Non-Commercial Share Alike License
Two-Dimensional Arrays and Nested Loops – part 2
Georgia Institute of Technology
What Color is it?.
Digital Image Processing
Creative Commons Attribution Non-Commercial Share Alike License
February , 2009 CSE 113 B.
Creative Commons Attribution Non-Commercial Share Alike License
Nested Loops Circles inside Circles
CS150 Introduction to Computer Science 1
Introduction to Programming in MATLAB
QUIZ 5 – RESULT.
CS November 2010 Developing array algorithms. Reading:
Nested Loops Circles inside Circles
Today’s agenda ~10min: file system (UNIX) ~1hr: final review + Q&A
CSC1401 Manipulating Pictures 2
Lecture 23 – Practice Exercises 5
Presentation transcript:

Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/ sa/3.0/ Original Developer: Beth Simon, 2009

CSE8A Lecture 16 Read next class: read pg and CHAPTER 8: Get your clicker back up front! Midterm! BRING RED SCANTRON! –Covers material through today –Review session with Leo Tues 7-8:30pm location TBD –Sample midterm posted by tomorrow 7am: Use learning goals to know what I care about Redo: clicker questions, quizzes, lab quizzes, (75-80% ish Multi choice Be able to WRITE CODE ON PAPER (like your PSAs) –35 min individual (90%), 15 min group (10%)

By the end of today’s class you should be able to… LG34: Compare and contrast two solutions to a problem using for loops and if statements LG35: Be able to identify which pixels you want to check for chromakey

Honorable Mentions:

Best of Show

Quiz 4 Review/Midterm Review How would you call and display the flipped Picture? Picture changed = new Picture(p); p.mystery(changed); changed.show(); Picture changed = new Picture(); p.mystery(changed); changed.show(); Picture changed = new Picture(p); changed.mystery(p); changed.show(); Picture changed = new Picture(); changed.mystery(p); changed.show();

In Lab 5: How many times is the red line below executed? public void makeConvict() { for (int x = 0; x < this.getWidth(); x++) { for (int y = 0; y < this.getHeight(); y++) { Pixel currentPix = this.getPixel(x,y); if ( (currentPix.getGreen() > 200) && (y%2==0)) { currentPix.setColor(Color.BLACK); } else if( (currentPix.getGreen() > 200) && y%2 == 1) { currentPix.setColor(Color.WHITE); } A.width * height / 2 B.width * height C.width * height * 2 D.width * height * 1.5 E.Depends on the color of the Pixels in the picture REVIEW

In Lab 5: How many times is the red line below executed? public void makeConvict() { for (int x = 0; x < this.getWidth(); x++) { for (int y = 0; y < this.getHeight(); y++) { Pixel currentPix = this.getPixel(x,y); if ( (currentPix.getGreen() > 200) && (y%2==0)) { currentPix.setColor(Color.BLACK); } else if( (currentPix.getGreen() > 200) && y%2 == 1) { currentPix.setColor(Color.WHITE); } A.width * height / 2 B.width * height C.width * height * 2 D.width * height * 1.5 E.Depends on the color of the Pixels in the picture

In Lab 5: Which of these statements is true? public void makeConvict() { for (int x = 0; x < this.getWidth(); x++) { for (int y = 0; y < this.getHeight(); y++) { Pixel currentPix = this.getPixel(x,y); if ( (currentPix.getGreen() > 200) && (y%2==0)) { currentPix.setColor(Color.BLACK); } else if( (currentPix.getGreen() > 200) && y%2 == 1) { currentPix.setColor(Color.WHITE); } A.The red line of code is executed the same number of times as the purple line of code B.The red line of code is executed more times than the purple line of code C.The red line of code is executed fewer times than the purple line of code D.The relationship depends on the specific Picture that this code is run on

Original make convict bird: If it’s a green pixel AND it’s an even indexed row, make it black Else If it’s a green pixel AND it’s an odd indexed row, make it white If it’s a green pixel –If it’s an even indexed row, make it black –Else make it white Better version: Test Common Element Once Take advantage of “mutually exclusive”