Code Monkey home page Code Monkey logo

fourier-drawing's Introduction

Fourier-Drawing

The Fourier transform can express a function in the time domain as a function in the frequency domain, which means every discrete 1D-signal is actually equal to the sum of its discrete frequency components(0Hz, 1Hz...Fs/2 Hz) with the components' phases respectively, so we can use the frequency components to reconstruct the original signal. For 2D-signal(complex number), its the same idea, just the frequency components become(0Hz, 1Hz...Fs Hz). We express the components in the form of spinning circles, so that the reconstruction of the signal becomes drawn by connected circles.

What does this do?

image

How to use?

image

Example of some features

image

In the end, "4(for) star" please:D

image

fourier-drawing's People

Contributors

timmmgz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

fourier-drawing's Issues

傅里叶画图问题请教

您好,我是一名深度学习爱好者,看了您的代码,对傅里叶画图非常有兴趣,这里有个问题希望能相您请教:
您所展示的,以及网上的例子,我看都是一笔画图,就是一笔把全部轮廓都画出来,这样会在画图过程中留下不必要的跳跃的线条。假设我要画一个人的轮廓,眼睛和鼻子,以及人的外部轮廓是不相连的,如果一笔画的话,那么两个眼睛之间、眼睛和鼻子之间,眼睛鼻子和外部轮廓之间就会留下连接的线条,这样画出来的图就不够美观了。
所以我想请教您,怎么可以自定义画笔的数量,比如我用四支笔,分别画两只眼睛、一个鼻子、一个外部轮廓,这样应该就没有多余的线条了,这个怎么实现?如果这样做的话,怎么从原始轮廓里面分割出眼睛和鼻子的路径?
我不清楚这个咋做,希望能得到您的回复

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.