1 / 20

Raster Graphics

Raster Graphics. 고려대학교 컴퓨터 그래픽스 연구실. 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?. Display Hardware.

ohio
Télécharger la présentation

Raster Graphics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  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? cgvr.korea.ac.kr

  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 cgvr.korea.ac.kr

  4. Cathode Ray Tube (CRT) cgvr.korea.ac.kr

  5. Liquid Crystal Display (LCD) cgvr.korea.ac.kr

  6. Raster Graphics cgvr.korea.ac.kr

  7. Frame Buffer cgvr.korea.ac.kr

  8. Frame Buffer Refresh • Refresh Rate • Usually 30~75 Hz cgvr.korea.ac.kr

  9. 255 255 255 150 150 150 75 75 75 0 0 0 255 255 255 150 150 150 75 75 75 0 0 0 255 255 255 150 150 150 75 75 75 0 0 0 255 255 255 150 150 150 75 75 75 0 0 0 255 255 255 150 150 150 75 75 75 0 0 0 Color Frame Buffer Blue channel Green channel Red channel cgvr.korea.ac.kr

  10. Color CRT cgvr.korea.ac.kr

  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? cgvr.korea.ac.kr

  12. Output Primitives • Points • Lines • DDA Algorithm • Bresenham’s Algorithm • Polygons • Scan-Line Polygon Fill • Inside-Outside Tests • Boundary-Fill Algorithm • Antialiasing cgvr.korea.ac.kr

  13. Points • Single Coordinate Position • Set the bit value(color code) corresponding to a specified screen position within the frame buffer y setPixel (x, y) x cgvr.korea.ac.kr

  14. Lines • Intermediate Positions between Two Endpoints • DDA, Bresenham’s line algorithms Jaggies = Aliasing cgvr.korea.ac.kr

  15. y2 y1 x1 x2 DDA Algorithm • Digital Differential Analyzer • 0 < Slope <= 1 • Unit x interval = 1 cgvr.korea.ac.kr

  16. y2 y1 x1 x2 DDA Algorithm • Digital Differential Analyzer • 0 < Slope <= 1 • Unit x interval = 1 • Slope > 1 • Unit y interval = 1 cgvr.korea.ac.kr

  17. y1 y2 x1 x2 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 cgvr.korea.ac.kr

  18. y2 y1 x1 x2 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 cgvr.korea.ac.kr

  19. Bresenham’s Line Algorithm • Midpoint Line Algorithm • Decision variable • d > 0 : choose NE • : dnew= dold+a+b • d <= 0 : choose E • : dnew= dold+a NE Q M P(xp, yp) E cgvr.korea.ac.kr

  20. Bresenham’s Algorithm(cont.) • Initial Value of d • Update d cgvr.korea.ac.kr

More Related