Commit 8e0ab28c authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Small fixes.

	* mln/labeling/compute.hh: Add a missing include.

	* mln/literal/colors.hh: Revamp header.

	* mln/value/internal/make_generic_name.hh: Add a missing inline.

	* mln/value/qt/rgb32.hh: Add a missing inline and a useless
	literal.

	* mln/value/rgb.hh: Add a fixme.
parent 643c1595
2010-05-25 Guillaume Lazzara <z@lrde.epita.fr>
 
* mln/subsampling/antialiased.hh: Fix invalid output buffer size
which may lead to a segfault.
Small fixes.
* mln/labeling/compute.hh: Add a missing include.
* mln/literal/colors.hh: Revamp header.
* mln/value/internal/make_generic_name.hh: Add a missing inline.
* mln/value/qt/rgb32.hh: Add a missing inline and a useless
literal.
* mln/value/rgb.hh: Add a fixme.
2010-05-25 Guillaume Lazzara <z@lrde.epita.fr>
* mln/subsampling/antialiased.hh: Fix an invalid output buffer
size which may lead to a segfault.
 
2010-05-25 Guillaume Lazzara <z@lrde.epita.fr>
 
......@@ -50,6 +50,7 @@
# include <mln/core/concept/meta_accumulator.hh>
# include <mln/util/array.hh>
# include <mln/convert/from_to.hh>
# include <mln/geom/ncols.hh>
namespace mln
......
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......
......@@ -47,6 +47,7 @@ namespace mln
# ifndef MLN_INCLUDE_ONLY
inline
std::string make_generic_name(const char *name, int quantification)
{
std::stringstream out;
......
......@@ -642,8 +642,6 @@ namespace mln
}
const rgb32 rgb32::zero(0,0,0);
/*------------.
| Operators. |
`------------*/
......@@ -765,6 +763,7 @@ namespace mln
to = value::qt::rgb32(from, from, from);
}
// hsl -> rgb8.
template <typename H, typename S, typename L>
void from_to_(const value::hsl_<H,S,L>& from, value::qt::rgb32& to)
......@@ -773,12 +772,15 @@ namespace mln
to = v.to_equiv();
}
inline
void from_to_(const value::qt::rgb32& from, bool& to)
{
to = ((from == literal::black) ? false : true);
}
inline
void from_to_(const bool& from, value::qt::rgb32& to)
{
if (from)
......
......@@ -37,6 +37,9 @@
# include <mln/value/internal/make_generic_name.hh>
// FIXME: should we consider that mln_min may be negative? => wrong
// color formulae.
namespace mln
{
......
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