A mip-map is a set of images , where for all :
is a resampling of .
has extents .
As an overload of terminology, each is also called a mip-map. The meaning of the term should be clear from the context.
Pastel implements the MipMap
class for storing and manipulating
mip-maps. It is declared as:
template <typename Type, integer N = 2>
class MipMap;
Assume an n-dimensional image takes units of memory. Then the memory requirements for its mipmaps can be bounded by . For example:
Here is an example of a mip-map for a 2-dimensional image. The invidual mip-maps have been combined into a single image for visualization. Note: this image was originally 1024 x 1024, which I resampled to 512 x 512 to better fit the webpage.
A set of precomputed successive downsamplings of an image