6.6 Summary
In this chapter we focused on image processing using cImage—a module that contains the following objects for manipulating digital images:
ImageWin
EmptyImage
FileImage
Pixel
To process the pixels of an image, we used a pattern called nested iteration—that is, iteration inside iteration. Nested iteration allowed us to process all the pixels in a given row, column by column, before moving on to the next row. Using this iteration pattern, we implemented the following image processing algorithms:
Negative images
Grayscale images
Resized images
Flipped images
Edge detection
In this chapter we also introduced the notion of namespaces—collections of names available at a particular point in time. These namespaces are organized to allow ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access