Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

Similar documents
Images and Colour COSC342. Lecture 2 2 March 2015

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

MOTION GRAPHICS BITE 3623

CHAPTER 3 I M A G E S

COLOR AS A DESIGN ELEMENT

Digital Imaging & Photoshop

LECTURE 07 COLORS IN IMAGES & VIDEO

Image Perception & 2D Images

Image is a spatial representation of an object or a scene. (image of a person, place, object)

Raster (Bitmap) Graphic File Formats & Standards

Colors in Images & Video

6. Graphics MULTIMEDIA & GRAPHICS 10/12/2016 CHAPTER. Graphics covers wide range of pictorial representations. Uses for computer graphics include:

Colour (1) Graphics 2

Specific structure or arrangement of data code stored as a computer file.

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

Color & Compression. Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University

1. Using Images on Web Pages 2. Image Formats 3. Bitmap Image Formats

Chapter 4. Incorporating Color Techniques

Elements of Design. Basic Concepts

A raster image uses a grid of individual pixels where each pixel can be a different color or shade. Raster images are composed of pixels.

Fundamentals of Multimedia

Computer Graphics. Rendering. Rendering 3D. Images & Color. Scena 3D rendering image. Human Visual System: the retina. Human Visual System

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

Lecture #2: Digital Images

Computers and Imaging

Figure 1: Energy Distributions for light

05 Color. Multimedia Systems. Color and Science

excite the cones in the same way.

Introduction. The Spectral Basis for Color

Lecture 8. Color Image Processing

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

Lecture 2: An Introduction to Colour Models

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Introduction to Color Theory

Positive & Negative Space = the area around or between a design. Asymmetrical = balanced but one part is small and one part is large

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Unit 4.4 Representing Images

Lecture Color Image Processing. by Shahid Farid

CMPSC 390 Visual Computing Spring 2014 Bob Roos Review Notes Introduction and PixelMath

Course Objectives & Structure

To discuss. Color Science Color Models in image. Computer Graphics 2

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Interactive Computer Graphics

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

Accurate Color in AutoCAD 2004

Hue Do You Think Hue Are?

Color Image Processing

Photoshop Elements Week 1 - Photoshop Elements Work Environment

Color images C1 C2 C3

Color. Chapter 6. (colour) Digital Multimedia, 2nd edition

LECTURE 03 BITMAP IMAGE FORMATS

ITP 140 Mobile App Technologies. Colors Images Icons

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

B.Digital graphics. Color Models. Image Data. RGB (the additive color model) CYMK (the subtractive color model)

Computer Graphics Si Lu Fall /27/2016

Color Image Processing. Gonzales & Woods: Chapter 6

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

Chapter 2 Fundamentals of Digital Imaging

In order to manage and correct color photos, you need to understand a few

In a physical sense, there really is no such thing as color, just light waves of different wavelengths.

Color Image Processing. Jen-Chang Liu, Spring 2006

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Wireless Communication

CATEGORY SKILL SET REF. TASK ITEM

Digital Image Processing. Lecture # 8 Color Processing

Chapter 11. Preparing a Document for Prepress and Printing Delmar, Cengage Learning

Using Adobe Photoshop

IMAGE SIZING AND RESOLUTION. MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 4 September 12, 2012

Understanding Image Formats And When to Use Them

6 Color Image Processing

Corporate Identity Quick Reference Guide

Understanding Color Theory Excerpt from Fundamental Photoshop by Adele Droblas Greenberg and Seth Greenberg

Vector VS Pixels Introduction to Adobe Photoshop

Unit 8: Color Image Processing

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

12 Color Models and Color Applications. Chapter 12. Color Models and Color Applications. Department of Computer Science and Engineering 12-1

MATH 5300 Lecture 3- Summary Date: May 12, 2008 By: Violeta Constantin

Digital Images: A Technical Introduction

Chapter 9: Color. What is Color? Wavelength is a property of an electromagnetic wave in the frequency range we call light

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Prof. Feng Liu. Fall /02/2018

Basics of Colors in Graphics Denbigh Starkey

Wright Field Scale Modelers. Color Mixing: Everything you thought you knew about color is wrong.

Chapter Objectives. Color Management. Color Management. Chapter Objectives 1/27/12. Beyond Design

Objective Explain design concepts used to create digital graphics.

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Photoshop Elements. Lecturer: Ivan Renesto. Course description and objectives. Audience. Prerequisites. Duration

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Color Image Processing

EECS490: Digital Image Processing. Lecture #12

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

Adobe Fireworks CS4 Kalamazoo Valley Community College February 25, 2010

WordPress Users Group Manchester, NH July 13, Preparing Images for the Web. Daryl Johnson SvenGrafik

check it out online at

What is Color? Chapter 9: Color. Color Mixtures. Color Mixtures 10/29/2012. What is color? Color vocabulary

Part I: Color Foundations The Basic Principles of COLOUR theory

Transcription:

Color and Images Computer Science and Engineering College of Engineering The Ohio State University Lecture 16

Colors in CSS Use: fonts, borders, backgrounds Provides semantic signal: Green go, success, complete, solution Red stop, failure, incomplete, problem Yellow yield, warning, attention Helps to set mood/emotion/tone: Bright cheerful, playful, positive Dark somber, serious, negative Warm energetic, alert, active Cool calm, tranquil, peaceful

Elementary Color Theory Combination of Physics (eg wavelengths in nm) Biology (perception of red vs yellow ) Visible spectrum: 390-700nm Nonspectral colors (eg pink, brown, white) require presence of multiple wavelengths

Color Perception Human eyes have 3 types of cones Respond to different wavelengths (LMS) Color = cone response

Metamerism Different (continuous) spectra that stimulate our eyes in identical ways Consequence: Different spectra with indistinguishable (to humans) color Example: white Spectrum 1: all wavelengths equally present Spectrum 2: three wavelengths present, stimulating LMS cones equally Consequence: continuous spectrum can be projected down to 3 dimensions

Color Mixing There are two ways to combine colors 1. Subtractive: Color is a filter Mixing = filter out both Used for printing (& dyes, paints, gels) 2. Additive: Color is a light source Mixing = sum Used for monitors

CMYK: Subtractive Color Mixing Filters transmit different spectra Mixture transmits the product of both Mix all three primaries = black Primary colors: cyan, magenta, yellow Black (K) added for quality and cost Traditional set (RYB) popular for painting Primary yellow (transmits R & G) (absorb B)

Colors as Filters Yellow: Filters out (only) blue Rosi et al., Euro. J. of Physics, 37(6), 2016

Additive Color Mixing: RGB Cube primary secondary magenta cyan #fff /*white*/ #000 /*black*/ yellow http://www.flickr.com/photos/ethanhein/3103830956/

HSL Color Wheel (100% Sat.) http://www.erinsowards.com/articles/2011/01/colors.php

HSL Grid for Red (ie 0,x,y) (0,75%,88%) (0,100%,50%) (0,0%,25%)

CSS Color Values Keywords: case-insensitive identifiers red, navy, firebrick, chocolate RGB as decimal (0-255), percentage, or hex rgb (255,0,0) /*pure red*/ rgb (100%,0%,0%) #ff0000 #f00 /*expand by repeating digit*/ HSL (Hue, Saturation, Light) Hue (0-360) is angle on color wheel: 0 is red, 120 green, 240 blue Saturation & light are both %'s hsl (0,100%,50%) /*full bright red*/ Alpha channel (transparency): 1 is opaque! rgba (255,0,0,0.5) hsla (0,100%,50%,1)

Color Keywords Computer Science and Engineering The Ohio State University

Color Depth Depth = # of bits in representation 8 bits 256 different colors 24 bits 16,777,216 different colors (eg 8 bits each for r,g,b) Alpha may be (incorrectly) included rgba is a point in 4-dimensional space Problem: image color depth > display color depth Quantization: each pixel gets closest available color (leads to banding) Dithering: add noise, which looks better!

Quantization of Continuous Func

Quantization vs Dithering quantized original dithered

Quantization vs Dithering www.coffeecup.com/help/articles/dither-modes-in-animation-studio/

HTML <img> Tag Attributes src: location of image file width, height: Area in window to reserve for image Image is scaled to those dimensions These attributes affect browser flow, regardless of when/if image is displayed alt: text to show if graphic can not be displayed or seen (ie alternative) title: text to augment displayed graphic (eg tooltip)

Image Representation Raster vs vector graphics Raster: stored pixel-by-pixel Vector: mathematical description Compression of raster images Lossy: better compression, lower quality image Lossless: largest file size, best quality

Major Formats GIF Raster graphics, lossy compression (oldest) 8 bit, basic transparency (on/off) Frame-based animation (groan) Good for small file size, crisp lines, logos JPEG Raster, lossy compression 24 bit, no transparency Good for photos, gradual gradients PNG Raster, lossless (but still often good) compression Variable depth, full alpha transparency Good replacement for GIF (but no animation) SVG vector graphics (newest) Good for crisp lines, simple logos, graphs

Scaling Images Vector graphics scale perfectly Raster images should be pre-scaled Width (height) attributes of image tag should match actual width (height) of image Why?

Alternative: CSS.deleteButton { background: -webkit-linear-gradient(top, #be6868 0%, #941b17 50%, #880d07 50%, #be483c 100%); border: 3px solid #000; color: #fff; cursor: pointer; font-size: 15pt; padding: 10px 34px; text-shadow: 0-1px 0 #000; border-radius: 13px; box-shadow: 0 1px 0 #454545; }