Giter Club home page Giter Club logo

Comments (5)

timholy avatar timholy commented on July 19, 2024

This page points out that one can effectively use the same splines that we use for interpolation, but stretch them to cover the "grid" of the reduced-size image. Not entirely trivial to implement, but not insanely difficult either. I suspect the main question is whether we want to support multiple splines or just pick one. I suspect if we started with linear (triangular splines) we'd be pretty happy.

Interestingly, that page suggests handling one dimension at a time, rather than computing the result directly. It's the same strategy that restrict is using.

from imagetransformations.jl.

Evizero avatar Evizero commented on July 19, 2024

Thanks for the pointers. I think this is currently a little beyond me in terms of skill and time, but a good thing to keep in mind.

from imagetransformations.jl.

babaq avatar babaq commented on July 19, 2024

I am also curious about interpolations for upsampling/downsampling of images, the MATLAB and Pillow both support several methods, and some of them, for example , the Lanczos kernel seems easy to implement in the image filtering framework, is it possible to just add the kernel, and then, we can use filtering and imresize to achieve anti-aliasing resizing?

from imagetransformations.jl.

johnnychen94 avatar johnnychen94 commented on July 19, 2024

I am also curious about interpolations for upsampling/downsampling of images, the MATLAB and Pillow both support several methods, and some of them, for example , the Lanczos kernel seems easy to implement in the image filtering framework, is it possible to just add the kernel, and then, we can use filtering and imresize to achieve anti-aliasing resizing?

This is now available (provided by #115) since v0.8.11:

using Interpolations

imresize(img, sz; method=Lanczos(2))
imresize(img, sz; method=Lanczos4OpenCV())

from imagetransformations.jl.

johnnychen94 avatar johnnychen94 commented on July 19, 2024

I'm closing this in favor of #120 as I didn't observe any particular bad alias result.

But feel free to reopen it if this is still an issue.

from imagetransformations.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.