Region Filling: 168 471 Computer Graphics, KKU. Lecture 7 1
Region Filling: 168 471 Computer Graphics, KKU. Lecture 7 1
Region Filling: 168 471 Computer Graphics, KKU. Lecture 7 1
4-connected 8-connected
168 471 Computer Graphics, KKU. Lecture
2
7
Boundary Fill Algorithm
• Start at a point inside a region
• Paint the interior outward to the edge
• The edge must be specified in a single color
• Fill the 4-connected or 8-connected region
• 4-connected fill is faster, but can have problems: