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

Slides:



Advertisements
Similar presentations
Assessment Photo Album
Advertisements

Digital Images in Java Java’s imaging classes. Java imaging library  Java has good support for image processing  Must master a handful of classes and.
1 RTL Example: Video Compression – Sum of Absolute Differences Video is a series of frames (e.g., 30 per second) Most frames similar to previous frame.
Lesson Plan - APP Probability Mental and Oral Starter Pupils to revisit the never heard the word grid to check their understanding of the key words. Main.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
PICT Innovations Assessment Rhetoric and Writing Studies 100 January 10, 2006 Maureen Sipp Peter Manley Liane Bryson.
Aim: Use the given examples to record examples and our own ideas in our journal 1.Write technical examples in journal and/or participate in full.
Writing a website article to give advice
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
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.
CIS101 Introduction to Computing Week 12 Spring 2004.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Making Clickers Work for You Dr. Stephanie V. Chasteen & Dr. Steven Pollock Workshop developed.
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/
CS 106 Introduction to Computer Science I 03 / 19 / 2007 Instructor: Michael Eckmann.
Copyright © 2009 Curt Hill The Picture Object Getting and displaying.
Pictures Looping through pixels.. Lab Review (1) Objects  Instantiated from Class  Turtle myTut = new Turtle(myWorld);  new operator creates an instance.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 5: Software Design & Testing; Revision Session.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Do You Teach the Way They Learn? Presenter: Lisa Bathe Illinois Online Network.
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/
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Prepare an Asset List Project 4 Due date: Friday, September 24 th.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
CSE8A: Introduction to Programming in Java Fall 2012 Prof. Christine Alvarado cse8afall.weebly.com.
CS 106 Introduction to Computer Science I 10 / 29 / 2007 Instructor: Michael Eckmann.
CPSC1301 Computer Science 1 Chapter 8 Introduction to Processing Digital Sounds part 3.
Application Day: Branching Adventure.  Quiz  Let's look at the schedule  Branching Adventure - explanation  Branching Adventure – work time 2.
Conditional Statements.  Quiz  Hand in your jQuery exercises from last lecture  They don't have to be 100% perfect to get full credit  They do have.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Searching CSE 103 Lecture 20 Wednesday, October 16, 2002 prepared by Doug Hogan.
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.
CSE 8A Lecture 14 Reading for next class: None (INTERM EXAM #3) Today’s topics: –More Sounds! PSA 6 due tonight PSA 7 (sounds) due next Monday (11/19)
1.1: Objects and Classes msklug.weebly.com. Agenda: Attendance Let’s get started What is Java? Work Time.
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.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Big6 Research and Problem Solving Skills 6 th Grade Project Creating a Travel Brochure.
7 th Grade Big6 Project Assignment: Make a children’s informational book (It can be in graphic novel format or regular picture-book format)
Parent literacy workshop March 24, elements required for reading Phonemic awareness (hearing sounds in words) Phonics (letter sound relationship)
Lecture Wed Week 7 Midterm grades on gradesource – Graded out of 26 (free point) – Question 1 confusing – everyone gets full points – Solutions posted.
BIT116: Scripting Lecture 05
Getting and displaying
Week 2 - Wednesday CS 121.
Week 3 - Wednesday CS 113.
CSE 8A Lecture 17 Reading for next class: None (interm exam 4)
Creative Commons Attribution Non-Commercial Share Alike License
Bell-ringer: 5 minutes If waves of water ripple and intersect (cross), what could be the result? The waves fight each other and disappear c) The waves.
Understanding Your PSAT/NMSQT Results
Representing Images 2.6 – Data Representation.
The Five Stages of Writing
CSE 8A Lecture 6 Reading for next class:
RAG Starter Activity Complete the ‘Heard the Word Grid.’
Bell-ringer: 5 minutes If waves of water ripple and intersect (cross), what could be the result? The waves fight each other and disappear c) The waves.
YOUR APP NAME MY APP IS GR8 MORE TEXT FEATURE 1 FEATURE 2 FEATURE 3
Mixed ability or different ways of understanding?
Creative Commons Attribution Non-Commercial Share Alike License
Introduction to Processing Digital Sounds
Creative Commons Attribution Non-Commercial Share Alike License
Creative Commons Attribution Non-Commercial Share Alike License
Announcements How to save your work? Quiz solution 5/5/2019
Presentation transcript:

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

CSE8A Lecture 19 (18 was midterm) Read next class: read up to page 287 Freshman seminar: –Peer Instruction: Exploring a Revolution in College Science Teaching –Find out more about the theory behind clicker use –Analyze data from this and previous classes! CSE 8A Art Show! Sat Nov 14 10:30-12 noon –Submit either your collage or chromakey (one per pair) –Art show open to all UCSD students –JSOE High School Outreach Day -- >110 high schoolers (and their parents) –We want MORE, GREAT people in CSE at UCSD!

Question 9: Did you read the part in red? A.Yes B.No C.No, I was too pressed for time D.I don’t recall 9. (3pts) Consider six variables, declared as follows: int a, b, c; int i, j, k; The purpose of the following three lines of code is to swap the values in variables a and b: c = a; a = b; b = c; In one sentence, written in the box below, state the purpose of the following three lines of code: // THERE WAS THREE LINES OF // CODE // HERE

Feedback from midterm survey I was a bit surprised by the cross problem but it was a good way to test understanding of a concept in a way that we hadn't looked at a million times before. Was a good exam, I was a little freaked out after looking at the review midterms you posted online but this one seemed to be a lot easier. The group exam helped me see other ways to write code on the flower I liked how it was a reflection of most of the problems we seen in class and not something surprising. too easy I liked the second question on the exam that had us explain how we reasoned out our solution. I think that will be very beneficial to improving our class.

Some good advice from your peers I feel that I could've received a much better grade on the midterm, had I studied actual code more. It had some tricky problems that really made me think. I like how most of the questions were similar to the clicker questions that we did during lecture.

Things I’ll fix from your help Make it clear that input is in black and white Group part shorter More space for code (it was a hint, but OK) More explanation on code writing question FYI There is partial credit on MCQ Time is always tough

Be proud of yourself! I felt like skipping when I got out of the classroom because I was so happy. Studying was definitely worth it.

By the end of today’s class you should be able to… LG37: Identify, compare and contrast if-else if –else statements and separate if statement blocks. LG38: Explain the relationship between amplitude, frequency, compression and rarefaction as it describes sound. LG39: Defend a choice of sampling rate and sample size for a digital sound file based on human hearing abilities and translate that into an estimate of the size of a sampling array for storing sound. LG40: Compare an array of Pixels which forms a Picture to an Array of SoundSamples which forms a Sound including the result of indexing into each. LG41: Read, trace, and write code to change the volume of a Sound object (using for each, while and for loops)

Advice: How to use if statements Figure out what you want to do –Sketch out on paper your scenario. –Are your conditions for change mutually exclusive (only one can happen?) If so, use an if, else if, (and maybe an else) Does something ALWAYS get done? Use an else. –If more than one “thing” gets done – then probably this is in a separate if statement Conditional change not related to each other should be in separate (multiple) if statements.

Lab (Quiz) Review: Write if statement to make sure we have no index out of bounds errors for (int x = 0; x < this.getWidth(); x++) { for (int y = 0; y < this.getHeight(); y++) { > int foo = this.getPixel(x-3, y-2).getRed() + this.getPixel(x+2,y+3).getRed(); } if ( (x = -3) && (y = -2) ) if ( (x = 3) && (y = 2) ) if ( (x+2 = 0) && (y+3 = 0) ) if ( (x+2 0) && (y+3 0) )

Lab (Quiz) Review: Write if statement to make sure we have no index out of bounds errors for (int x = 0; x < this.getWidth(); x++) { for (int y = 0; y < this.getHeight(); y++) { int foo = this.getPixel(x-3, y-2).getRed() + this.getPixel(x+2,y+3).getRed(); }

Which of these statements best characterizes sepia? A.All Color components are changed, based on that same component’s original value (red changed based on red, blue changed based on blue, green changed based on green) B.All Color components are changed, based on one component’s original value (just use one component to make decision) C.Some (not all) Color components are changed, based on their original value D.Some (not all) Color components are changed based on red’s original component value E.None of these are true!

Which of these statements best characterizes posterize? A.All Color components are changed, based on that same component’s original value (red changed based on red, blue changed based on blue, green changed based on green) B.All Color components are changed, based on one component’s original value (just use one component to make decision) C.Some (not all) Color components are changed, based on their original value D.Some (not all) Color components are changed based on red’s original component value E.None of these are true!

Chapter 8: Sound!

If the following sound were modified to be louder it would A.Have shorter frequency and stronger compressions/rarefactions B.Have smaller amplitude and stronger compressions/rarefactions C.Have higher frequency and stronger compressions/rarefactions D.Have larger amplitude and stronger compressions/rarefactions E.None of the above

If higher pitch? Show web site: compression rarefaction explanation

Sample Rate versus Sample Size Size is max (and min) amplitude Rate is “how often we record an amplitude”

Beth makes bad music: What’s wrong with these decisions? 1)Discuss: (3 min) I’ve decided that I don’t like the sampling rate and sample size provided by the book authors. Comment on my decision to use… Sampling Rate Sample Size Explanation 5,000Hz4 bits 100,000Hz32 bits

Match the Java type to the (simplified) diagram This is something you look at This is something you listen to Picture Sound Pixel SoundSample Pixel[] SoundSample[] There are a few details hiding here – like Picture has a few more things in it.. Later…

Our Representation of Sound String fileName = FileChooser.pickAFile(); Sound noise = new Sound(fileName); SoundSample[] noiseArray = noise.getSamples(); noiseArray[3].setValue(0); int foo = noiseArray[2].getValue(); String fileName = FileChooser.pickAFile(); Picture pic = new Picture(fileName); Pixel[] pixArray = pic.getPixels(); pixArray[3].setBlue(255); int foo = pixArray[2].getRed();