Skip to content

Commit

Permalink
adds a dct basis visualization example
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromoreira committed Mar 26, 2017
1 parent 94c3d4a commit fa26c58
Show file tree
Hide file tree
Showing 4 changed files with 272 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ As we can see it resembles the original image but it introduced lots of differen
>
> 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 is calculated, using weights which are unique for each index.
>
> You can also try to [visualize the DCT by looking at a simple image](/dct_better_explained.ipynb) formation over the DCT basis.
>
> ![dct calculation](/i/applicat.jpg "dct calculation")
>
> Source: https://www.iem.thm.de/telekom-labor/zinke/mk/mpeg2beg/whatisit.htm
Expand Down
270 changes: 270 additions & 0 deletions dct_better_explained.ipynb

Large diffs are not rendered by default.

Binary file added i/dct_basis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added i/z_char_8x8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fa26c58

Please sign in to comment.