There's more...
This recipe introduced you to the idea of encapsulating an algorithm in a class using the strategy design pattern. The example algorithm used in this recipe consisted of identifying the pixels of an image that have a color sufficiently close to a specified target color. This computation could have been done otherwise. Also, the implementation of a strategy design pattern could be complemented with function objects.