Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Scan Conversion: Representing Graphics Objects as Pixels, Lecture notes of Computer Graphics

Scan conversion is a process of representing graphics objects as a collection of pixels. Graphics objects are continuous, while pixels are discrete. Each pixel can have an on or off state. Algorithms have been developed to generate various graphical objects efficiently, including points, lines, sectors, arcs, ellipses, rectangles, polygons, characters, and filled regions. The process is also known as rasterization, and its implementation varies from software to hardware or a combination of both.

What you will learn

  • What is scan conversion and how does it work?
  • Which graphics objects can be scan converted and how is it done?
  • What are the advantages of using scan conversion algorithms?

Typology: Lecture notes

2020/2021

Uploaded on 01/13/2021

anmol-kaur-5
anmol-kaur-5 🇮🇳

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Scan Conversion Definition
It is a process of representing graphics objects as a collection of pixels. The graphics objects
are continuous. The pixels used are discrete. Each pixel can have either on or off state.
The circuitry of the video display device of the computer is capable of converting binary values
(0, 1) into a pixel on and pixel off information. 0 is represented by pixel off. 1 is represented
using pixel on. Using this ability graphics computer represent picture having discrete dots.
Any model of graphics can be reproduced with a dense matrix of dots or points. Most human
beings think graphics objects as points, lines, circles, ellipses. For generating graphical object,
many algorithms have been developed.
Advantage of developing algorithms for scan conversion
1. Algorithms can generate graphics objects at a faster rate.
2. Using algorithms memory can be used efficiently.
3. Algorithms can develop a higher level of graphical objects.
Examples of objects which can be scan converted
1. Point
2. Line
3. Sector
4. Arc
5. Ellipse
6. Rectangle
7. Polygon
8. Characters
9. Filled Regions
The process of converting is also called as rasterization. The algorithms implementation varies
from one computer system to another computer system. Some algorithms are implemented
using the software. Some are performed using hardware or firmware. Some are performed
using various combinations of hardware, firmware, and software.
pf3
pf4

Partial preview of the text

Download Scan Conversion: Representing Graphics Objects as Pixels and more Lecture notes Computer Graphics in PDF only on Docsity!

Scan Conversion Definition

It is a process of representing graphics objects as a collection of pixels. The graphics objects are continuous. The pixels used are discrete. Each pixel can have either on or off state. The circuitry of the video display device of the computer is capable of converting binary values (0, 1) into a pixel on and pixel off information. 0 is represented by pixel off. 1 is represented using pixel on. Using this ability graphics computer represent picture having discrete dots. Any model of graphics can be reproduced with a dense matrix of dots or points. Most human beings think graphics objects as points, lines, circles, ellipses. For generating graphical object, many algorithms have been developed. Advantage of developing algorithms for scan conversion

  1. Algorithms can generate graphics objects at a faster rate.
  2. Using algorithms memory can be used efficiently.
  3. Algorithms can develop a higher level of graphical objects. Examples of objects which can be scan converted
  4. Point
  5. Line
  6. Sector
  7. Arc
  8. Ellipse
  9. Rectangle
  10. Polygon
  11. Characters
  12. Filled Regions The process of converting is also called as rasterization. The algorithms implementation varies from one computer system to another computer system. Some algorithms are implemented using the software. Some are performed using hardware or firmware. Some are performed using various combinations of hardware, firmware, and software.

Pixel or Pel

The term pixel is a short form of the picture element. It is also called a point or dot. It is the smallest picture unit accepted by display devices. A picture is constructed from hundreds of such pixels. Pixels are generated using commands. Lines, circle, arcs, characters; curves are drawn with closely spaced pixels. To display the digit or letter matrix of pixels is used. The closer the dots or pixels are, the better will be the quality of picture. Closer the dots are, crisper will be the picture. Picture will not appear jagged and unclear if pixels are closely spaced. So the quality of the picture is directly proportional to the density of pixels on the screen. Pixels are also defined as the smallest addressable unit or element of the screen. Each pixel can be assigned an address as shown in fig: Different graphics objects can be generated by setting the different intensity of pixels and different colors of pixels. Each pixel has some co-ordinate value. The coordinate is represented using row and column. P (5, 5) used to represent a pixel in the 5th row and the 5th column. Each pixel has some intensity value which is represented in memory of computer called a frame buffer. Frame Buffer is also called a refresh buffer. This memory is a storage area for storing pixels values using which pictures are displayed. It is also called as digital memory. Inside the buffer, image is stored as a pattern of binary digits either 0 or 1. So there is an array of 0 or 1 used to represent the picture. In black and white monitors, black pixels are represented using 1's and white pixels are represented using 0's. In case of systems having one bit per pixel frame buffer is called a bitmap. In systems with multiple bits per pixel it is called a pixmap.

Scan Converting a Straight Line

A straight line may be defined by two endpoints & an equation. In fig the two endpoints are described by (x 1 , y 1 ) and (x 2 , y 2 ). The equation of the line is used to determine the x, y coordinates of all the points that lie between these two endpoints. Using the equation of a straight line, y = mx + b where m = & b = the y interrupt, we can find values of y by incrementing x from x =x 1 , to x = x 2. By scan-converting these calculated x, y values, we represent the line as a sequence of pixels.