
454 The Image Processing Handbook, Seventh Edition
traffic cameras detect a car going through a red light, subtracting the image from one taken
a short time interval later, thresholding, and ANDing with a line in the direction of motion
gives a straightforward determination of speed (there is a small constant adjustment for the
orientation of the camera view). This is similar in principle to the reverse projection measure-
ment procedure shown in Chapter9.
Boolean logic with features
After the pixel groupings are identified or labeled as features, it is possible to carry out
Boolean logic at the feature level, rather than at the pixel level. Fi