aims By the end of the session you will be able to: Explain how images are represented in Processing Manipulate images using the pixels member Use for.

Slides:



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

Playing with pixels Programming For Artists Learning objectives:
Creative Computing. \\ aims By the end of the session you will be able to: 1.Explain the difference between various image file formats 2.Load in and display.
Video We will consider how electronic pictures (monochrome) are made up. Consider some important characteristics of electronic images. See how image are.
Lecture 2 Concepts, Terms and Definitions. Display Devices They are divided into a lot of small squares called pixels (“PICture ELements”). Each pixel.
© 2011 Delmar, Cengage Learning Chapter 7 Importing and Modifying Graphics.
Importing and Modifying Graphics
© 2010 Delmar, Cengage Learning Chapter 7: Importing and Modifying Graphics.
Image Processing … computing with and about data, … where "data" includes the values and relative locations of the colors that make up an image.
RAPTOR Syntax and Semantics By Lt Col Schorsch
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Programming Project 1 Truth Table Lecture 03, file P1 Due January.
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Image Processing. Processing Digital Images digital images are often processed using “digital filters” digital filters are based on mathematical functions.
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Lecture 6 Sept 15, 09 Goals: two-dimensional arrays matrix operations circuit analysis using Matlab image processing – simple examples.
Video in Processing David Meredith Aalborg University.
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.
WHAT IS IT AND WHY SHOULD I CARE? 2.0.  GRAPHICS  Draw-type graphics (also called vector graphics) represent an image as a geometric shape made up of.
Games and Simulations O-O Programming in Java The Walker School
Higher Computing Data Representation.
BUILDING RICH MEDIA ELEMENTS. Design Decisions Based on Design Specification  Following the design specification will ensure that the application is.
© GCSE Computing Candidates should be able to:  explain the representation of an image as a series of pixels represented in binary  explain the need.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Manipulating contrast/point operations. Examples of point operations: Threshold (demo) Threshold (demo) Invert (demo) Invert (demo) Out[x,y] = max – In[x,y]
Stanley – RC Car.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 5 Working with Images Starting Out with Games & Graphics in.
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.
LCD Screens ‘How it works?’. LCD ScreensOutput devices LCD Screens Liquid crystal display (LCD) screens are visual display units. An LCD is made up of.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
CS115 Math Class. Printing Out The command : System.out.println(“ Something that we want to print out on the screen as output”); Prints out in one line.
Chapter 4: Representation of data in computer systems: Images OCR Computing for GCSE © Hodder Education 2011.
I MPORTING AND M ODIFYING G RAPHICS. 1. Understand and import graphics 2. Break apart bitmaps and use bitmap fills 3. Trace bitmap graphics Objectives.
Computer Science 111 Fundamentals of Programming I Introduction to Digital Image Processing.
Introduction to Image processing using processing.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Unit 1: Task 1 By Abbie Llewellyn. Vector Graphic Software (Corel Draw) Computer graphics can be classified into two different categories: raster graphics.
By Courtney Field Creative digital graphics. Types of graphics and examples There are a number of different types of graphics file formats. Each type.
Representation of Images You need to know: (k) explain the representation of an image as a series of pixels represented in binary (l) explain the need.
Do Now Find the domain & range:. Answers to Homework
Computational Biology, Part 22 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
By: Catyana Brown Information Technology in a Global Society: Multimedia.
Getting started with the turtle Find the latest version of this document at
WORKING WITH SELECTIONS MASKS and CHANNELS 3D IMAGES LAYER BASICS PHOTO.
BINARY Toby Wilson. LEARNING OBJECTIVES  Be able to convert binary to denary  Be able to convert denary into binary  Be able to explain how computers.
DATA REPRESENTATION IMAGES GCSE Computing. Learning Objective ■ To understand how an image is represented in Binary ■ To be able to convert a Binary code.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Representation of Data in Computer Systems
Today… The for loop. Introducing the Turtle! Loops and Drawing. Winter 2016CISC101 - Prof. McLeod1.
For Datatel and other applications Presented by Cheryl Sullivan.
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.
數位影像處理 Digital Image Processing 吳育龍老師. Read image data Screen Resolution : 1024 X
 Many people like the flexibility of digital images. For example:  They can be shared by attaching to /uploading to Internet  Sent via mobiles.
OBJECTIVE AND OUTCOMES Objective: To be able to create images in binary format and understand the part metadata plays in recreating images. Outcomes:
Unit 2.6 Data Representation Lesson 3 ‒ Images
Representing images.
Binary 4 File Sizes.
IMAGES.
SELECTIVE COLOUR 1)Select one area and Image Adjustments black and White. Or 2)Right click Duplicate layer. Turn to black and white. Select one area and.
MATLAB(Matrix Laboratory). Introduction Developed by MathWorks Numerical Computing Environment Fourth-generation Programming Language.
Traditionally artist have created their work with the following tools:
Discussion #29 – Images II
Images in Binary.
Learning Objective LO: We’re learning to understand when it is appropriate to use particular data types.
Overview of previous session
Bitmap, Vector, Pixels, Resolution, Metadata.
What do these words mean to you?
Circles! You are going to create an “image” with circle(s)
FUNCTIONS.
VISUAL COMMUNICATION USING ADOBE PHOTOSHOP CREATIVE SUITE 5
Presentation transcript:

aims By the end of the session you will be able to: Explain how images are represented in Processing Manipulate images using the pixels member Use for loops to manipulate images Display video from a webcam Use filters to manipulate the video

images Images are represented as a grid of pixels Called a bit map There is a colour value stored for each pixel

images Internally the image is represented as an array Each element of the array is a pixel access the array through the pixels member have to loadPixels first and updatePixels at the end Though an image is 2D the array is 1D

Images In order to get a particular pixel you need to use the following formula pixels[x + y*width]

Images and the screen The pixels in the processing window are represented in exactly the same way You can use the same functions e.g. image1.loadPixels, image1.pixels loadPixels, pixels for the window

aims By the end of the session you will be able to: Explain how images are represented in Processing Manipulate images using the pixels member Use for loops to manipulate images Display video from a webcam Use filters to manipulate the video

image filtering Filters alter images by changing pixel values one by one Different filters use different mathematical functions e.g. invert sets each pixel to its inverse threshold sets all pixels below a value to 0 all those above to 255

image filtering As the window is represented in exactly the same way as an image you can filter the window - image1.filter - filter Can be useful for filtering thing you have drawn Filter the output of an image without changing it

image blending Image blending takes two images and combines their pixel values The pixel values at a point in image 1 are combined with those at the same place in image 2 Again you can use different mathematical functions e.g. add the pixel values, or select the darkest or lightest of the two values

\\ Create your own filter Wouldnt it be good to create our own filters? All you need to do is go through all the pixels in an image and change the colour values

\\ Create your own filter A lot of pixels: lots of work to do it by hand Need a way of automatically stepping through all the pixels: Loops!

\\ For Loops The basic idea: You have a variable (e.g. x) that counts between a range of numbers e.g. from 0 to the width of the screen For each value of x you Do something (execute some commands)

Create a gradient Extra: Create your own filter, e.g.: invert: converts the colour of a pixel to 256- colour Threshold: sets any pixel above a certain value to 256, and below to 0 Extra: Turn an image upside down using a loop Exercises

You can also use processing to manipulate video Use the video library import processing.video.*; We will use the webcam A capture object Capture video = new Capture(XXX); Video

You can use filters on the captured video to create Magic Mirror effects You can also use video files in processing (look up the video library) Video

Create your own magic mirror effect Extra: modify the final example so that the circles move around Exercises

aims By the end of the session you will be able to: Explain how images are represented in Processing Manipulate images using the pixels member Use for loops to manipulate images Display video from a webcam Use filters to manipulate the video