Mip mapping

Back to Precomputed filtering

A mip-map is a set of images , where for all :

As an overload of terminology, each is also called a mip-map. The meaning of the term should be clear from the context.

Practice

Pastel implements the MipMap class for storing and manipulating mip-maps. It is declared as:

template <typename Type, integer N = 2>
class MipMap;

Memory requirements

Assume an n-dimensional image takes units of memory. Then the memory requirements for its mipmaps can be bounded by . For example:

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.

Files

Algorithms for mip-maps

MipMap class

A set of precomputed successive downsamplings of an image

MipMap example

Mipmap module