GithubHelp home page GithubHelp logo

2D colored noise? about colorednoise HOT 7 OPEN

felixpatzelt avatar felixpatzelt commented on June 15, 2024
2D colored noise?

from colorednoise.

Comments (7)

felixpatzelt avatar felixpatzelt commented on June 15, 2024

Hi @yxiao1996,

thank you for the interesting question! Sorry it took me so long to answer, I am quite busy ATM and I wanted to look into this case a bit before answering since I never needed it myself.

from colorednoise.

yxiao1996 avatar yxiao1996 commented on June 15, 2024

Hi Felix, thanks a lot! I will test it.

from colorednoise.

felixpatzelt avatar felixpatzelt commented on June 15, 2024

Thanks for the response.

I have looked into it a bit more and improved some limitations of the prototype. However, I also found a bug that isn't fixed yet: In the 1-d case, the real valued fft is used, which is faster. The rfft2 and rfftn functions of numpy, however, only do the real valued fft over the last dimension and the complex one over the others. Therefore we have to choose the size of the random amplitudes and phases that are generated accordingly. I.e. I believe that we need to generate values for twice as many frequencies but the spectrum will be symmetrical since we want a real output. This stuff is currently not my day-to-day work anymore so I have to do it carefully :)

I am unfortunately unable to work on this for the next three weeks but I would be interested to finish a 2d generator as a library feature in mid to late April.

Feel free to post some updates or to create your own prototype or a PR and share it here, I will look at it as soon as I have time.

from colorednoise.

man-shu avatar man-shu commented on June 15, 2024

Hello! I have somehow stumbled upon the same question of generating pink noise 2d images. Have there been any updates so far?

EDIT: removed the StackOverflow question since it's already been referenced in the ipython notebook above

from colorednoise.

felixpatzelt avatar felixpatzelt commented on June 15, 2024

Hi @man-shu, I didn't hear back anything last year and so I wasn't sure that there is much interest in the feature. I could have another look as I remember it being almost done.

from colorednoise.

man-shu avatar man-shu commented on June 15, 2024

Yes, please! If you have some time...

from colorednoise.

Related Issues (6)

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.