Moore Neighborhood - Termination Condition

Termination Condition

The original termination condition was to stop after visiting the start pixel for the second time. This limits the set of contours the algorithm will walk completely. An improved stopping condition proposed by Jacob Eliosoff is to stop after entering the start pixel for the second time in the same direction you originally entered it.

Read more about this topic:  Moore Neighborhood

Famous quotes containing the words termination and/or condition:

    We hoped for a happy termination of this terrible war long before this; but God knows best, and has ruled otherwise.
    Abraham Lincoln (1809–1865)

    One might feel that, at my age, I should look on life with more gravity. After all, I’ve been privileged to listen, firsthand, to some of the most profound thinkers of my day ... who were all beset by gloom over the condition the world had gotten into. Then why can’t I view it with anything but amusement?
    Anita Loos (1894–1981)