Commit 02720ffe authored by Roland Levillain's avatar Roland Levillain
Browse files

Exercise the Fast Fourier Transform.

	* tests/transform/fft.cc: Fix the path to the input image.
	* tests/transform/Makefile.am
	(check_PROGRAMS) [HAVE_FFTW3]: Add fft.
	(fft_SOURCES, fft_CPPFLAGS, fft_LDFLAGS) [HAVE_FFTW3]: New.
	(MOSTLYCLEANFILES): New.
parent bee3fa8b
2012-10-09 Roland Levillain <roland@lrde.epita.fr>
Exercise the Fast Fourier Transform.
* tests/transform/fft.cc: Fix the path to the input image.
* tests/transform/Makefile.am
(check_PROGRAMS) [HAVE_FFTW3]: Add fft.
(fft_SOURCES, fft_CPPFLAGS, fft_LDFLAGS) [HAVE_FFTW3]: New.
(MOSTLYCLEANFILES): New.
2012-10-09 Roland Levillain <roland@lrde.epita.fr>
 
Fix the Fast Fourier Transform.
# Copyright (C) 2008, 2009, 2010 EPITA Research and Development
# Laboratory (LRDE)
# Copyright (C) 2008, 2009, 2010, 2012 EPITA Research and Development
# Laboratory (LRDE).
#
# This file is part of Olena.
#
......@@ -28,4 +28,22 @@ check_PROGRAMS = \
influence_zone_geodesic_saturated
if HAVE_FFTW3
check_PROGRAMS += fft
fft_SOURCES = fft.cc
fft_CPPFLAGS = $(AM_CPPFLAGS) $(FFTW3_CPPFLAGS)
fft_LDFLAGS = $(AM_LDFLAGS) $(FFTW3_LDFLAGS)
endif HAVE_FFTW3
TESTS = $(check_PROGRAMS)
MOSTLYCLEANFILES = \
fft.pgm \
fft_copy.pgm \
fft_low_pass.pgm \
fft_trans_clipped.pgm \
fft_trans_log.pgm
// -*- c++ -*-
// Copyright (C) 2004 EPITA Research and Development Laboratory
// Copyright (C) 2004, 2012 EPITA Research and Development Laboratory
//
// This file is part of the Milena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
......@@ -33,6 +33,8 @@
#include <mln/opt/at.hh>
#include <mln/debug/println.hh>
#include "tests/data.hh"
#define CHECK(Condition) \
if (Condition) \
std::cout << "OK" << std::endl; \
......@@ -51,7 +53,7 @@ int main ()
int status = 0;
image2d<int_u8> im1;
io::pgm::load(im1, "lena.pgm");
io::pgm::load(im1, MLN_IMG_DIR "/lena.pgm");
fft<double> fourier(im1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment