際際滷

際際滷Share a Scribd company logo
Scan Conversion

The process of representing continuous
  graphics object as a collection of discrete
  pixels is called Scan Conversion.
For e.g a line is defined by its two end pts &
  the line equation, where as a circle is
  defined by its radius, center position &
  circle equation.
It is the responsibility of graphics system or
    the application program to convert each
    primitive from its geometric definition into
    a set of pixels that make up the primitive in
    image space. This conversion task is
    generally referred to as a scan conversion
    or rasterization.
In case of line, it can be possible that any
    pixel may have any floating value like
    (2.7,5) which will not be considered by the
    system.
Therefore, the process of making these
   coordinate according to systems
   assumption i.e (3,5) to plot the pixel is scan
   conversion.
Points to be remember:-
1.) All the objects should be drawn with
   constant brightness.
2.) Object should be independent of length &
    orientation.
Scan converting a Point:-
A mathematical point (x,y) where x & y are
   real numbers within an image area, needs
   to be scan-converted to a pixel at location
   (x,y).
This may be done by making x& y to be the
   integer part of x & y.
x= Floor(x) and y= Floor(y)
Floor is a function that returns the largest
   integer that is less than or equal to the
   argument.
The origin is at lower left corner of the pixel
  grid. All points that satisfy x< x <x+1 &
   y<y <y+1are mapped to pixel (x,y).
For e.g P1(1.7,0.8) is represented by pixel
  (1,0) P2(2.2,1.3) and P3(2.8,1.9) are both
  represented by pixel (2,1).

       2

       1
        0
        0,0   0   1   2
Another approach is to scan convert (x,y) by
  making x = Floor(x + 0.5) and y =
  Floor(y+0.5). This essentially places the
  origin of the coordinate system for (x,y) at
  the center of pixel(0,0). All point that
  satisfy x-0.5<x<x+0.5 & y-
  0.5<y<y+0.5
  are mapped to (x,y).This means that
  points P1 and P2 are now both represented
  by pixel (2,1) whereas point P3 is
  represented by pixel (3,2).
2                       P3
                   P2
1
              P1

0   0,0

     0    1   2         3

More Related Content

What's hot (20)

Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
Mohd Arif
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar
Computer Graphics - Output Primitive
Computer Graphics - Output PrimitiveComputer Graphics - Output Primitive
Computer Graphics - Output Primitive
Rupesh Mishra
BRESENHAMS LINE DRAWING ALGORITHM
BRESENHAMS  LINE DRAWING ALGORITHMBRESENHAMS  LINE DRAWING ALGORITHM
BRESENHAMS LINE DRAWING ALGORITHM
St Mary's College,Thrissur,Kerala
Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...
Mani Kanth
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
Mohd Arif
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
Ummiya Mohammedi
2d-transformation
2d-transformation2d-transformation
2d-transformation
Pooja Dixit
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
University of Potsdam
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2
Iftikhar Ahmad
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
Shading
ShadingShading
Shading
Amit Kapoor
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
Mani Kanth
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
University of Potsdam
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
International Institute of Information Technology (I族IT)
Character attributes
Character attributesCharacter attributes
Character attributes
shalinikarunakaran1
Computer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptxComputer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptx
R S Anu Prabha
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
Mohd Arif
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar
Computer Graphics - Output Primitive
Computer Graphics - Output PrimitiveComputer Graphics - Output Primitive
Computer Graphics - Output Primitive
Rupesh Mishra
Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...Window to viewport transformation&amp;matrix representation of homogeneous co...
Window to viewport transformation&amp;matrix representation of homogeneous co...
Mani Kanth
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
Mohd Arif
2d-transformation
2d-transformation2d-transformation
2d-transformation
Pooja Dixit
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2
Iftikhar Ahmad
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
Mani Kanth
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
University of Potsdam
Computer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptxComputer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptx
R S Anu Prabha

Similar to Intro to scan conversion (20)

Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
SanthiNivas
Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithms
Mohammad Sadiq
Computer graphics notes 2 tutorials duniya
Computer graphics notes 2   tutorials duniyaComputer graphics notes 2   tutorials duniya
Computer graphics notes 2 tutorials duniya
TutorialsDuniya.com
Unit 2
Unit 2Unit 2
Unit 2
ypnrao
2D Transformation
2D Transformation2D Transformation
2D Transformation
Asma Tehseen
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
PrathimaBaliga
Chapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptxChapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptx
Kokebe2
Computer graphics notes
Computer graphics notesComputer graphics notes
Computer graphics notes
RAJKIYA ENGINEERING COLLEGE, BANDA
CG-Lecture3.pptx
CG-Lecture3.pptxCG-Lecture3.pptx
CG-Lecture3.pptx
lakshitasarika2014
Computer graphic
Computer graphicComputer graphic
Computer graphic
nusratema1
Computer graphics lab report with code in cpp
Computer graphics lab report with code in cppComputer graphics lab report with code in cpp
Computer graphics lab report with code in cpp
Alamgir Hossain
Computer graphics notes watermark
Computer graphics notes watermarkComputer graphics notes watermark
Computer graphics notes watermark
RAJKIYA ENGINEERING COLLEGE, BANDA
10994479.ppt
10994479.ppt10994479.ppt
10994479.ppt
ALIZAIB KHAN
2D-Transformations-Transformations are the operations applied to geometrical ...
2D-Transformations-Transformations are the operations applied to geometrical ...2D-Transformations-Transformations are the operations applied to geometrical ...
2D-Transformations-Transformations are the operations applied to geometrical ...
BINJAD1
2D Transformation
2D Transformation2D Transformation
2D Transformation
ShahDhruv21
Unit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithmsUnit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithms
Amol Gaikwad
Unit 3
Unit 3Unit 3
Unit 3
Siddhant Goyal
Computer_Graphics_circle_drawing_techniq.ppt
Computer_Graphics_circle_drawing_techniq.pptComputer_Graphics_circle_drawing_techniq.ppt
Computer_Graphics_circle_drawing_techniq.ppt
AliZaib71
computer graphic and multimedia for the students of MCA
computer graphic and multimedia for the students of MCAcomputer graphic and multimedia for the students of MCA
computer graphic and multimedia for the students of MCA
RavinderKSingla
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)
Amit Kapoor
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
SanthiNivas
Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithms
Mohammad Sadiq
Computer graphics notes 2 tutorials duniya
Computer graphics notes 2   tutorials duniyaComputer graphics notes 2   tutorials duniya
Computer graphics notes 2 tutorials duniya
TutorialsDuniya.com
Unit 2
Unit 2Unit 2
Unit 2
ypnrao
2D Transformation
2D Transformation2D Transformation
2D Transformation
Asma Tehseen
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
PrathimaBaliga
Chapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptxChapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptx
Kokebe2
Computer graphic
Computer graphicComputer graphic
Computer graphic
nusratema1
Computer graphics lab report with code in cpp
Computer graphics lab report with code in cppComputer graphics lab report with code in cpp
Computer graphics lab report with code in cpp
Alamgir Hossain
2D-Transformations-Transformations are the operations applied to geometrical ...
2D-Transformations-Transformations are the operations applied to geometrical ...2D-Transformations-Transformations are the operations applied to geometrical ...
2D-Transformations-Transformations are the operations applied to geometrical ...
BINJAD1
2D Transformation
2D Transformation2D Transformation
2D Transformation
ShahDhruv21
Unit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithmsUnit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithms
Amol Gaikwad
Computer_Graphics_circle_drawing_techniq.ppt
Computer_Graphics_circle_drawing_techniq.pptComputer_Graphics_circle_drawing_techniq.ppt
Computer_Graphics_circle_drawing_techniq.ppt
AliZaib71
computer graphic and multimedia for the students of MCA
computer graphic and multimedia for the students of MCAcomputer graphic and multimedia for the students of MCA
computer graphic and multimedia for the students of MCA
RavinderKSingla
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)
Amit Kapoor

More from Mohd Arif (20)

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcp
Mohd Arif
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
Mohd Arif
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
Mohd Arif
Project identification
Project identificationProject identification
Project identification
Mohd Arif
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniques
Mohd Arif
Presentation
PresentationPresentation
Presentation
Mohd Arif
Pointers in c
Pointers in cPointers in c
Pointers in c
Mohd Arif
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peer
Mohd Arif
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systems
Mohd Arif
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdp
Mohd Arif
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgeting
Mohd Arif
Network management
Network managementNetwork management
Network management
Mohd Arif
Networing basics
Networing basicsNetworing basics
Networing basics
Mohd Arif
Loaders
LoadersLoaders
Loaders
Mohd Arif
Lists
ListsLists
Lists
Mohd Arif
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platform
Mohd Arif
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
Mohd Arif
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psec
Mohd Arif
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardware
Mohd Arif
Heap sort
Heap sortHeap sort
Heap sort
Mohd Arif
Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcp
Mohd Arif
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
Mohd Arif
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
Mohd Arif
Project identification
Project identificationProject identification
Project identification
Mohd Arif
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniques
Mohd Arif
Presentation
PresentationPresentation
Presentation
Mohd Arif
Pointers in c
Pointers in cPointers in c
Pointers in c
Mohd Arif
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peer
Mohd Arif
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systems
Mohd Arif
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdp
Mohd Arif
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgeting
Mohd Arif
Network management
Network managementNetwork management
Network management
Mohd Arif
Networing basics
Networing basicsNetworing basics
Networing basics
Mohd Arif
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platform
Mohd Arif
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
Mohd Arif
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psec
Mohd Arif
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardware
Mohd Arif
Heap sort
Heap sortHeap sort
Heap sort
Mohd Arif

Intro to scan conversion

  • 1. Scan Conversion The process of representing continuous graphics object as a collection of discrete pixels is called Scan Conversion. For e.g a line is defined by its two end pts & the line equation, where as a circle is defined by its radius, center position & circle equation.
  • 2. It is the responsibility of graphics system or the application program to convert each primitive from its geometric definition into a set of pixels that make up the primitive in image space. This conversion task is generally referred to as a scan conversion or rasterization. In case of line, it can be possible that any pixel may have any floating value like (2.7,5) which will not be considered by the system.
  • 3. Therefore, the process of making these coordinate according to systems assumption i.e (3,5) to plot the pixel is scan conversion. Points to be remember:- 1.) All the objects should be drawn with constant brightness. 2.) Object should be independent of length & orientation.
  • 4. Scan converting a Point:- A mathematical point (x,y) where x & y are real numbers within an image area, needs to be scan-converted to a pixel at location (x,y). This may be done by making x& y to be the integer part of x & y. x= Floor(x) and y= Floor(y) Floor is a function that returns the largest integer that is less than or equal to the argument.
  • 5. The origin is at lower left corner of the pixel grid. All points that satisfy x< x <x+1 & y<y <y+1are mapped to pixel (x,y). For e.g P1(1.7,0.8) is represented by pixel (1,0) P2(2.2,1.3) and P3(2.8,1.9) are both represented by pixel (2,1). 2 1 0 0,0 0 1 2
  • 6. Another approach is to scan convert (x,y) by making x = Floor(x + 0.5) and y = Floor(y+0.5). This essentially places the origin of the coordinate system for (x,y) at the center of pixel(0,0). All point that satisfy x-0.5<x<x+0.5 & y- 0.5<y<y+0.5 are mapped to (x,y).This means that points P1 and P2 are now both represented by pixel (2,1) whereas point P3 is represented by pixel (3,2).
  • 7. 2 P3 P2 1 P1 0 0,0 0 1 2 3