03raster
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

03raster

on

  • 471 views

 

Statistics

Views

Total Views
471
Views on SlideShare
471
Embed Views
0

Actions

Likes
0
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

03raster Presentation Transcript

  • 1. Raster Graphics 고려대학교 컴퓨터 그래픽스 연구실
  • 2. 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?
  • 3. Display Hardware
    • Video Display Devices
      • Cathode Ray Tube (CRT)
      • Liquid Crystal Display (LCD)
      • Plasma panels
      • Thin-film electroluminescent display
      • Light-emitting diodes (LED)
    • Hard-Copy Devices
      • Ink-jet printer
      • Laser printer
      • Film recorder
      • Electrostatic printer
      • Pen plotter
  • 4. Cathode Ray Tube (CRT)
  • 5. Liquid Crystal Display (LCD)
  • 6. Raster Graphics
  • 7. Frame Buffer
  • 8. Frame Buffer Refresh
    • Refresh Rate
      • Usually 30~75 Hz
  • 9. Color Frame Buffer Blue channel Green channel Red channel 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0 255 150 75 0
  • 10. Color CRT
  • 11. 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?
  • 12. Output Primitives
    • Points
    • Lines
      • DDA Algorithm
      • Bresenham’s Algorithm
    • Polygons
      • Scan-Line Polygon Fill
      • Inside-Outside Tests
      • Boundary-Fill Algorithm
      • Antialiasing
  • 13. Points
    • Single Coordinate Position
      • Set the bit value(color code) corresponding to a specified screen position within the frame buffer
    x y setPixel ( x , y )
  • 14. Lines
    • Intermediate Positions between Two Endpoints
      • DDA, Bresenham’s line algorithms
    Jaggies = Aliasing
  • 15. DDA Algorithm
    • Digital Differential Analyzer
      • 0 < Slope <= 1
        • Unit x interval = 1
    x1 y1 x2 y2
  • 16. DDA Algorithm
    • Digital Differential Analyzer
      • 0 < Slope <= 1
        • Unit x interval = 1
      • Slope > 1
        • Unit y interval = 1
    x1 y1 x2 y2
  • 17. DDA Algorithm
    • Digital Differential Analyzer
      • 0 < Slope <= 1
        • Unit x interval = 1
      • Slope > 1
        • Unit y interval = 1
      • -1 <= Slope < 0
        • Unit x interval = -1
    x1 y2 x2 y1
  • 18. DDA Algorithm
    • Digital Differential Analyzer
      • Slope >= 1
        • Unit x interval = 1
      • 0 < Slope < 1
        • Unit y interval = 1
      • -1 <= Slope < 0
        • Unit x interval = -1
      • Slope < -1
        • Unit y interval = -1
    x1 y1 x2 y2
  • 19. Bresenham’s Line Algorithm
    • Midpoint Line Algorithm
      • Decision variable
      • d > 0 : choose NE
        • : d new = d old +a+b
      • d <= 0 : choose E
        • : d new = d old +a
    NE M Q P(x p , y p ) E
  • 20. Bresenham’s Algorithm(cont.)
    • Initial Value of d
    • Update d