Chapter 15, Images …a few points

Slides:



Advertisements
Similar presentations
Copyright © 2002 Pearson Education, Inc. Slide 1.
Advertisements

Lesson One: The Beginning
Image Processing … computing with and about data, … where "data" includes the values and relative locations of the colors that make up an image.
Chapter Eleven Digital Darkroom Expert Techniques.
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.
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.
Bitmapped Images 27 th November 2014 With Mrs
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Dean Pentcheff NHMLAC MBPC/Crustacea 17 April 2006.
COLORS & BACKGROUNDS CHAPTER 13. SPECIFYING COLORS Three common places where you specify color 1.Text color.box { color: blue; } 2.Background color.box.
Image Processing & Perception Sec 9-11 Web Design.
Week 2 Book Chapter 1 RGB Color codes. 2 2.Additive Color Mixing RGB The mixing of “ light ” Primary: Red, Green, Blue The complementary color “ White.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 7 The Game Loop and Animation Starting Out with Games & Graphics.
Computer Science 112 Fundamentals of Programming II Graphics Programming.
COSC 1P02 Introduction to Computer Science 7.1 Cosc 1P02 Week 7 Lecture slides "There are two ways of constructing a software design; one way is to make.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Lecture 15: Intro to Graphics Yoni Fridman 7/25/01 7/25/01.
Desktop Publishing Review. What is a rough sketch used in planning a layout and design?
Ch1: Introduction Prepared by: Tahani Khatib AOU
Processing can load images, display them on the screen, and change their size, position, opacity, and tint. You can load gif, png and jpg images in processing.
Introduction to Image processing using processing.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
Animation Pages Function Function Definition Calling a function Parameters Return type and return statement.
Graphics Primitives in Processing 1/14/2010. size(x, y) ; Sets the initial size of the screen Units are in pixels –Pixel == picture element –Small dots.
RGB lesson Mrs Ras. Open illustrator File > new change color mode to RGB.
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,
ADOBE INDESIGN CS3 Chapter 8 WORKING WITH EFFECTS.
Programming in Processing Taught by Ms. Madsen Assistants: Ms. Fischer and Ms. Yen Winsor School, 2/20/08.
Com·pos·ite k ə m ˈ päz ə t/ verb Compositing is the combining of visual elements from separate sources into single images, often to create the illusion.
© 2010 Delmar, Cengage Learning Chapter 8 Working with Effects.
Unit 2.6 Data Representation Lesson 3 ‒ Images
Multidimensional Arrays
Image Processing Objectives To understand pixel based image processing
David Meredith Aalborg University
Pixels, Colors and Shapes
Binary Notation and Intro to Computer Graphics
Chapter 10-1: Structure.
Image Processing & Perception
Chapter 8 Objects.
Chapter 7: Array.
Example: Card Game Create a class called “Card”
Raster Images CPSC 1030.
Lesson One: The Beginning Chapter 1: Pixels Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Images and Backgrounds
Basic Graphics Drawing Shapes 1.
Colors.
CS320n –Visual Programming
Chapter 15, Images …a few points
Representing Images 2.6 – Data Representation.
Chapter 9 Arrays.
Looping through pixels.
Arrays .
Multidimensional Arrays and Image Manipulation
Chapter 7 Part 2 Edited by JJ Shepherd
Chapter 8 Objects.
MSIS 655 Advanced Business Applications Programming
SEEM4570 Tutorial 3: CSS + CSS3.0
Lecture 7: Introduction to Processing
Chapter 15, Images …a few points
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Multidimensional Arrays
Objectives In this chapter, you will: - Learn about records (structs) - Examine operations on a struct - Manipulate data using a struct - Learn about the.
Manipulating Pictures, Arrays, and Loops part 6
Tracking the Eyes using a Webcam
Non-numeric Data Representation
Chapter 13, Math A few Examples.
Chapter 9 Arrays.
Presentation transcript:

Chapter 15, Images …a few points

All about tinting Tint is essentially equivalent to fill(), setting the color and alpha transparency. Functions are tint() and noTint() Example: tint(0, 255, 0, 127) will give green tint with 50% opacity You can also use hexadecimal colors, e.g. tint(#FF0000, 50) will be a red tint, with near complete transparency.

Syntax of Tint and Alpha Alpha is from 0-255, where: 0 is completely transparent 255 is completely opaque Alpha tint(rgb) tint(rgb, alpha) tint(gray) tint(gray, alpha) tint(v1, v2, v3) tint(v1, v2, v3, alpha) Tint

First Example: Original tint(255, 100); That is… Shows rainbow row behind waterfront pineapple. That is… white for NO color change, and 100 for partial transparency

Another Example: tint(255, 0, 0); Or tint(#FF0000); Shows a red tint with no transparency

Another Example: background(0); tint(0,200,255 ); background(0); …blue/green with no transparency background(0); tint(0,200,255,50); …blue/green with high transparency against black background.

About Arrays An array is a special variable, which can hold a collection of elements of the same type. When to use? Anytime a program requires multiple instances of similar data, consider it… Examples?

More About Arrays Each element in an array has a unique position. Arrays start with 0. Arrays have a fixed size.

Declaring and Initializing Arrays Declaring: int [] myArray Initializing: There are several ways, e.g. int [] myArray = { 1, 3, 6, 9, 12, 15};

Accessing elements in Arrays Many ways… See Example 9-5 which uses a loop to access items in the loop. (Pg 171)

2D vs 1D array This is how pixels on the screen looks for a tiny sketch 6 width X 5 height Etc. This is how processing stores the pixels. You can manipulate pixels directly on screen; not only through primitive shapes. You can do this through the pixels[] array.

Example page 311 Since each pixel in the 300X200 screen is a number, equate each with a random grayscale between 0-255. ?? Suppose you want to lighten the grayscale up ?? Suppose you want RGB colors

Finding exact location of a pixel Consider width and height The total pixels is width * height For any given point, the location is: theLocation = x + (y * width); Remember, that we’re seeing 2-D for the 13 location, but processing measures by 1-D.