Computer Graphics Si Lu Fall /25/2017

Similar documents
Prof. Feng Liu. Winter /09/2017

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

INTRODUCTION TO COMPUTER GRAPHICS

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

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics

CSC320H: Intro to Visual Computing. Course WWW (course information sheet available there):

Photoshop Notes and Application Study Packet

Photoshop Domain 2: Identifying Design Elements When Preparing Images

Image Perception & 2D Images

CHAPTER 3 I M A G E S

Section 1. Adobe Photoshop Elements 15

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

TEST INFORMATION: 40 questions 50 minutes 70% minimum required to pass. Score is based on a 1000 pt system so passing will be a 700.

1. Describe how a graphic would be stored in memory using a bit-mapped graphics package.

4 Images and Graphics

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

Prof. Feng Liu. Fall /02/2018

Computers and Imaging

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

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

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

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

Photoshop Study Notes and Questions

LECTURE 02 IMAGE AND GRAPHICS

CATEGORY SKILL SET REF. TASK ITEM

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

Image Optimization for Print and Web

Digital Images. Digital Images. Digital Images fall into two main categories

MOTION GRAPHICS BITE 3623

CS 354R: Computer Game Technology

Using Adobe Photoshop

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

Capturing and Editing Digital Images *

Bitmap Image Formats

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

apt solutions, inc. Tips Graphics - An Introduction Vector vs. Raster Graphics Vector Graphics

Scanning Various Hand Drawn Graphics

Topics. 1. Raster vs vector graphics. 2. File formats. 3. Purpose of use. 4. Decreasing file size

Photoshop CS6 First Edition

Adobe Photoshop Workshop

Photoshop Elements Week 1 - Photoshop Elements Work Environment

Learning Macromedia Fireworks Essentials and Digital Image Editing

Computer Graphics: Graphics Output Primitives Primitives Attributes

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

Basic photography Art, composition, and computer principles AEE 211 February 24, 2003

Multimedia-Systems: Image & Graphics

Image. Image processing. Resolution. Intensity histogram. pixel size random uniform pixel distance random uniform

Digital photo sizes and file formats

Digital Imaging - Photoshop

COMPSCI 372 S2 C Computer Graphics

Digital Imaging and Image Editing

Graphics and Illustrations Fundamentals

in the list below are available in the Pro version of Scan2CAD

ADOBE PHOTOSHOP CS 3 QUICK REFERENCE

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

BEST PRACTICES FOR SCANNING DOCUMENTS. By Frank Harrell

Images and Displays. Lecture Steve Marschner 1

Lecture #2: Digital Images

2991c01.qxd 9/19/01 9:55 PM Page xxxiii. PARTi An Introduction to Photoshop 6 COPYRIGHTED MATERIAL

Determining MTF with a Slant Edge Target ABSTRACT AND INTRODUCTION

What You ll Learn Today

ITP 140 Mobile App Technologies. Images

Lecture - 3. by Shahid Farid

Bitmap Vs Vector Graphics Web-safe Colours Image compression Web graphics formats Anti-aliasing Dithering & Banding Image issues for the Web

What will be on the midterm?

1 classroom hour, 2 lab/studio hours, 2 credits

Fundamentals of Multimedia

Raster (Bitmap) Graphic File Formats & Standards

DOCUMENT SCANNER INSTRUCTIONS. Space. Backup. Count Only. New File. Scanner. Feeding Option Manual Auto Semi-Auto

Introduction. Prof. Lina Karam School of Electrical, Computer, & Energy Engineering Arizona State University

Digital Imaging & Photoshop

Photoshop Project 1: Create Vector Art

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

What is an image? Images and Displays. Representative display technologies. An image is:

Pros and Cons for Each Type of Image Extensions

FILE ASSEMBLY GUIDE. ~ File Assembly Guidelines ~

Autodesk Raster Design for Mapping and Land Development Professionals David Zavislan, P.E.

Computers & Philately Overview

Image optimization guide

2. Advanced Image Editing

CD: (compact disc) A 4 3/4" disc used to store audio or visual images in digital form. This format is usually associated with audio information.

Identifying Design Elements When Preparing Images

Vector VS Pixels Introduction to Adobe Photoshop

2. Advanced Image editing

THE 3 BIGGEST MISTAKES TO AVOID WHEN USING GRAPHIC IMAGES IN PRINT

Lecture 3: Grey and Color Image Processing

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

Portfolio Primer University of Minnesota School of Architecture College of Design

CS559: Computer Graphics

From Raster to Vector: Make That Scanner Earn Its Keep!

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be:

A Guide for Graduate Students

15110 Principles of Computing, Carnegie Mellon University

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

25 Questions. All are multiple choice questions. 4 will require an additional written response explaining your answer.

Slide Scanning Converting Your Film Photographs to Digital. Presentation to UCHUG - 8/06/08 G. Skalka

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

MULTIMEDIA SYSTEMS

1 Li & Drew c Prentice Hall Li & Drew c Prentice Hall 2003

CS 376b Computer Vision

Transcription:

Computer Graphics Si Lu Fall 2017 09/25/2017

Today Course overview and information Digital images Homework 1 due Oct. 4 in class No late homework will be accepted 2

Pre-Requisites C/C++ programming Linear algebra A free book by Prof. Jim Hefferon http://joshua.smcvt.edu/linearalgebra/ 3

Acknowledgement This course is based on CS 559 at the University of Wisconsin, Madison taught by Dr. Stephen Chenney The course materials are adapted and used here with Dr. Chenney s permission 4

What is Computer Graphics? (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org 5

What is Computer Graphics? Practically, it s about movies, games, design, training, art, advertising, communication, Technically, it s about the production, manipulation and display of images using computers 6

Graphics Building Blocks Images and computers Sampling, color, filters, Drawing in 2D Drawing lines and triangles, clipping, transformations Drawing in 3D Viewing, transformations, lighting, real-time graphics Modeling in 3D Describing volumes and surfaces, drawing them effectively Miscellaneous topics Raytracing, animation, 7

People Lecturer: Si Lu Fishbowl Office Hours: MW 1:00 pm - 2:00 pm lusi@pdx.edu TA: Thong Doan Fishbowl Office Hours: TR 11:00 am - 12:00 pm thong@pdx.edu 8

Web and Computer Account Course website http://www.cs.pdx.edu/~fliu/courses/cs447/ projects D2L homework, lecture slides, reading Mailing List https://groups.google.com/forum/#!forum/cs_447_fall_2017 Announcement, discussion Everyone needs a Computer Science department computer account Get account at CAT at http://cat.pdx.edu 9

Textbooks & Readings Fundamentals of Computer Graphics By Shirley et al. 4rd edition, A.K. Peters OpenGL Programming Guide By Shreiner et al. 8th edition (does not matter which edition) Early version available online http://www.glprogramming.com/red/ 10

Grading 20% Midterm 25% Final 10% Project 1 20% Project 2 Have the option to work in group 25% Homework 11

Homework Roughly one homework every two weeks 5 homework totally Primary to explore topics further and prepare you for the exams Some topics will be presented only in homework Review of linear algebra in Homework 1 12

Projects Project 1: Image editing Project 2: Building a virtual theme park Visual C++ & FLTK & OpenGL 13

C++ Required for this class You presumably have taken CS 202 or its equivalence for C++ We ll provide tutorials for you to use C++ within Visual Studio 2008/2010 Help you get familiar with VS 08, NOT C++ Visual Studio 2012 is similar 14

Software Infrastructure FLTK will be the user interface toolkit Provides windows, buttons, menus, etc C++ class library, completely portable Available for free: www.fltk.org OpenGL will be the 3D rendering toolkit Provides an API for drawing objects specified in 3D Included as part of Windows and in most Unix distributions getting hardware acceleration may take some effort Visual Studio 2008/2010/2012 will be the programming environment for grading To be graded, your projects must compile under Visual C++ on the machines in Windows Lab 15

Lab Facilities EB 325: Windows Lab Visual Studio 2012 installed You need a Computer Science department account to use any CS labs Request one from CAT 16

Graphics and Vision at PSU Undergraduate/graduate courses Fall: Computer Graphics Winter: Introduction to Computer Vision Graduate course Spring: Computational Photography Senior undergraduate students are welcome too 17

Admin Questions? 18

Today Course overview and information Digital Images Homework 1 due Oct. 05 in class 19

Images An image is intended to describe the light that arrives at your eyes when you view it You can be even more abstract: image describes what you should think when you see it Different display devices convey the image content in different ways e.g. printer and computer monitors use two different approaches The same image may look different on different monitors Who cares? 20

Image Formats We are familiar with many forms of image: Photographs Paintings Sketches Television (NTSC, PAL-SECAM) Digital formats (JPEG, PNG, GIF, BMP, TGA, etc.) Each form has its own way of obtaining and storing the information content 21

Digital Images Many formats exist for storing images on a computer JPEG, PNG, GIF, BMP, TGA, etc. There are some conflicting goals: The storage cost should be minimized 22

Digital Images Many formats exist for storing images on a computer JPEG, PNG, GIF, BMP, TGA, etc. There are some conflicting goals: The storage cost should be minimized The amount of information stored should be maximized The size of something and the amount of information is contained are not the same thing Original information versus perceptual equivalence Tracking ownership may be important Most formats you are familiar with are raster images 23

Raster Images A raster is a regular grid of pixels (picture elements) Raster image formats store the color at each pixel, and maybe some other information Easiest is to use a simple array of pixel values Some formats store the pixel information in very different ways e.g. a 5x3, floating point, grayscale image 0.25 0.5 0.25 0.5 0.25 1 0.25 0 0.25 1 0.25 0.5 0.25 0.5 0.25 24

Vector Images Vector formats offer an alternative way to store images The most common use of vector formats are in fonts images of characters (Postscript, TrueType) Store images as collections of geometric primitives E.g. Lines, polygons, circles, curves, It is possible to go from a vector image to a raster image We ll learn how It is very hard to go the other way 25

Trade-Offs Which format, raster or vector, is easier to: Display? Resize (scale bigger or smaller)? Rotate? Crop (cut bits off at the edges)? 26

Obtaining Digital Images What are some methods for obtaining a digital image? 27

Obtaining Digital Images What are some methods for obtaining a digital image? Digital camera Scanning another image Other forms of scanning (e.g. medical) Editing existing digital images Paint or drawing programs Created from abstract data (e.g. math function plot) Rendered from a scene description 28

Ideal Images The information stored in images is often continuous in nature For example, consider the ideal photograph: It captures the intensity of light at a particular set of points coming from a particular set of directions (it s called irradiance) The intensity of light arriving at the camera can be any positive real number, and it mostly varies smoothly over space Where do you see spatial discontinuities in a photograph? Film Focal point 29

Digital Images Computers work with discrete pieces of information How do we digitize a continuous image? Break the continuous space into small areas, pixels Use a single value for each pixel - the pixel value (no color, yet) No longer continuous in space or intensity This process is fraught with danger, as we shall see Continuous Discrete Pixels: Picture Elements 30

Discretization Issues Can only store a finite number of pixels Choose your target physical image size, choose your resolution (pixels per inch, or dots per inch, dpi), determine width/height in pixels necessary Storage space goes up with square of resolution 600dpi has 4 more pixels than 300dpi Can only store a finite range of intensity values Typically referred to as depth - number of bits per pixel Directly related to the number of colors available and typically little choice Most common depth is 8, but also sometimes see 16 for grey Also concerned with the minimum and maximum intensity dynamic range What is enough resolution and enough depth? 31

Perceptual Issues Spatially, humans can discriminate about ½ a minute of arc At fovea, so only in center of view At 0.5m, about 0.1mm ( Dot pitch of monitors) Sometimes limits the required number of pixels Humans can discriminate about 8 bits of intensity Just Noticeable Difference experiments Limits the required depth for typical dynamic ranges Actually, it s 9-10 bits, but 8 is far more convenient 129 128 125 BUT, when manipulating images much higher resolution may be required 32

Intensity Perception Humans are actually tuned to the ratio of intensities, not their absolute difference So going from a 50 to 100 Watt light bulb looks the same as going from 100 to 200 Most computer graphics ignores this, giving poorer perceptible intensity resolution at low light levels, and better resolution at high light levels 33

Dynamic Range Image depth refers to the number of bits available, but not how those bits map onto intensities We can use those bits to represent a large range at low resolution, or a small range at high resolution Common display devices can only show a limited dynamic range, so typically we fix the range at that of the display device and choose high resolution Low range, high res All possible intensities High range, low res 34

More Dynamic Range Real scenes have very high and very low intensities Humans can see contrast at very low and very high light levels Can t see all levels all the time use adaptation to adjust Still, high range even at one adaptation level Film has low dynamic range around 100:1 Monitors are even worse Many ways to deal with the problem Way beyond the scope of this course 35

Display on a Monitor When images are created, a linear mapping between pixels and intensity is assumed For example, if you double the pixel value, the displayed intensity should double Monitors, however, do not work that way For analog monitors, the pixel value is converted to a voltage The voltage is used to control the intensity of the monitor pixels But the voltage to display intensity is not linear Similar problem with other monitors, different causes The outcome: A linear intensity scale in memory does not look linear on a monitor Even worse, different monitors do different things 36

Gamma Control The mapping from voltage to display is usually an exponential function: Idisplay I to monitor To correct the problem, we pass the pixel values through a gamma function before converting them to the monitor tomonitor 1 image This process is called gamma correction The parameter,, is controlled by the user It should be matched to a particular monitor Typical values are between 2.2 and 2.5 I The mapping can be done in hardware or software I 37

Next Time Color 38