adds simple DCT formation explanation

This commit is contained in:
Leandro Moreira
2017-03-15 15:16:13 -03:00
parent ef5d337c67
commit 8de149b72d
2 changed files with 10 additions and 0 deletions

View File

@@ -393,6 +393,16 @@ And then we reconstruct the image from this discarded block of coefficients (rem
As we can see it resembles the original image but it introduced lots of differences from the original, we **throw away 67.1875%** and we still were able to get at least something similar to the original. We could more intelligently discard the coefficients to have a better image quality but that's the next topic.
> **Each coefficient is formed using all pixels**
>
> It's important to note that each coefficient doesn't directly map to a single pixel but it's a weighted sum of all pixels. This amazing graph shows how the first and second coefficient are calculated, using weights which are unique for each index.
>
> ![dct calculation](/i/applicat.jpg "dct calculation")
>
> Source: https://www.iem.thm.de/telekom-labor/zinke/mk/mpeg2beg/whatisit.htm
<br/>
> ### Hands-on: throwing away different coefficients
> You can play around with the [DCT transform](/uniform_quantization_experience.ipynb).

BIN
i/applicat.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB