IT- 601: Computer Graphics Lecture-00 Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh 9/30/2016.

Slides:



Advertisements
Similar presentations
Graphics Primitives: line
Advertisements

CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1 Emmanuel Agu.
Section 3-1 to 3-2, 3-5 Drawing Lines Some of the material in these slides may have been adapted from university of Virginia, MIT, and Åbo Akademi University.
Computer Graphics 4: Bresenham Line Drawing Algorithm, Circle Drawing & Polygon Filling By:Kanwarjeet Singh.
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphics Drawing Elementary Figures Dr. Eng. Farag Elnagahy.
Line Drawing Algorithms
CS 450: COMPUTER GRAPHICS REVIEW: DRAWING LINES AND CIRCLES SPRING 2015 DR. MICHAEL J. REALE.
+ CPCS 391 Computer Graphics 1 Instructor: Dr. Sahar Shabanah Lecture 3.
Scan Conversion Algorithms
Scan conversion of Line , circle & ellipse
Line Drawing Algorithms. Rasterization-Process of determining which pixels give the best approximation to a desired line on the screen. Scan Conversion-Digitizing.
Advanced Manufacturing Laboratory Department of Industrial Engineering Sharif University of Technology Session # 7.
OUTPUT PRIMITIVES Screen vs. World coordinate systems ● Objects positions are specified in a Cartesian coordinate system called World Coordinate.
CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
Raster conversion algorithms for line and circle
Output Primitives Computer Graphics.
Implementation III Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CS123 | INTRODUCTION TO COMPUTER GRAPHICS Andries van Dam © Scan Conversion CS123 1 of 44Scan Conversion - 10/14/2014.
IT- 601: Computer Graphics Lecture-04 Scan Conversion Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh 9/3/2015.
1/1/20001 Topic >>>> Scan Conversion CSE Computer Graphics.
IT- 601: Computer Graphics Lecture-03 Scan Conversion
Dr. S.M. Malaek Assistant: M. Younesi
1 CPE 333 : Computer Graphics มหาวิทยาลัยเทคโนโลยีพระจอม เกล้าธนบุรี Dr. Natasha Dejdumrong.
Graphics Primitives: line. Pixel Position
WHERE TO DRAW A LINE?? Line drawing is accomplished by calculating intermediate positions along the line path between specified end points. Precise definition.
Scan Conversion Line and Circle
Informationsteknologi Monday, November 26, 2007Computer Graphics - Class 121 Today’s class Drawing lines Bresenham’s algorithm Compositing Polygon filling.
1Computer Graphics Implementation III Lecture 17 John Shearer Culture Lab – space 2
Introduction to Computer Graphics with WebGL
CS 480/680 Computer Graphics Implementation III Dr. Frederick C Harris, Jr. Fall 2011.
Introduction Computer Graphics & Its application Types of computer graphics Graphic display : random Scan & Raster Scan display Frame buffer and video.
CGMB214: Introduction to Computer Graphics
 A line segment in a scene is defined by the coordinate positions of the line end-points x y (2, 2) (7, 5)
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Image Synthesis Rabie A. Ramadan, PhD 7. 2 Image Rasterization.
IT 301: Algorithm Analysis Lecture-00 Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, DhakaBangladesh 11/29/2015.
CS-321 Dr. Mark L. Hornick 1 Line Drawing Algorithms.
1 CSCE 441 Lecture 2: Scan Conversion of Lines Jinxiang Chai.
GEOMETRY AND LINE GENERATION Geometry and Line Generation Chapter 2.
In the name of God Computer Graphics. Today Introduction Sampling Graphic Output Primitives 1.Line 2.Circle 3.Curve 4.polygon.
Scan Conversion.
Design and Analysis of Algorithms Introduction Instructors:1. B V Kiran Mayee, 2. A Madhavi
Lecture 13: Raster Graphics and Scan Conversion
Lecture 2: 19/4/1435 Graphical algorithms Lecturer/ Kawther Abas CS- 375 Graphics and Human Computer Interaction.
Rasterization Overview Raster Display Device. Scan Conversion / Rasterization: converting vector graphics into raster graphics (determining pixels in.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Computer Graphics Inf4/MSc Computer Graphics Lecture 4 Line & Circle Drawing.
Scan Conversion of Line Segments. What is Scan conversion? Final step of rasterization (the process of taking geometric shapes and converting them into.
Computer Graphics : output primitives.. 2 of 32 T1 – pp. 103–123, 137–145, 147–150, 164–171 Points and LinesPoints Line Drawing AlgorithmsLine Mid–Point.
Computer Graphics I, Fall 2010 Scan conversion algorithms.
Line Drawing Algorithms 1. A line in Computer graphics is a portion of straight line that extends indefinitely in opposite direction. 2. It is defined.
Objectives Understand Bresenhams line drawing algorithm. Apply the algorithm to plot a line with the end points specified.
Primitive graphic objects
CSCE 441 Lecture 2: Scan Conversion of Lines
CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1
Lecture 8 Shear and Line Drawing Algorithms
University of New Mexico
Implementation III.
Introduction to Computer Graphics with WebGL
CSCE 441 Lecture 2: Scan Conversion of Lines
Rasterization and Antialiasing
Quick Graphs Using Slope-Intercept Form
Computer Graphics Implementation III
Rasterization and Antialiasing
Edited from The Rasterization Problem: Idealized Primitives Map to Discrete Display Space Edited from.
Use power series to solve the differential equation. y ' = 7xy
Chapter 3 Graphics Output Primitives
SUBJECT : COMPUTER GRAPHICS
Implementation III Ed Angel Professor Emeritus of Computer Science
COMP 122 – Design and Analysis of Algorithms
Presentation transcript:

IT- 601: Computer Graphics Lecture-00 Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh 9/30/2016

Course Overview  Tutorial 01  Introduction(L00)  Scan Conversion(L01+L02+L03)  Two – Dimnnsional Traformations(L04+L05+L06).   Tutorial 02  Two – Dimnnsional Viewing and Clipping (L07+L08+L09)  Three – Dimnnsional Traformations(L10+L11+L12)  Mathematics of Projection(L13+L14+L15)   Tutorial 03  Geometric Representation( L16+L17 )  Hidden Surfaces( L18+L19) )  Color Model(L20)   Mathematics for two dimensional Computer Graphics(L21)  Image Representation(L22) 2.5 Sets 2 Sets 1.5 Sets 1 Set

Course Policy No late homework is acceptable. Cheating directly affects the reputation of Department and the University and lowers the morale of other students. Cheating in homework and exam will not be tolerated. An automatic grade of 0 will be assigned for any student caught cheating. Presenting another person’s work as your own constitutes cheating.

Primary Focus Develop thinking ability. – problem solving skills. – formal thinking.

Goals Intro 5 Be very familiar with a collection of Computer Graphics algorithms. Be intimately familiar with mathematics for Computer Graphics Be able to apply techniques in practical problems.

Textbook & References Schaum’s ouTlines series, THEORY AND PROBLEM OF COMPUTER GRAPHICS,Second Edition,McGraw Hill.

How to Succeed in this Course Start early on all assignments. DON'T procrastinate. Complete all reading before class. Participate in class. Think in class. Review after each class. Be formal and precise on all problem sets and in-class exams.

IT- 601: Computer Graphics Chapter 3 Scan Conversion Lecture-01 Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh 9/30/2016

Scan Conversion Graphics System convert – each primitive(points,lines, circles, ellipses etc.) from its geometric definition into a set of pixels that make up the picture in the image space. – This Conversion task is referred to as Scan Conversion.

Scan Converting a point (x,y) where x and y are real numbers within an image area. Need to be scan converted at pixel location

Scan Converting a line Line drawing is accomplished by calculating intermediate positions along the line path between two specified end points. It is defined by the line equation y=mx+b, m is slope and b the y intercept of the line. Two end points are p1(x1,y1) and p2(x2,y2) Line equation describes the coordinates of all the points that lie between the two end points. y=mx+b p1(x1,y1) p2(x2,y2) x y b

Direct use of the Line Equation Scan convert p1 and p2 to pixel coordinates then for every integer value of x between and excluding calculate the corresponding value of y using the equation and scan convert (x,y). then for every integer value of x between and excluding calculate the corresponding value of x using the equation and scan convert (x,y).

The digital differential analyzer (DDA) is an incremental scan-conversion method. Characterized by Performing calculations at each step using results from the preceding step. At each step i calculate (xi,yi) point on the line. Next point (xi+1,yi+1) DDA Algorithm

(x i, Round(y j )) (x i +1, y j +m) (x i, y j ) (x i +1, Round(y j +m)) Desired Line x1x2 y2 y1 DDA Algorithm

DDA (“Digital Differential Analyzer”) Assume 0  m  1. (x i,y i ) (x i,Round(y i )) (x i,Round(y i +m)) (x i,y i +m) Desired Line void Line(int x0, int y0, int x1, int y1, int value) { double y = y0; double m = (y1 – y0) / (x1 – x0); // 0 <= m <= 1 for (int x = x0; x <= x1; x++) { WritePixel(x, Round(y), value); y += m; } } Require to eliminate floating point operations & variables

DDA ALGORITHM DDA algorithm is faster than the direct use of the line equation since it calculates points on the line without any floating point multiplication Cumulative error occurs.