ABSTRACT

This chapter describes a long tutorial about the use of the CImg library, to implement a first simple image processing application: the separation of an image into blocks of different sizes. It allows us to present the core functions and classes of the library, so that the reader will be able to easily handle the essential aspects of the library: read and write image files, access image pixels, perform simple filtering, draw various graphical primitives, display images, create an interactive view, etc. All is done so that by the end of this chapter, the reader has enough knowledge of the CImg library mechanisms to serenely tackle the following chapters, No background in image processing is necessary to understand this tutorial.