Raster and vector images
In computer graphics and computer vision, an image is a two-dimensional picture that is used for a wide range of purposes. There are two classes – raster and vector images.
Raster images are rectangular arrays of picture elements (called pixels) and they are natural for representing photos from digital cameras. Modern computer screens are physical arrays of pixels, hence the screens are natural devices for displaying raster images.
Vector images consist of a number of graphical primitives such as lines, circles, and curves, and they are natural for representing precise drawings such as cartoons and graphs. Vector images can be scaled up without any loss of quality and increase in the size of memory, hence they are used for parametrical drawings.
openFrameworks works with both raster and vector images. In this chapter, we will deal with raster images only. For working with vector images, the examples/addons/svgExample
example.
Let's consider the two basic operations...