February 23 - 27, 2009 CSE 113 B.

Slides:



Advertisements
Similar presentations
Programming in Processing Taught by Ms. Madsen Assistants: Ms. Fischer and Ms. Yen Winsor School, 2/13/08.
Advertisements

Conditionals-part31 Conditionals – part 3 Barb Ericson Georgia Institute of Technology Nov 2009.
Georgia Institute of Technology Movies part 3 Barb Ericson Georgia Institute of Technology April 2006.
Georgia Institute of Technology Manipulating Pictures, Arrays, and Loops part 1.
CSE 113 Week 5 February , Announcements  Module 2 due 2/15  Exam 3 is on 2/15  Module 3 due 2/22  Exam 4 is on 2/25  Module 4 due 2/29.
Color (1) Turtle class contains a method to change the pen color Note: before using Color class, you should add following line in the top of the source.
Manipulating 2D arrays in Java
Conditionals-part11 Barb Ericson Georgia Institute of Technology Nov 2009.
Georgia Institute of Technology Movies part 5 Barb Ericson Georgia Institute of Technology April 2006.
ManipulatingPictures-Mod6-part11 Manipulating Pictures, Arrays, and Loops part 1 Barb Ericson Georgia Institute of Technology.
NestedLoops-Mod7-part31 Two-Dimensional Arrays and Nested Loops – part 3 Bugs in the garden Originally by Barb Ericson Georgia Institute of Technology.
ManipulatingPictures-Mod6-part61 Manipulating Pictures, Arrays, and Loops: Eliminating color, Inversion, grey scale and adjusting for luminance Barb Ericson.
TOPIC 5 INTRODUCTION TO PICTURES 1 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B.
Picture Lab. Manipulating Pictures Discussion and activities with java.awt.Color introduce students to megapixels, pixels, the RGB color model, binary.
If you say 8 color the ones in your picture purple. If you say 9 color the ones in your picture blue.
Day 8: Fruit Loops: Color. Loop Review What does the following loop print? for (int i= 0; i
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:
Conditionals-part41 Conditionals – part 4 Barb Ericson Georgia Institute of Technology Dec 2009.
Conditionals-Mod8-part41 Conditionals – part 4 Replace background Barb Ericson Georgia Institute of Technology May 2007.
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.
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,
ITEC 109 Multimedia Lecture Lecture 23. Photo manipulation Review Lists / Arrays.
Georgia Institute of Technology What is new in Java 5.0 (1.5)? Barb Ericson Georgia Institute of Technology June 2006.
FRACTIONS & SHAPES BY:. How many of these are colored red? * out of *.
Copyright © Curt Hill Further Picture Manipulation Considering position.
Conditionals-Mod8-part21 Conditionals – part 2 Edge Detection Barb Ericson Georgia Institute of Technology May 2007.
Python: Working with pixels. Reminder: Conditionals if age < 18: showInformation(“Sorry, not allowed to vote yet.”) else: showInformation(“Please select.
ManipulatingPictures-part31 Manipulating Pictures, Arrays, and Loops part 3 Barb Ericson Georgia Institute of Technology Nov 2009.
WELCOME TO HANDS-ON MATHS
Image Processing CS177.
Barb Ericson Georgia Institute of Technology Dec 2009
Topic 10 The if statement Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson,
Georgia Institute of Technology
Barb Ericson Georgia Institute of Technology August 2005
Chemical or Physical Change.
Georgia Institute of Technology
Georgia Institute of Technology
3D Color Wheels Fall 2018.
Barb Ericson Georgia Institute of Technology August 2005
Barb Ericson Georgia Institute of Technology August 2005
Workshop for Programming And Systems Management Teachers
Name: _______________________________
Workshop for Programming And Systems Management Teachers
Lab 7 – cranberry color change
CSE 113 A January 26 – 30, 2009.
Two ways to discuss color 1) Addition 2) Subtraction
Color Visualization in Matlab
Barb Ericson Georgia Institute of Technology June 2006
CSE 113 A February , 2009.
Can I color yellow?. Can I color yellow?
Open up your laptops, go to MrHyatt.rocks, and do today’s Bellwork
CS150 Introduction to Computer Science 1
Georgia Institute of Technology
Manipulating Pictures, Arrays, and Loops
What Color is it?.
January 26 – 30, 2009 CSE 113 B.
Manipulating Pictures, Arrays, and Loops part 6
Creative Commons Attribution Non-Commercial Share Alike License
Chapter 6 Conditionals - part 4
CSIS110 - Introduction to Computer Science
February , 2009 CSE 113 B.
Barb Ericson Georgia Institute of Technology May 2006
CSE 115 September 12, 2008.
February , 2009 CSE 113 B.
Word Work List ____________ Name____________
Barb Ericson Georgia Institute of Technology April 2006
1. Get your bubble lab 2. Flip to the graph
Manipulating Pictures, Arrays, and Loops part 6
Presentation transcript:

February 23 - 27, 2009 CSE 113 B

Announcements 2/27: Go over Exam 2 Review Sheet 2/27: Lab 2 due by 11:59:59pm 3/2: Exam 2 3/4: Go over Exam 2 3/6: Exam 2 Makeup

Remove all the red from a picture public void removeRed() { for(int x = 0; x < _p.getWidth(); x++) { for(int y = 0; y < _p.getHeight(); y++) { Pixel pixel = _p.getPixel(x, y); // Simply set the red component of each // pixel to 0. pixel.setRed(0); }

Create the negative of a picture public void createNegative() { for(int x = 0; x < _p.getWidth(); x++) { for(int y = 0; y < _p.getHeight(); y++) { Pixel pixel = _p.getPixel(x, y); // Create a new red value that is // 255 - current red value int redValue = 255 - pixel.getRed(); // Create a new green value that is // 255 - current green value int greenValue = 255 - pixel.getGreen(); // Create a new blue value that is // 255 - current blue value int blueValue = 255 - pixel.getBlue();

Create the negative of a picture (cont.) // Create a new color based on our new red, green, // and blue values java.awt.Color newColor = new java.awt.Color (redValue,greenValue,blueValue); // Set the color of the pixel to that new color pixel.setColor(newColor); }

Wednesday & Friday Class Wednesday: In-class exercise on loops Friday: Go over Exam 2 Review Sheet (Answers posted online)