Graphics Graphics Korea University cgvr.korea.ac.kr Raster Graphics 고려대학교 컴퓨터 그래픽스 연구실.

Slides:



Advertisements
Similar presentations
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
Advertisements

ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
2002 by Jim X. Chen: 1 Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology,
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Hidden Surface Removal 고려대학교 컴퓨터 그래픽스 연구실.
Achromatic and Colored Light CS 288 9/17/1998 Vic.
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
CMPE 466 COMPUTER GRAPHICS
CS 4731: Computer Graphics Lecture 24: Color Science
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
CST 494/598 Computer Graphics Anshuman Razdan i3dea.asu.edu/razdan.
CS248 Midterm Review. CS248 Midterm Mon, November 3, 7-9 pm, Gates B01 Mostly “short answer” questions – Keep your answers short and sweet! Covers lectures.
Color.
Aliasing and Anti-Aliasing Copyright Zachary Wartell, University of North Carolina at Charlotte, All Rights Reserved Revision: 10/24/2007 3:38:00 AM ©Zachary.
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Raster Graphics and Color
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
March Shape Drawing Algorithms Shmuel Wimer Bar Ilan Univ., Engineering Faculty.
Geometric Objects Computer Graphics Lab. Sun-Jeong Kim.
CGMB214: Introduction to Computer Graphics
Dr. S.M. Malaek Assistant: M. Younesi
Graphics Graphics Korea University cgvr.korea.ac.kr Raster Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Color Theory What is color? How do we describe and match colors? Color spaces.
Chapter 6: Color Image Processing Digital Image Processing.
Color Image Processing A spectrum of possibilities…
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Light and Color Graphics Systems / Computer.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
CS 325 Introduction to Computer Graphics 01 / 29 / 2010 Instructor: Michael Eckmann.
CS 325 Introduction to Computer Graphics 02 / 01 / 2010 Instructor: Michael Eckmann.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
CSC361/ Digital Media Burg/Wong
CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Attributes of Graphics Primitives Hearn & Baker Chapter 4 Some slides are taken from Robert Thomsons notes.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Raster Graphics and Color Greg Humphreys University of Virginia CS 445, Fall 2003.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Precautions for TAs Take control of the projector fan –Turn on the fan – don’t let students do this! –Turn off the fan only after the projectors cooled.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
CS552: Computer Graphics Lecture 17: Scan Conversion (Special Cases)
Computer Graphics CC416 Week 14 Filling Algorithms.
Attributes of Graphics Primitives Chapter 4
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
OUTPUT PRIMITIVES CEng 477 Computer Graphics METU, 2004.
Objectives Understand Bresenhams line drawing algorithm. Apply the algorithm to plot a line with the end points specified.
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
Attributes of Graphics Primitives Hearn & Baker Chapter 4
Design Concepts: Module A: The Science of Color
Lecture 9 Line Drawing Algorithms (Bresenham’s Line Algorithm)
Chapter 6: Color Image Processing
Slides taken from Scott Schaefer
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Primitive Drawing Algorithm
Color Theory What is color? How do we perceive it?
Primitive Drawing Algorithm
Color Perception of color Color spaces
Presentation transcript:

Graphics Graphics Korea University cgvr.korea.ac.kr Raster Graphics 고려대학교 컴퓨터 그래픽스 연구실

CGVR Graphics Korea University cgvr.korea.ac.kr Contents Display Hardware How are images display? Raster Graphics Systems How are imaging system organized Output Primitives How can we describe shapes with primitives? Color Models How can we describe and represent colors?

CGVR Graphics Korea University cgvr.korea.ac.kr Bresenham’s Line Algorithm Accurate and Efficient Use only incremental integer calculations Test the sign of an integer parameter Case) Positive Slope Less Than 1 After the pixel ( x k, y k ) is displayed, next which pixel is decided to plot in column x k+1 ?  ( x k +1, y k ) or ( x k +1, y k +1 ) xkxk ykyk x k +1 y k +1

CGVR Graphics Korea University cgvr.korea.ac.kr Bresenham’s Algorithm(cont.) Case) Positive Slope Less Than 1 y at sampling position x k Difference Decision parameter xkxk ykyk x k +1 y k +1 d 1 – d 2 < 0  (x k +1, y k ) d 1 – d 2 > 0  (x k +1, y k +1) d1d1 d2d2

CGVR Graphics Korea University cgvr.korea.ac.kr Bresenham’s Algorithm(cont.) Case) Positive Slope Less Than 1 Decision parameter Decision parameter of a starting pixel ( x 0, y 0 )

CGVR Graphics Korea University cgvr.korea.ac.kr Bresenham’s Algorithm(cont.) Algorithm for 0< m <1 Input the two line endpoints and store the left end point in ( x 0, y 0 ) Load ( x 0, y 0 ) into the frame buffer; that is, plot the first point Calculate constants Δx, Δy, 2Δy, and 2Δy− 2Δx, and obtain the starting value for the decision parameter as At each x k along the line, start at k =0, perform the following test:  If p k < 0, the next point to plot is ( x k +1, y k ) and  Otherwise, the next point to plot is ( x k +1, y k +1 ) and Repeat step 4 Δx times

CGVR Graphics Korea University cgvr.korea.ac.kr Polygons Filling Polygons Scan-line fill algorithm  Inside-Outside tests Boundary fill algorithm

CGVR Graphics Korea University cgvr.korea.ac.kr Scan-Line Polygon Fill Topological Difference between 2 Scan lines y : intersection edges are opposite sides y’ : intersection edges are same side y y’

CGVR Graphics Korea University cgvr.korea.ac.kr Scan-Line Polygon Fill (cont.) Edge Sorted Table C C’ B D E A 0 1 yAyA yDyD yCyC Scan-Line Number yEyE xAxA 1/m AE yByB xAxA 1/m AB y C’ xDxD 1/m DC yEyE xDxD 1/m DE yByB xCxC 1/m CB

CGVR Graphics Korea University cgvr.korea.ac.kr Inside-Outside Tests Self-Intersections Odd-Even rule Nonzero winding number rule exterior interior

CGVR Graphics Korea University cgvr.korea.ac.kr Boundary-Fill Algorithm Proceed to Neighboring Pixels 4-Connected 8-Connected

CGVR Graphics Korea University cgvr.korea.ac.kr Antialiasing Aliasing Undersampling: Low-frequency sampling Nyquist sampling frequency: Nyquist sampling interval: original sample reconstruct

CGVR Graphics Korea University cgvr.korea.ac.kr Antialiasing (cont.) Supersampling (Postfiltering) Pixel-weighting masks Area Sampling (Prefiltering) Pixel Phasing Shift the display location of pixel areas Micropositioning the electron beam in relation to object geometry

CGVR Graphics Korea University cgvr.korea.ac.kr Supersampling Subpixels Increase resolution (10, 20): Maximum Intensity (11, 21): Next Highest Intensity (11, 20): Lowest Intensity

CGVR Graphics Korea University cgvr.korea.ac.kr Supersampling Subpixels Increase resolution (10, 20): Maximum Intensity (11, 21): Next Highest Intensity (11, 20): Lowest Intensity

CGVR Graphics Korea University cgvr.korea.ac.kr Pixel-Weighting Masks Give More Weight to Subpixels Near the Center of a Pixel Area

CGVR Graphics Korea University cgvr.korea.ac.kr Area Sampling Set Each Pixel Intensity Proportional to the Area of Overlap of Pixel 2 adjacent vertical (or horizontal) screen grid lines  trapezoid (10, 20): 90% (10, 21): 15%

CGVR Graphics Korea University cgvr.korea.ac.kr Filtering Techniques Filter Functions (Weighting Surface) Box FilterCone FilterGaussian Filter

CGVR Graphics Korea University cgvr.korea.ac.kr Contents Display Hardware How are images display? Raster Graphics Systems How are imaging system organized? Output Primitives How can we describe shapes with primitives? Color Models How can we describe and represent colors?

CGVR Graphics Korea University cgvr.korea.ac.kr Electromagnetic Spectrum Visible Light Frequencies Range between Red: 4.3 x hertz (700nm) Violet: 7.5 x hertz (400nm)

CGVR Graphics Korea University cgvr.korea.ac.kr Visible Light The Color of Light is Characterized by Hue: dominant frequency (highest peak) Saturation: excitation purity (ratio of highest to rest) Brightness: luminance (area under curve) White Light Orange Light

CGVR Graphics Korea University cgvr.korea.ac.kr Color Perception Tristimulus Theory of Color Spectral-response functions of each of the three types of cones on the human retina

CGVR Graphics Korea University cgvr.korea.ac.kr Color Models RGB XYZ CMY HSV Others

CGVR Graphics Korea University cgvr.korea.ac.kr RGB Color Model Colors are Additive R GBColor 0.0 Black Red Green Yellow Magenta Cyan 1.0 White Blue

CGVR Graphics Korea University cgvr.korea.ac.kr RGB Color Cube

CGVR Graphics Korea University cgvr.korea.ac.kr RGB Spectral Colors Amounts of RGB Primaries Needed to Display Spectral Colors

CGVR Graphics Korea University cgvr.korea.ac.kr XYZ Color Model (CIE) Amounts of CIE Primaries Needed to Display Spectral Colors

CGVR Graphics Korea University cgvr.korea.ac.kr CIE Chromaticity Diagram Normalized Amounts of X and Y for Colors in Visible Spectrum (white)

CGVR Graphics Korea University cgvr.korea.ac.kr CIE Chromaticity Diagram Define Color Gamuts Represent Complementary Color Determine Dominant Wavelength and Purity

CGVR Graphics Korea University cgvr.korea.ac.kr RGB Color Gamut Color Gamut for a Typical RGB Computer Monitor (red) (green) (blue)

CGVR Graphics Korea University cgvr.korea.ac.kr CMY Color Model Colors are Subtractive C MYColor 0.0 White Cyan Magenta Blue Green Red 1.0 Black Yellow

CGVR Graphics Korea University cgvr.korea.ac.kr CMY Color Cube

CGVR Graphics Korea University cgvr.korea.ac.kr HSV Color Model Select a Spectral Color (Hue) and the Amount of White (Saturation) and Black (Value)

CGVR Graphics Korea University cgvr.korea.ac.kr HSV Color Model H SVColor Red Yellow Green Blue Magenta * White * Gray Cyan * *0.0Black

CGVR Graphics Korea University cgvr.korea.ac.kr HSV Color Model Cross Section of the HSV Hexcone