Commit ea3b8de3 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Fix compilation related problems in viewer.

	* demo/viewer/image_view.cc: Fix a warning;

	* demo/viewer/main.cc: Include sauvola_ms.hh to compile related
	global variables.
parent 9630fe29
2013-03-07 Guillaume Lazzara <z@lrde.epita.fr>
Fix compilation related problems in viewer.
* demo/viewer/image_view.cc: Fix a warning;
* demo/viewer/main.cc: Include sauvola_ms.hh to compile related
global variables.
2013-03-07 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/binarization/internal/sauvola_ms_functor.hh: Handle
......
// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2010, 2013 EPITA Research and Development Laboratory
// (LRDE)
//
// This file is part of Olena.
//
......@@ -34,13 +35,13 @@ ImageView::wheelEvent(QWheelEvent* event)
else
sc = 1 / (1 - degrees / 100);
QPointF center = mapToScene(width() / 2, height() / 2);
QPointF mouse = mapToScene(event->pos());
// QPointF center = mapToScene(width() / 2, height() / 2);
// QPointF mouse = mapToScene(event->pos());
qreal dx = (mouse.x() - center.x());
qreal dy = (mouse.y() - center.y());
QPointF newCenter = QPointF (mouse.x() - dx / sc,
mouse.y() - dy / sc);
// qreal dx = (mouse.x() - center.x());
// qreal dy = (mouse.y() - center.y());
// QPointF newCenter = QPointF (mouse.x() - dx / sc,
// mouse.y() - dy / sc);
scale(sc, sc);
scaleUpdate();
}
......
// Copyright (C) 2010, 2011 EPITA Research and Development Laboratory
// (LRDE)
// Copyright (C) 2010, 2011, 2013 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -23,9 +23,10 @@
#include <mln/labeling/colorize.hh>
#include <mln/math/pi.hh>
#include <mln/io/magick/load.hh>
#include <scribo/make/debug_filename.hh>
#include <mln/debug/filename.hh>
#include <mln/literal/colors.hh>
#include <scribo/make/debug_filename.hh>
#include <scribo/binarization/sauvola_ms.hh>
int main(int argc, char** argv)
{
......
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