5. Image Processing

Every page until now has handled pixel data only long enough to get it: capture a frame, configure a sensor, move bytes from the camera into RAM. Image processing turns the direction around – the pixels are the input, and the goal is whatever the application needs from them.

The image module is the toolkit. Every operation takes one or two Image objects and returns either a transformed Image – pixels filtered, thresholded, warped, or composited differently – or a list of result objects: blobs, lines, codes, matches, statistics. The two flavours compose. A typical pipeline cleans up the captured frame, extracts a set of result objects from it, turns those into measurements, and draws annotations back onto the frame for display.