Flood Fill - Large Scale Behaviour

Large Scale Behaviour

The primary technique used to control a flood fill will either be data-centric or process-centric. A data-centric approach can use either a stack or a queue to keep track of seed pixels that need to be checked. A process-centric algorithm must necessarily use a stack.

A 4-way floodfill algorithm that uses the adjacency technique and a queue as its seed pixel store yields an expanding lozenge-shaped fill.

Efficiency: 4 pixels checked for each pixel filled (8 for an 8-way fill).

A 4-way floodfill algorithm that use the adjacency technique and a stack as its seed pixel store yields a linear fill with "gaps filled later" behaviour. This approach can be particularly seen in older 8-bit computer games, such as those created with Graphic Adventure Creator.

Efficiency: 4 pixels checked for each pixel filled (8 for an 8-way fill).

Read more about this topic:  Flood Fill

Famous quotes containing the words large, scale and/or behaviour:

    Roughly speaking, any man with energy and enthusiasm ought to be able to bring at least a dozen others round to his opinion in the course of a year no matter how absurd that opinion might be. We see every day in politics, in business, in social life, large masses of people brought to embrace the most revolutionary ideas, sometimes within a few days. It is all a question of getting hold of them in the right way and working on their weak points.
    Aleister Crowley (1875–1947)

    I by no means rank poetry high in the scale of intelligence—this may look like affectation but it is my real opinion. It is the lava of the imagination whose eruption prevents an earthquake.
    George Gordon Noel Byron (1788–1824)

    The methodological advice to interpret in a way that optimizes agreement should not be conceived as resting on a charitable assumption about human intelligence that might turn out to be false. If we cannot find a way to interpret the utterances and other behaviour of a creature as revealing a set of beliefs largely consistent and true by our standards, we have no reason to count that creature as rational, as having beliefs, or as saying anything.
    Donald Davidson (b. 1917)