Title: Documentation on Interpolations for imshow and Image antialiasing · Issue #20494 · matplotlib/matplotlib · GitHub
Open Graph Title: Documentation on Interpolations for imshow and Image antialiasing · Issue #20494 · matplotlib/matplotlib
X Title: Documentation on Interpolations for imshow and Image antialiasing · Issue #20494 · matplotlib/matplotlib
Description: Problem I found interpolations for imshow and image antialiasing to be unclear because for natural images it is fair to use hanning interpolations due to the frequency spectrum for natural images but for something like a matrix of random...
Open Graph Description: Problem I found interpolations for imshow and image antialiasing to be unclear because for natural images it is fair to use hanning interpolations due to the frequency spectrum for natural images b...
X Description: Problem I found interpolations for imshow and image antialiasing to be unclear because for natural images it is fair to use hanning interpolations due to the frequency spectrum for natural images b...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20494
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation on Interpolations for imshow and Image antialiasing","articleBody":"### Problem\r\n\r\nI found interpolations for imshow and image antialiasing to be unclear because for natural images it is fair to use hanning interpolations due to the frequency spectrum for natural images but for something like a matrix of random Bernoulli this can lead to aliasing effects and other interpolations schemes such as nearest would be more appropriate. In general, this also gives a good example for why we should use matshow instead for imshow to visualise matrices. \r\n\r\nAliasing effects for hanning interpolations\r\n\u003cimg width=\"1368\" alt=\"Screenshot 2021-06-23 at 9 05 22 PM\" src=\"https://user-images.githubusercontent.com/5188337/123101599-d037c280-d466-11eb-9548-1e63e0b14c86.png\"\u003e\r\n\r\nNo aliasing effects for nearest interpolations\r\n\u003cimg width=\"1377\" alt=\"Screenshot 2021-06-23 at 9 05 36 PM\" src=\"https://user-images.githubusercontent.com/5188337/123101604-d168ef80-d466-11eb-859a-ae5eedbeaca3.png\"\u003e\r\n\r\nLinks:\r\n- https://matplotlib.org/stable/gallery/images_contours_and_fields/interpolation_methods.html\r\n- https://matplotlib.org/stable/gallery/images_contours_and_fields/image_antialiasing.html\r\n\r\n\r\n### Suggested Improvement\r\n\r\nInclude an example such as the one above of when nearest interpolations or matshow would be more appropriate then imshow with hanning. \r\n\r\nCode to reproduce the aliasing effects: \r\nhttps://colab.research.google.com/drive/1rnIc1mRPLz9nCsmg6Kt4G5erR3_A6dGv?usp=sharing","author":{"url":"https://github.com/MLdoesML","@type":"Person","name":"MLdoesML"},"datePublished":"2021-06-23T13:10:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/20494/matplotlib/issues/20494"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d344a14c-1dcd-b79e-945d-ee926f5fe853 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D890:152AB4:A7CE21:E26377:6A531981 |
| html-safe-nonce | 11c965fe811938fd1c5050d19c76588a6f4a373e8846c4d0d7f5e1d3a629f802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODkwOjE1MkFCNDpBN0NFMjE6RTI2Mzc3OjZBNTMxOTgxIiwidmlzaXRvcl9pZCI6Ijc3NzUzMzg0NDIzMjU0MjU5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e3885fb81f41389c9d50ec139ae9c05c7b529723bc38ee88ed583afad20b8c71 |
| hovercard-subject-tag | issue:928241550 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/20494/issue_layout |
| twitter:image | https://opengraph.githubassets.com/028ef5c5ea6e568f8c97db969c10a819309e413ffdfbc83d4b2a9f583ff88ae3/matplotlib/matplotlib/issues/20494 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/028ef5c5ea6e568f8c97db969c10a819309e413ffdfbc83d4b2a9f583ff88ae3/matplotlib/matplotlib/issues/20494 |
| og:image:alt | Problem I found interpolations for imshow and image antialiasing to be unclear because for natural images it is fair to use hanning interpolations due to the frequency spectrum for natural images b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MLdoesML |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width