6.6 Summary
In this chapter we focused on cImage—a module that contains a number of objects that can be used to manipulate digital images. In particular, cImage includes the following objects:
▶
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 edge detection, we introduced lists of lists—that is, lists that are elements ...
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