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 (18091865)
“It is at the same time by poetry and through poetry, by and through music, that the soul glimpses the splendors found behind the tomb; and when an exquisite poem brings tears to ones eyes, these tears are not the sign of excessive pleasure, they are rather witness to an irritated melancholy, to a condition of nerves, to a nature exiled to imperfection and which would like to seize immediately, on this very earth, a revealed paradise.”
—Charles Baudelaire (18211867)