* mln/io/pdf/load.hh,
* mln/io/tiff/load.hh:
Here.
---
milena/ChangeLog | 8 ++++++++
milena/mln/io/pdf/load.hh | 8 ++++----
milena/mln/io/tiff/load.hh | 10 +++++-----
3 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index ef4a090..8e8dbcc 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2013-08-27 Roland Levillain <roland(a)lrde.epita.fr>
+ Display Milena fatal errors on std::cerr, not std::cout.
+
+ * mln/io/pdf/load.hh,
+ * mln/io/tiff/load.hh:
+ Here.
+
+2013-08-27 Roland Levillain <roland(a)lrde.epita.fr>
+
Remove Milena debug code making side effects on streams.
* mln/accu/stat/median_alt.hh,
diff --git a/milena/mln/io/pdf/load.hh b/milena/mln/io/pdf/load.hh
index 84e0926..9fed1f4 100644
--- a/milena/mln/io/pdf/load.hh
+++ b/milena/mln/io/pdf/load.hh
@@ -201,7 +201,7 @@ namespace mln
{
case poppler::image::format_invalid:
case poppler::image::format_mono:
- std::cout << "Loading black and white pdf is not implemented!";
+ std::cerr << "Loading black and white pdf is not implemented!";
abort();
break;
case poppler::image::format_rgb24:
@@ -225,7 +225,7 @@ namespace mln
poppler::page_renderer pr;
if (! pr.can_render())
{
- std::cout << "PDF cannot be rendered! Make sure libpoppler is "
+ std::cerr << "PDF cannot be rendered! Make sure libpoppler is "
<< "compiled with a render backend." << std::endl;
abort();
}
@@ -282,7 +282,7 @@ namespace mln
if (first_page < 0 || first_page > (pdf->pages() - 1)
|| last_page < 0 || last_page > (pdf->pages() - 1))
{
- std::cout << "Error while loading PDF: page range is not correct!"
+ std::cerr << "Error while loading PDF: page range is not correct!"
<< std::endl;
abort();
}
@@ -313,7 +313,7 @@ namespace mln
{
if (pages[i] < 0 || pages[i] > pdf->pages() - 1)
{
- std::cout << "Error while loading PDF: selected page "
+ std::cerr << "Error while loading PDF: selected page "
<< pages[i] << " does not exist!" << std::endl;
abort();
}
diff --git a/milena/mln/io/tiff/load.hh b/milena/mln/io/tiff/load.hh
index 2fabcd9..c175459 100644
--- a/milena/mln/io/tiff/load.hh
+++ b/milena/mln/io/tiff/load.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009, 2012 EPITA Research and Development Laboratory
+// Copyright (C) 2009, 2012, 2013 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
@@ -156,7 +156,7 @@ namespace mln
uint16 data_size = bits_per_sample * samples_per_pixel;
if (data_size != 24 && data_size != 32)
{
- std::cout << "Trying to load a non color TIFF "
+ std::cerr << "Trying to load a non color TIFF "
<< "image into a color Milena image." << std::endl;
abort();
}
@@ -166,7 +166,7 @@ namespace mln
if (!TIFFReadRGBAImage(file, ima.ncols(), ima.nrows(), raster, 0))
{
- std::cout << "Error while reading the image file. Is it corrupted?"
+ std::cerr << "Error while reading the image file. Is it corrupted?"
<< std::endl;
abort();
}
@@ -231,7 +231,7 @@ namespace mln
TIFFGetField(file, TIFFTAG_SAMPLESPERPIXEL, &samples_per_pixel);
if (samples_per_pixel != 1)
{
- std::cout << "Trying to load a non grayscale TIFF "
+ std::cerr << "Trying to load a non grayscale TIFF "
<< "image into a grayscale Milena image." << std::endl;
abort();
}
@@ -241,7 +241,7 @@ namespace mln
if (!TIFFReadRGBAImage(file, ima.ncols(), ima.nrows(), raster, 0))
{
- std::cout << "Error while reading the image file. Is it corrupted?"
+ std::cerr << "Error while reading the image file. Is it corrupted?"
<< std::endl;
abort();
}
--
1.7.10.4
#271: Role of init_() in milena/mln/core/internal/image_morpher.hh
----------------------+------------------------
Reporter: levill_r | Owner: Olena Team
Type: defect | Status: new
Priority: critical | Milestone:
Component: Milena | Version: 2.0
Keywords: |
----------------------+------------------------
What is the purpose of the `init_()` routine in
`milena/mln/core/internal/image_morpher.hh`? As is, this routine does not
seem to be useful (or even to be called at all!).
Moreover:
* The declaration of init_() and its definition are not in the same
namespace (resp. `mln::impl` and `mln`).
* A specialization of this routine is disabled (should we remove it
completely?).
--
Ticket URL: <https://trac.lrde.epita.fr/olena/ticket/271>
Olena <http://olena.lrde.epita.fr>
Olena, a software platform dedicated to image processing.
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next has been updated
via 0a078938b8f3fdc10d234fe663ff74a4b6a44284 (commit)
via 8b31df65d090f1ac9965f0feb4d3bb68a17948f1 (commit)
via 588a6d4df5b2260df18ea39cd73dfdb2218120f6 (commit)
via 089d5ff91de9d30939ecb783a161ff542b0240ca (commit)
via 6919bfe815821aadac688e68ad2cc9c044786592 (commit)
via 870ac7ad52b84c32ffd4ec4b1dd0ba8d3e03760f (commit)
via 1e9b9bdc30b97729412d43c28c213461e52ed5eb (commit)
via 3f5d9e560d0d128aafa28be5fea3f1e8f8dad9d6 (commit)
via 02720ffe0da87af83572f465b4a5360e1a84ade8 (commit)
via bee3fa8b6c21739dafb6e3aabe059940a00f8ed3 (commit)
via 31f1d7085fcd358ae06d7bef523df048b38c7132 (commit)
via 5f1d602d3115879c4fdddf26e5c4ac68f043b671 (commit)
from 95ac14a3201bedb36199d8771972f8a48dddd5be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
No new revisions were added by this update.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 +
configure.ac | 6 +
milena/ChangeLog | 98 +++++
milena/headers.mk | 1 +
milena/mln/transform/fft.hh | 705 +++++++++++++++++++++++++++++++
milena/tests/transform/Makefile.am | 23 +-
milena/tests/transform/fft.cc | 105 +++++
milena/tests/unit_test/Makefile.am | 3 +-
milena/tests/unit_test/cond_tests_fftw3 | 1 +
milena/tests/unit_test/unit-tests.mk | 9 +
10 files changed, 954 insertions(+), 3 deletions(-)
create mode 100644 milena/mln/transform/fft.hh
create mode 100644 milena/tests/transform/fft.cc
create mode 100644 milena/tests/unit_test/cond_tests_fftw3
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch fft has been updated
discards 773114f96eeb083d260eed6e5a508d9b93d9c9b2 (commit)
via 0a078938b8f3fdc10d234fe663ff74a4b6a44284 (commit)
This update added new revisions after undoing existing revisions. That is
to say, the old revision is not a strict subset of the new revision. This
situation occurs when you --force push a change and generate a repository
containing something like this:
* -- * -- B -- O -- O -- O (773114f96eeb083d260eed6e5a508d9b93d9c9b2)
\
N -- N -- N (0a078938b8f3fdc10d234fe663ff74a4b6a44284)
When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
0a07893 Run FFT unit tests only when FFTW3 support is enabled.
-----------------------------------------------------------------------
Summary of changes:
milena/tests/unit_test/cond_tests_fftw3 | 1 +
1 file changed, 1 insertion(+)
create mode 100644 milena/tests/unit_test/cond_tests_fftw3
hooks/post-receive
--
Olena, a generic and efficient image processing platform