To Implement Boundary Fill Algorithm
To Implement Boundary Fill Algorithm
Implement
Algorithm
Boundary
Fill
4-Connected Region
Figure shows two methods for proceeding to neighbouring pixels from the
current test position. In the figure, four neighbouring points are tested.
The four neighbouring sides are refered as:
1.
2.
3.
4.
North
East
West
South
These are the pixel positions that are right, left above, and below the current
pixel. Areas filled by this method are called 4-connected. It is called 4-
8-Connected Region
The second method, shown in figure is used to fill more complex figures.
Here the set of neighbouring positions to be tested includes the four
diagonal pixels. Fill methods using this approach are called 8-connected.
The eight neighbouring sides are refered as:
1.
2.
3.
4.
5.
6.
7.
8.
North
East
West
South
North-East
North-West
South-East
South-West
Conclusion: