Commit 10c5d398 authored by Roland Levillain's avatar Roland Levillain
Browse files

Help g++ 4.1 compile Scribo.

	* binarization/sauvola_threshold.hh: Help g++ 4.1 find an
	unambiguous overload of std::pow.
parent 66a28880
2010-04-09 Roland Levillain <roland@lrde.epita.fr>
Help g++ 4.1 compile Scribo.
* binarization/sauvola_threshold.hh: Help g++ 4.1 find an
unambiguous overload of std::pow.
2010-03-31 Roland Levillain <roland@lrde.epita.fr>
Have Scribo compile again.
......
......@@ -303,7 +303,7 @@ int main(int argc, char *argv[])
// Additional subscales.
for (unsigned i = 1; i < nb_subscale; ++i)
{
unsigned ratio = std::pow(q, i);
unsigned ratio = std::pow(float(q), int(i));
// std::cout << "Scale " << 2 + i << " - 1/" << s * ratio << std::endl;
timer_.restart();
unsigned
......@@ -332,7 +332,7 @@ int main(int argc, char *argv[])
for (int i = nb_subscale - 1; i >= 0; --i)
{
unsigned ratio = std::pow(q, i);
unsigned ratio = std::pow(float(q), int(i));
std::cout << "Scale " << 2 + i << " - 1/" << s * ratio << " merged" << std::endl;
......@@ -369,7 +369,7 @@ int main(int argc, char *argv[])
mln::fun::i2v::array<value::int_u16> f(nb_subscale, 0);
for (unsigned i = 0; i < nb_subscale; ++i)
{
unsigned ratio = std::pow(q, i);
unsigned ratio = std::pow(float(q), int(i));
f(i) = ratio * w;
}
......
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