Practical Algorithms for Image Analysis: Descriptions, Examples, and Code