Commit c1215ffb authored by Roland Levillain's avatar Roland Levillain
Browse files

Use mln::math::pi instead of a macro-based definition in Scribo.

	* scribo/preprocessing/deskew.hh
	(scribo::preprocessing::internal::perform_deskew): Here.
	(PI): Remove macro.
parent 6e6baf62
2013-08-27 Roland Levillain <roland@lrde.epita.fr>
Use mln::math::pi instead of a macro-based definition in Scribo.
* scribo/preprocessing/deskew.hh
(scribo::preprocessing::internal::perform_deskew): Here.
(PI): Remove macro.
2013-08-27 Roland Levillain <roland@lrde.epita.fr>
Do not declare main()'s arguments if they are not used.
......
......@@ -40,8 +40,6 @@
# include <mln/geom/rotate.hh>
# include <mln/value/int_u8.hh>
# define PI 3.1415926535897932384
namespace scribo
{
......@@ -380,7 +378,7 @@ namespace scribo
gx += -opt::at(gray, i - 1, j + 1) - 2 * opt::at(gray, i, j + 1) -
opt::at(gray, i + 1, j + 1);
double tanv = (PI / 2.0 - atan(gy / gx)) * 180.0 / PI;
double tanv = (math::pi / 2.0 - atan(gy / gx)) * 180.0 / math::pi;
if (tanv <= 25.0 || tanv >= 155.0)
{
......
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