Overview of Computer Graphics�&& Some Image Display
Instructor:
李同益
Readings
Overviews
PIXAR INTRO edit Animation
A Standard Graphics Pipeline
OpenGL traditional transformation �pipeline
v
e
r
t
e
x
Modelview
Matrix
Projection
Matrix
Perspective
Division
Viewport
Transform
Modelview
Modelview
Projection
●
●
●
object
eye
clip
normalized
device
window
glTranslate{fd}( x, y, z )
glRotate{fd}( angle, x, y, z )
glScale{fd}( x, y, z )
Polygon Rendering & Photorealistic Rendering
For example: OpenGL rendering v.s. Raytracing
Ray tracing
Ray tracing�
Scanning the David
height of gantry: 7.5 meters
weight of gantry: 800 kilograms
Point Rendering
Michelangelo’s Pieta
handmade replica
Holes:
Regular
or
Irregular
Molder Package
Sketch or Wireframe
Printing Arbitrary Meshes with a 5DOF Wireframe PrinterACM Transactions on Graphics (Proc. SIGGRAPH 2016)
Depth Cueing
Clipping (Far-plane)
Coloring
Hidden Surface Removal
Sketch�Applications
Constant Rendering
Facet Shading
Smooth Shading
Correct Highlight
Edge Silhouettes
Texture & Shadow
Procedural�and Displacement Texture
Ray tracing
Reflection
Global Illumination
Lighting
Direct ray
Reflection
Refraction
Shadow
Scattering
…………
…………
Photo image of
the real scene
Non-photorealistic
Rendering (NPR)
Applying different painterly styles.
表現主義
印象派
Hatching(影線) and cross hatch (交叉影線)
Deep learning for NPR
content image in different layers of CNN.
The idea of neural style transferring and content image in different layers of CNN.
Computer Graphics is about Movies!
Computer
Graphics
is about
Movies!
Computer Graphics is about Movies!
Cartoon Movie
Inspirational Video
Keep in mind: this film is entirely Computer-generated.
Games are OK here
How Machine Learning Helps Game Developers Express Creativity
Medical �Imaging
Computer Aided Design
Scientific Visualization
Graphical User Interfaces (GUIs)
WYSIWYG NPR:�Drawing Strokes Directly on 3D Models�
http://www.cs.princeton.edu/gfx/proj/wnpr/
Image Display��Some introduction, concept and applications
Tong-Yee Lee
Display Technologies
早期
Cathode Ray Tubes (CRTs)
Most common display device today
Evacuated glass bottle
(last remaining vacuum tube)
Heating element (filament)
Electrons attracted to focusing anode cylinder
Vertical and Horizontal deflection plates
Beam strikes phosphor coating on front of tube
陰極射線管(Cathode ray tube)
目前
LED螢幕的全稱是LED背光源液晶螢幕
Raster Displays
TV boomed in the 50s and early 60s
(they got cheap)
B/W TVs are basically oscilloscopes
(with a hardwired scan pattern)
Screen is traversed 60 times/sec
Even/Odd lines on alternate scans
早期
Cathode Ray Tubes (CRTs)
Color Video (RGB 三槍)
VR (Virtual Reality)�Head-Mounted Displays
Eye’s position,
orientation
Caves and Fish Bowls
Looking at NASA Space Station on display wall
http://www.cs.princeton.edu/~benshedd/
CSDisplayWall8&24/index.html
Review of Raster Displays
Alpha (transparency)
over
=
Applications for 3D Art Composer
Demo:
SIG05
By Chuang
Titanic
Matting and
Compositing
Compositing
α
F
B
C
foreground color
alpha matte
background plate
composite
compositing
equation
B
F
C
α=0
Compositing
α
F
B
C
composite
compositing
equation
B
F
C
α=1
Compositing
α
F
B
C
composite
compositing
equation
B
F
C
α=0.6
Matting
C
observation
compositing
equation
α
F
B
An Implementation of Robust Matting Algorithm
The Simplest File
Color Quantization
24 bit color
Quantization Error
Uniform Quantization
Uniform Quantization
Unexpected contours
Populosity Algorithm
Populosity Algorithm
Median Cut
Median Cut in Action
Original colors in color space
Median in long dimension
Recurse
Median Cut
Dithering to Black-and-White
Sample Images
Threshold Dithering
Naïve Threshold Algorithm
Random Modulation
Random Modulation
Classical Halftoning�i.e., newspaper
Halftone �Patterns
Trade spatial resolution with intensity resolution
Average by human eyes
original
2x2
3x3
Filtering Image
Using Filter Templates
Blurring Filter Examples
Gaussian Filter
Gaussian Filter
Median Filter
Edge detection
Other Filters
with threshold
Canny filter
A lots of stuff ……
Image Resizing Using Seam Carving�