GithubHelp home page GithubHelp logo

roflmaostc / fftresampling.jl Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 444 KB

A package for FFT based interpolations of N-dimensional arrays.

License: MIT License

Julia 100.00%
interpolations julia signal

fftresampling.jl's Introduction

Felix Wechsler

I'm currently working on computational optics topics such as 3D printing with light or wave propagation. Feel free to visit my webpage for more information.

A lot of my work is implemented in Julia Lang. I mainly use Arch Linux + AwesomeWM + Vim.

Published Code

Julia Lang

Some of my smaller packages:

Outdated:

Python

  • orpheuscc to manage event registrations of the Orpheus e.V. Written in Python + Django
  • Naive implementation of energy minimization with graph cuts.

OCaml

Toy projects

  • aiornot.fun: A quiz to test your knowledge whether you're able to idenfity an AI paper or non AI paper.

fftresampling.jl's People

Contributors

roflmaostc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

antoine-levitt

fftresampling.jl's Issues

Feature request: slow sinc interpolation at unevenly spaced points

Would be nice to have this work for arbitrary points, also multi-dimensional. I have this piece of code lying around:

# take an array ϕ defined at equispaced points and evaluate its
# Fourier interpolant at points xint
function fourier_interpolate(ϕ,xint)
    Y = fftshift(fft(ϕ))
    half_size = floor.(size(ϕ)./2)
    yval = zeros(size(xint))
    x = [[x[i] for x in xint] for i in 1:3]
    for k = 1:size(ϕ)[3], j = 1:size(ϕ)[2], i = 1:size(ϕ)[1]
	yval += Y[i,j,k]*exp.(im*2*pi*
			      ((i-1 - half_size[1]).*x[1] .+
			       (j-1 - half_size[2]).*x[2] .+
			       (k-1 - half_size[3]).*x[3]))
    end
    return real.(yval ./length(ϕ))
end

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Complex Signals

So far we are only sure that interpolation of real signals works correctly.
For complex signals we can consider splitting the signal in real and imaginary part and apply the real signal routine to each of them independently.

Todo

  • check the current functions for purely complex signal
  • check the current functions for complex signals

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.