Skip to content

Documentation on Interpolations for imshow and Image antialiasing #20494

Closed
@Neoanarika

Description

@Neoanarika

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 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.

Aliasing effects for hanning interpolations
Screenshot 2021-06-23 at 9 05 22 PM

No aliasing effects for nearest interpolations
Screenshot 2021-06-23 at 9 05 36 PM

Links:

Suggested Improvement

Include an example such as the one above of when nearest interpolations or matshow would be more appropriate then imshow with hanning.

Code to reproduce the aliasing effects:
https://colab.research.google.com/drive/1rnIc1mRPLz9nCsmg6Kt4G5erR3_A6dGv?usp=sharing

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions