This commit is contained in:
Miloslav Ciz 2023-07-13 12:19:07 +02:00
parent e89960bcfb
commit 5cb3296fc9
11 changed files with 63 additions and 22 deletions

View file

@ -4,7 +4,7 @@ Mipmap (from Latin *multum in parvo*, *many in little*), is a digital image that
A basic form of a mipmap can be explained on the following example. Let's say we have an [RGB](rgb.md) image of size 1024x1024 pixels. To create its mipmap we call the base image level 0 and create progressively smaller versions (different levels) of the image by reducing the size four times (twice along one dimension) at each step. I.e. level 1 will be the base image downscaled to the size 512x512. If we are to use the mipmap for the common purpose of reducing aliasing, the downscaling itself has to be done in a way that doesn't introduce aliasing; this can be done e.g. by downscaling 2x2 areas in the base image into a single pixel by **averaging** the values of those 4 pixels (the averaging is what will prevent aliasing; other downscaling methods may be used depending on the mipmap's purpose, for example for a use as an accelerating structure we may take a maximum or minimum of the 4 pixels). Level 2 will be an image with resolution 256x256 obtained from the 512x512 image, and so on until the last level with size 1x1. In this case we'll have 11 levels which together form our mipmap.
This RGB mipmap can be shown (and represented in memory) as a "fractal image":
This RGB mipmap can be shown (and represented in memory) as a "[fractal](fractal.md) image":
```
_______________________________