What is scan line fill algorithm?
Scanline filling is basically filling up of polygons using horizontal lines or scanlines. The purpose of the SLPF algorithm is to fill (color) the interior pixels of a polygon given only the vertices of the figure.
What are the steps of scanline fill algorithm?
Scan Line Algorithm
- Step 1 − Find out the Ymin and Ymax from the given polygon.
- Step 2 – From each edge of the polygon from Ymin to Ymax, all the egdes are intersected by Scanline.
- Step 3 − Sort the intersection point in the increasing order of X coordinate i.e. (p0, p1), (p1, p2), and (p2, p3).
What are the rules for polygon filling using scan line fill algorithm?
Scan Line Algorithm Step 1 − Find out the Ymin and Ymax from the given polygon. Step 2 − ScanLine intersects with each edge of the polygon from Ymin to Ymax. Name each intersection point of the polygon. As per the figure shown above, they are named as p0, p1, p2, p3.
How many tables are in scan line method?
Two
Scan-Line Method Two important tables, edge table and polygon table, are maintained for this.
What is difference between scan fill and boundary fill algorithm?
Flood fill algorithm is also known as a seed fill algorithm….Boundary-fill algorithm:
Flood-fill Algorithm | Boundary-fill Algorithm |
---|---|
Flood-fill algorithm is comparatively slower than the Boundary-fill algorithm. | Boundary-fill algorithm is faster than the Flood-fill algorithm. |
What are random scan and raster scan techniques?
Raster scan and Random Scan are the technique used to display the picture of an object on the screen of the desktop/pc monitor. The Key Difference between Raster Scan and Random Scan, In Raster Scan electron beam, is swept across the screen, one row at a time, from top to bottom.
What do you mean by polygon filling?
Polygon Filling Filling a Polygon is the process of coloring every pixel that comes inside the Polygon region.
What is active edge list in scan line algorithm?
2. Active edges table(list): This table contains all those edges of the polygon that are intersected(crossed) by the current scan-line. The edges are dropped into the table in a sorted manner(Increasing value of x).
What is scan line in computer graphics?
A scan line (also scanline) is one line, or row, in a raster scanning pattern, such as a line of video on a cathode ray tube (CRT) display of a television set or computer monitor.
What is 4 connected and 8 connected method?
4-connected region: from a given pixel you can get to any other pixel in the region by a series of 4 way moves (up, down,left, right). 8-connected region: from a given pixel you can get to any other pixel in the region by a series of 8 way moves (up, down,left, right, up-left, up-right, down-left, down-right).
What are advantages of scan line fill algorithm?
The main advantage of scanline rendering over Z-buffering is that the number of times visible pixels are processed is kept to the absolute minimum which is always one time if no transparency effects are used—a benefit for the case of high resolution or expensive shading computations.