CSIS110 - Introduction to Computer Science

Slides:



Advertisements
Similar presentations
Images Images are a key component of any multimedia presentation.
Advertisements

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.
Digital Imaging and Image Analysis
CSE116: Introduction to Computer Science 2 Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
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.
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.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
Ch 1 Intro to Graphics page 1CS 367 First Day Agenda Best course you have ever had (survey) Info Cards Name, , Nickname C / C++ experience, EOS experience.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Data Structures CS231 Instructor: Dr. Hammad Majeed Office: Academic Block 4 First Floor.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
CS324e - Elements of Graphics and Visualization Class Intro
Image processing Second lecture. Image Image Representation We have seen that the human visual system (HVS) receives an input image as a collection of.
CS 102 Computers In Context (Multimedia)‏ 01 / 28 / 2009 Instructor: Michael Eckmann.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Image Processing & Perception Sec 9-11 Web Design.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
Media Computing Instructor Byung Kim Olsen 231 Office hours – MWF 9:00-10:00 AM or by appointment.
Introduction to Programming Peggy Batchelor.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Python programming Introduction to the JES environment and basics of Python Reading: Chapters 1, 2 from “Introduction to Computing and Programming in Python”
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Pictures Looping through pixels.. Lab Review (1) Objects  Instantiated from Class  Turtle myTut = new Turtle(myWorld);  new operator creates an instance.
CSC Computing with Images
CS- 375 Graphics and Human Computer Interaction Lecture 1: 12/4/1435 Fundamental Techniques in Graphics Lecturer: Kawther Abas.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
Chapter 1: Introduction to Computer Science and Media Computation.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
Picture Lab. Manipulating Pictures Discussion and activities with java.awt.Color introduce students to megapixels, pixels, the RGB color model, binary.
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Lecture 24: Color Announcements & Review Lab 7 Due Thursday 2 D arrays - embedding graphs in an array Computer Science Artifacts Abstraction Representations.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
A Media Computation Cookbook Manipulating Images and Sounds for Use in Alice Part 1: Image Manipulations Part 2: Changing colors in an area Part 3: Chromakey.
CS1315 Introduction to Media Computation Introduction: Why study computer science at all?!?
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Chapter 1: Introduction to Computer Science and Media Computation.
Dr. Cynthia Furse University of Utah
Image Processing Objectives To understand pixel based image processing
Binary Notation and Intro to Computer Graphics
Vocabulary byte - The technical term for 8 bits of data.
Multimedia Summer Camp
Chapter 1: Introduction to Computer Science and Media Computation
Vocabulary byte - The technical term for 8 bits of data.
Introduction to the JES environment and basics of Python
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
LET’S LEARN ABOUT GRAPHICS!
Chapter 1: Introduction to Computer Science and Media Computation
CS1315 Introduction to Media Computation
What do these words mean to you?
Gray Scale picture def pixBW(pixel): # given a pixel, change to BW
Introduction to Media Computation
A Media Computation Cookbook
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story.
CS 177 Week 3 Recitation Slides
Do it now activity Use the coloured pencils to complete the do it now activity. Stick in your book.
CSIS110 - Introduction to Computer Science
Chapter 1: Introduction to Computer Science and Media Computation
CSIS110 - Introduction to Computer Science
Presentation transcript:

CSIS110 - Introduction to Computer Science Dr. MaryAnne Egan

Agenda Announcements: Python intro Lab set up Links to Breaking Bad clips were posted Tutoring hours: http://codecutr.github.io/CSISTutoring/ Survey Python intro Lab set up Paired programming Canvas will be used to distribute lab files, not collect cell phone policy… total number of check marks divide by 7 and will add to final exam.

Python Python is a popular programing language, which is designed to be easy to read. Used by many companies. Also used to make application software flexible and expendable. For example, can be used to program GIMP or Blender

A word about Jython Jython is Python Python is a language implemented in C. Jython is the same language implemented in Java. Is the pizza different if a different company makes the flour? If so, not by much.

Python The programming language we will be using is called Python http://www.python.org It’s used by companies like Google, Industrial Light & Magic, Pixar, Nextel, and others The kind of Python we’re using is called Jython It’s Java-based Python http://www.jython.org URL to look at what companies use Python is in the book.

Much of programming is about naming We name our data Data: The “numbers” we manipulate We call our names for data variables A variable is a named location in main memory whose contents can vary Naming conventions Enough words to describe what you need to describe Understandable Python names must start with a letter Case matters Don’t use Python reserve words as names Use camelCase if multiword variable name 6

Python understands commands We can name data with = This is called _____________, and it puts a value into the variable (the memory location it names) The following commands all have the same result: A = 5 B = 10 A = B / 2 A = round (4.7) 7

Do it again !!! If we have some code that we think we want to use over and over again, we create a function A function is a named algorithm (recipe) Example: to average 3 numbers: def avg (num1, num2, num3): Now we can use that function over and over by simply invoking its name and giving it 3 numbers.

Colors An image is a 2-dimensional grid of ________ A pixel is a single dot of a specific color That color has 3 components: Red (0..255) Green (0..255) Blue (0..255) Examples: R = 255, G = 0, B = 0 R = 128, G = 92, B = 192

Pixels Pixels are picture elements Each pixel object knows its color It also knows where it is in the picture When we zoom the picture to 500%, we can see individual pixels.

RGB In RGB, each color has three component colors: Amount of redness Amount of greenness Amount of blueness Each does appear as a separate dot on most devices, but our eye blends them. In most computer-based models of RGB, a single byte (8 bits) is used for each So a complete RGB color is 24 bits, 8 bits of each

Demo JES