Commit 874c85fe authored by Roland Levillain's avatar Roland Levillain
Browse files

Address Clang warnings in Milena.

	* mln/core/image/dmorph/mutable_extension_ima.hh,
	* tests/metal/is.cc,
	* tests/transform/fft.cc:
	Here.
parent 11434c3d
2014-05-22 Roland Levillain <roland@lrde.epita.fr>
Address Clang warnings in Milena.
* mln/core/image/dmorph/mutable_extension_ima.hh,
* tests/metal/is.cc,
* tests/transform/fft.cc:
Here.
2014-05-20 Roland Levillain <roland@lrde.epita.fr>
 
Improve tests on mln::border::mirror.
// Copyright (C) 2008, 2009, 2010 EPITA Research and Development Laboratory
// (LRDE)
// Copyright (C) 2008, 2009, 2010, 2014 EPITA Research and Development
// Laboratory (LRDE).
//
// This file is part of Olena.
//
......@@ -40,7 +40,7 @@ namespace mln
{
// Forward declaration.
template <typename I, typename J> struct mutable_extension_ima;
template <typename I, typename J> class mutable_extension_ima;
namespace internal
......
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2007, 2008, 2009, 2014 EPITA Research and Development
// Laboratory (LRDE).
//
// This file is part of Olena.
//
......@@ -39,7 +40,7 @@ struct dest
struct from_2
{
operator dest() const { dest* tmp; return *tmp; }
operator dest() const { dest* tmp = 0; return *tmp; }
};
......
// Copyright (C) 2004, 2012 EPITA Research and Development Laboratory
// Copyright (C) 2004, 2012, 2014 EPITA Research and Development Laboratory.
//
// This file is part of Olena.
//
......@@ -86,12 +86,15 @@ int main ()
io::pgm::save(out, "fft_trans_log.pgm");
for (int row = 40; row < im2.nrows() - 40; ++row)
for (int col = 0; col < im2.ncols(); ++col)
int nrows = im2.nrows();
int ncols = im2.ncols();
int hlen = 40;
for (int row = hlen; row < nrows - hlen; ++row)
for (int col = 0; col < ncols; ++col)
opt::at(im2, row, col) = 0;
for (int row = 0; row < im2.nrows(); ++row)
for (int col = 40; col < im2.ncols() - 40; ++col)
for (int row = 0; row < nrows; ++row)
for (int col = hlen; col < ncols - hlen; ++col)
opt::at(im2, row, col) = 0;
fft = fourier.transformed_image_log_magn<int_u8>(true);
......
Supports Markdown
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