OSDN Git Service

first
[psychlops/cpp.git] / osx / test / FFTWsample.cpp
1
2
3 #include <psychlops.h>
4  using namespace Psychlops;
5
6 void psychlops_main() {
7         Canvas cnvs(800, 768, Canvas::window);
8
9         std::string woot("hoge");
10         Widgets::Dialog::alert(woot);
11
12         Image source("test.png");
13         Image result;
14
15         //FFT2::getSpectrum(source, result, 0.2);
16         FFT2::filterImage(source, result, 10, 40, 2);
17
18         source.centering().shift(0,-200).draw();
19         result.centering().shift(0, 200).draw();
20         cnvs.flip();
21
22         while(!Input::get(Keyboard::esc)) {
23         }
24  }