Top Banner
1 In the name of God Computer Graphics
41

1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

Dec 27, 2015

Download

Documents

Avice Thompson
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

1

In the name of God

Computer Graphics

Page 2: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

2

Computer Graphics

ImageMathematical

Model

Image Analysis(pattern recognition)

Image Synthesis(Rendering)

Modeling Image processing

Page 3: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

3

Overview

• Introduction

• Geometry

• Interaction

• Graphic systems

1. Raster Graphics

2. Random Graphics

3. DVST

Page 4: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

4

References• Computer Graphics, Donald Hearn - M. Pauline Baker

2nd edition - international edition, Prentice Hall, 1994

1. Mathematical Elements For Computer Graphics ,

D.Roger and J.A. Adams, Mc Graw Hill 1990.

2. 3D Computer Graphics, Alan Watt, Addison Wesley,

1994.

3. Computer Graphics, Francis S. Hills, Mac Millan,

Publishing Company, 1990.

Page 5: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

5

Aims

• Introduce basic graphics concepts and terminology

• Base for development computer graphics programmes

OpenGL

C Programming Liner Algebra

Page 6: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

6

Introduction

What is Computer Graphic?

Applications

Hardware

Page 7: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

7

Introduction

Virtual reality

Computer graphics(Photo realistic rendering,

Non photo realistic rendering)

Image processing

image

Page 8: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

8

Interactive Computer Graphics

User

Application

Screen

input

image

Page 9: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

9

Supporting knowledge

• Computer science (algorithms, data structures, …)

• Mathematics (geometry, numerical, …)

• Physics (Optics, mechanics, …)

• Psychology (Colour, perception)

• Art and design

Page 10: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

10

Applications

• Computer Aided Design (CAD)

• Computer Aided Geometric Design (CAGD)

• Entertainment (animation, games, …)

• Geographic Information Systems (GIS)

• Visualization (Scientific Vis., Inform. Vis.)

• Medical Visualization

• …

Page 11: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

11

Representations in graphics

Vector Graphics

• Image is represented by continuous geometric objects: lines, curves, etc.

Raster Graphics

• Image is represented as an rectangular grid of coloured squares

Page 12: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

12

Vector graphics

• Graphics objects: geometry + colour

• Complexity ~ O(number of objects)

• Geometric transformation possible without loss of information (zoom, rotate, …)

• Diagrams, schemes, ...

• Examples: PowerPoint, CorelDraw, ...

Page 13: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

13

Raster graphics

• Generic

• Image processing techniques

• Geometric Transformation: loss of information

• Complexity ~ O(number of pixels)

• Jagged edges, anti-aliasing

• Realistic images, textures, ...

• Examples: Paint, PhotoShop, ...

Page 14: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

14

Conversion

Vector graphics

Rasterization, Pattern recognition

Scan conversion

Raster graphics

Page 15: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

15

display devices

bitmap screens (CRT & LCD)

displays

Page 16: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

16

bitmap displays

• screen is vast number of coloured dots

Page 17: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

17

anti-aliasing

Jaggies– diagonal lines that have discontinuities in due to horizontal raster scan

process.

Anti-aliasing– softens edges by using shades of line colour– also used for text

Page 18: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

18

Cathode ray tube

• Stream of electrons emitted from electron gun, focused and directed by magnetic fields, hit phosphor-coated screen which glows

• used in TVs and computer monitors

electron gun

focussing and deflection

electron beam

phosphor- coated screen

Page 19: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

19

HorizontalDeflectionPlate

Phosphor-CoatedScreen

HeatingFilament

ControlGrid

AcceleratingSystem

VerticalDeflectionPlate

Electron Beam

FocusingSystem

Cathode

CRT Basics

Page 20: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

20

• Output Devices

– CRT Displays– Hard Copy Devices

• Input Devices

– Locator– Stroke– String (Keyboard)– Valuator– Choice (Button)– Pick

CPU DP

Input Hard Copy

Display

Graphics Devices

Page 21: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

21

Output Devices

CRT BasicsDPDVST (Direct View Storage Tube)Refresh DisplayRaster - Scan DisplayOthers

CPU DP

Memory Hard Copy

Display

InputCRT Displays

Page 22: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

22

Why DP ?

– Scan conversion– Refreshing screen– Interfacing with interactive input devices– Raster operations– Character generation– Additional functions

CPU DP

Memory Input

CRT

DP (Display Processor)

Page 23: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

24

CPU DPU CRT

Input devices

Flood Gun

PrimaryElectronGun

Screen

Storage Grid

Collector Grid

DVST (Direct View Storage Tube)

Page 24: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

26

Fixed frame buffer sizeIndependent of picture complexity

input

pixel

CPU DP CRT

Frame Buffer(bit-map)Pixel = Picture element

Raster-Scan Display

Page 25: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

27

A raster-scan system displays an object as a set of points across each screen scan line

(a) (b)

(d)(c)

Page 26: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

28

12345678

Interlacing

Page 27: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

29

Liquid crystal displays

• Smaller, lighter, and … no radiation problems.

• Found on PDAs, portables and notebooks,… and increasingly on desktop and even for home TV

• also used in dedicted displays:digital watches, mobile phones

• How it works …– Top plate transparent and polarised, bottom plate reflecting.– Light passes through top plate and crystal, and reflects back to eye. – Voltage applied to crystal changes polarisation and hence colour– N.B. light reflected not emitted => less eye strain

Page 28: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

30

Reflectivelayer

Horizontalpolarizer

Horizontalgrid wires

Liquid-crystallayer

Verticalgrid wires

Verticalpolarizer

Viewingdirection

LCD ( Liquid Crystal Display ) Basics

Page 29: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

31

• Other Technology– Plasma-Panel Display– Laser Devices– Three-Dimensional Monitor

– Hard Copy Display– Printer– Plotter– 3D-printer

Page 30: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

32

special displays

Random Scan (Directed-beam refresh, vector display)– draw the lines to be displayed directly

– no jaggies

– lines need to be constantly redrawn

– rarely used except in special instruments

 Direct view storage tube (DVST)

– Similar to random scan but persistent => no flicker

– Can be incrementally updated but not selectively erased

Page 31: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

33

situated displays

• displays in ‘public’ places– large or small– very public or for small group

• display only– for information relevant to location

• or interactive– use stylus, touch sensitive screen

• in all cases … the location matters– meaning of information or interaction is related to the

location

Page 32: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

34

Input Devices/Method• Physical Devices

• Logical Devices

• Input Mode– Request mode

– Event mode

– Sample mode

Page 33: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

35

• Keyboards

Physical Devices

Page 34: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

36

• Dials

Page 35: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

37

• Touch Panels

Page 36: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

38

• Light Pen

Page 37: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

39

• Graphics Tablets

Page 38: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

40

• 3D-Tablet

Page 39: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

41

• Joystick / Mouse / Trackball

Page 40: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

42

• Button

Page 41: 1 In the name of God Computer Graphics. 2 Image Mathematical Model Image Analysis (pattern recognition) Image Synthesis (Rendering) ModelingImage processing.

43

• Voice Systems