CSC1401. Learning Goals Understand at a conceptual level What is media computation? How does color vision work? How can you make colors with red, green,

Slides:



Advertisements
Similar presentations
Pixels and Digital Images Yrd. Doc. Dr. Ahmet Sayar Kocaeli Universitesi Bilgisayar Muhendisligi Ileri Bilgisayar Grafikleri.
Advertisements

Images Images are a key component of any multimedia presentation.
Computer Science 101 RGB Color System. Simplified Introduction to Color Vision Go to How We See: The First Steps of Human Vision or Color Vision for more.
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.
ManipulatingPictures-Mod6-part21 Manipulating Pictures, Arrays, and Loops part 2 Barb Ericson Georgia Institute of Technology.
Digital Imaging and Image Analysis
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
Bits are Not just for Numbers or Characters Computers store characters as bits or binary digits. Characters from the English-language keyboard can be represented.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
Digital Media Lecture 6: Color Part 1 Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Visual Representation of Information
Chpater 3 Resolution, File Formats and Storage. Introduction There are two factors that determine the quality of the picture you take; The resolution.
Fundamentals of Photoshop
Technology and digital images. Objectives Describe how the characteristics and behaviors of white light allow us to see colored objects. Describe the.
Welcome Topic: Pixels A.M.Meshkatur Rahman Class: vii Roll: 07.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
© 1999 Rochester Institute of Technology Color. Imaging Science Workshop for Teachers ©Chester F. Carlson Center for Imaging Science at RIT Color Images.
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.
Too much information running through my brain.. We live in the information age. Knowledge comes from careful investigation of information. Information.
COSC 1P02 Intro. to Computer Science 6.1 Cosc 1P02 Week 6 Lecture slides "To succeed, jump as quickly at opportunities as you do at conclusions." --Benjamin.
CS1315: Introduction to Media Computation Picture encoding and manipulation.
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
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 describes.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Copyright © 2009 Curt Hill The Picture Object Getting and displaying.
25.2 The human eye The eye is the sensory organ used for vision.
Number Systems CIT Network Math
Digital Media Dr. Jim Rowan ITEC 2110 Color. Question! Inside Photoshop and Gimp there are image filters that, among other things, allow you to blur the.
UNIT EIGHT: Waves Chapter 24 Waves and Sound Chapter 25 Light and Optics.
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
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
ManipulatingPictures-Mod6-part11 Manipulating Pictures, Arrays, and Loops part 1 Barb Ericson Georgia Institute of Technology.
Color and Vision General Physics. Band of Visible Light ROYGBIV (Red, Orange, Yellow, Green, Blue, Indigo, Violet)
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
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.
Computer Vision Introduction to Digital Images.
How digital cameras work The Exposure The big difference between traditional film cameras and digital cameras is how they capture the image. Instead of.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
HTML & Color How to Use Color  Backgrounds-  Usually a light color is best  Should have a color based on a theme or plan  Can have a dark.
LIGHT Chapter Twenty-Five: Light  25.1 Properties of Light  25.2 Color and Vision  25.3 Optics.
Vocabulary Worksheet Answers
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Georgia Institute of Technology Workshop for Programming And Systems Management Teachers Chapter 3 Introduction to Media Computation, Java, and DrJava.
HOW SCANNERS WORK A scanner is a device that uses a light source to electronically convert an image into binary data (0s and 1s). This binary data can.
CSC1401 Drawing in Java - 1. Goals Understand at a conceptual and practical level How to use the Turtle class to draw on a picture How to use the java.awt.Graphics.
04-ManipulatingPictures-part21 Manipulating Pictures, Arrays, and Loops part 2 Barb Ericson Georgia Institute of Technology June 2008.
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Unit 1 The History of Photography & The Camera
Getting and displaying
Image Processing Objectives To understand pixel based image processing
Additive Colour Theory
Introduction to Electromagnetic waves, Light, and color
Introduction to Media Computation
LET’S LEARN ABOUT GRAPHICS!
Manipulating Pictures, Arrays, and Loops part 2
Introduction to Media Computation
Workshop for Programming And Systems Management Teachers
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.
Visuals are analog signals...
Non-numeric Data Representation
Presentation transcript:

CSC1401

Learning Goals Understand at a conceptual level What is media computation? How does color vision work? How can you make colors with red, green, and blue light? How do digital cameras and computer displays work? What is a pixel? How can you show a picture from a file in Java?

What is Media Computation? Processing picture elements sound fragments movie frames Text files and HTML pages The speed and storage capacity of modern computers makes this possible Even for beginning students just learning to program

How Does Color Vision Work? Our eyes and brain work together to make sense of what we see The cones in our eyes are what allow us to see in color The rods allow us to see black, white, and shades of gray Our cones are sensitive to red, green, and blue light All other colors are combinations of these

Red, Green and Blue Light White light is a combination of red, green, and blue Full intensity red, green, and blue combined Black is the absence of all light No red, green or blue light All other colors are combinations Of red, green, and blue Of different intensities

Color Exercise Start jGrasp Click on the RGB tab and move the sliders to change the intensity of red, green, and blue Make white, black, red, blue, green, yellow, violet, and orange

How do Digital Cameras Work? There are red, green, and blue filters that capture the amount of each color at a position A part of a grid There are many positions picture element or pixel 640 x 480 is low resolution 1600 x 1200 is high resolution The more pixels the better the picture Can enlarge it without it looking grainy

How do Computer Displays Work? A display has pixels (picture elements) Each pixel has a red, green, and blue component Combinations of red, green, and blue give the resulting color Black is 0 red, 0 green and 0 blue White is 255 red, 255 green, 255 blue

Pictures are made up of Pixels Digital cameras record light at pixels Monitors display pictures using pixels Our limited vision acuity helps us to see the discrete pixels as a smooth picture If we blow up the picture we can see the pixels

Digital Pictures Capture the intensity of the red, green, and blue colors at each pixel Stored as a bunch of numbers 8 bits for red, 8 bits for green, 8 bits for blue Need nearly 1 million bytes to store a 640 x 480 picture Need 3 million bytes to store an image from a 1 megapixel (million pixel) camera Displayed as red, green, and blue colors on the computer display Lots of them close together Our brain sees a smooth color image

Getting Started We will start with modifying and creating pictures Changing colors in the picture After pictures we will work with sounds Modifying volume, pitch, reversing, etc

The Picture Class To make doing media manipulation easier We have created a set of classes for you to use Picture, ColorChooser, FileChooser, Pixel, etc These are not part of the Java language But were created at Georgia Tech Since we setup our classpath, we can access these classes Back when we worked with Turtles This tells Java where to find the classes

Creating a Picture Object To create a picture object from a file We need the full name of the file We can use FilePicker.pickAFile() to get that Class method that returns the full file name as a String We need to ask the Picture class to create the picture object Using the data from the specified file new Picture(fileName) If we want to see the picture we have created We will ask the picture object to show itself

Naming each Piece First let’s pick a file name and save a reference to the resulting String object in a variable called fileName String fileName = FileChooser.pickAFile(); Next, let’s create a Picture object and save a reference to it in a variable called pictureObj Picture pictureObj = new Picture(fileName); Now send the show() message to the picture object pictureObj.show();

The entire program

Doing it all at Once You can create a picture object by passing it the result of using the FileChooser to pick a file and then tell that picture object to show itself All in one line new Picture(FileChooser.pickAFile()).show() But then you don’t have a way to refer to the file or picture again.

Where to find more information about the Picture class? Look at the Javadoc on the P: drive There is a cool method called explore() It allows you to see the R,G, and B values at different pixel locations, as well as the X and Y coordinates of different places in your picture Useful for your next project! Note that it makes a copy of your picture

Substitution and Evaluation In programming you can Use a literal String name = “Steve”; Use a variable String myName = “Steve”; String name2 = myName; Use an expression String n3 = “Ste” + “ve”; // + is concatenation for strings Use the result of a method invocation String n4 = student1.getName(); Values get substituted for variable names when expressions are evaluated

Summary Media computation can mean processing millions to billions of bytes The speed of modern computers makes media computation possible even for beginners We see combinations of red, green, and blue light A pixel is a picture element Digital pictures store red, green, and blue values from 0 to 255 for each pixel in a picture You can pick a file, create a picture object, and show it using: String file = FileChooser.pickAFile(); Picture pictObj = new Picture(file); pictObj.show();

Assignment Read Media Computation Chapter 3, Section 6