B inary images, as discussed in the preceding chapter, consist of pixels and groups of pixels selected on the basis of some property. The selection may be performed by thresholding brightness values, perhaps combining different color channels, or after processing to extract texture or other information. The goal of binarization is to separate features representing objects or structures from the background, so that counting, measurement, or matching operations can be performed.