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

Do not use mln_VAR in Scribo.

	* scribo/debug/text_areas_image.hh,
	* src/misc/dmap.cc,
	* src/misc/morpho.cc,
	* src/misc/rectangularity.cc,
	* src/primitive/group/group_from_rag.cc:
	Here.
	* scribo/filter/objects_with_holes.hh,
	* scribo/table/internal/repair_lines.hh,
	* src/text_recognition_in_picture.cc:
	Do not include mln/core/var.hh.
parent 967c5779
2014-06-19 Roland Levillain <roland@lrde.epita.fr>
Do not use mln_VAR in Scribo.
* scribo/debug/text_areas_image.hh,
* src/misc/dmap.cc,
* src/misc/morpho.cc,
* src/misc/rectangularity.cc,
* src/primitive/group/group_from_rag.cc:
Here.
* scribo/filter/objects_with_holes.hh,
* scribo/table/internal/repair_lines.hh,
* src/text_recognition_in_picture.cc:
Do not include mln/core/var.hh.
2014-06-18 Roland Levillain <roland@lrde.epita.fr>
Make src/primitive/group/group_from_rag.cc compile again.
......
// Copyright (C) 2010, 2011 EPITA Research and Development Laboratory
// (LRDE)
// Copyright (C) 2010, 2011, 2014 EPITA Research and Development Laboratory
// (LRDE).
//
// This file is part of Olena.
//
......@@ -36,7 +36,6 @@
# include <mln/core/image/imorph/tr_image.hh>
# include <mln/core/var.hh>
# include <mln/core/routine/duplicate.hh>
# include <mln/data/paste.hh>
......@@ -103,7 +102,8 @@ namespace scribo
for_all_comps(i, comps)
if (comps(i).is_valid())
{
mln_VAR(tmp, duplicate(input_rgb | comps(i).bbox()));
typedef mln::sub_image<I, box2d> tmp_t;
tmp_t tmp = duplicate(input_rgb | comps(i).bbox());
typedef mln::fun::x2x::translation<P::dim, float> trans_t;
trans_t trans(dv - comps(i).bbox().pmin().to_vec());
......
// Copyright (C) 2009, 2010, 2011, 2013 EPITA Research and Development
// Copyright (C) 2009, 2010, 2011, 2013, 2014 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
......@@ -66,7 +66,6 @@
# include <mln/util/timer.hh>
# include <mln/value/label_16.hh>
# include <mln/core/var.hh>
#include <mln/debug/filename.hh>
......
// Copyright (C) 2009, 2011 EPITA Research and Development Laboratory
// (LRDE)
// Copyright (C) 2009, 2011, 2014 EPITA Research and Development Laboratory
// (LRDE).
//
// This file is part of Olena.
//
......@@ -57,8 +57,6 @@
# include <mln/value/rgb8.hh>
# include <mln/value/label_16.hh>
# include <mln/core/var.hh>
# include <scribo/make/debug_filename.hh>
# include <scribo/core/central_sites.hh>
......@@ -126,7 +124,6 @@ namespace scribo
mln::util::array<box<P> > result;
std::vector<bool> to_keep(tableboxes.nelements(), true);
//FIXME: use mln_VAR?
typedef
extension_ima<
const image_if<L,
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2014 EPITA Research and Development Laboratory (LRDE).
//
// This file is part of Olena.
//
......@@ -25,7 +25,6 @@
#include <mln/core/image/image2d.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/core/var.hh>
#include <mln/labeling/blobs.hh>
#include <mln/labeling/colorize.hh>
......@@ -66,10 +65,11 @@ int main(int argc, char *argv[])
label_16 nlabels;
image2d<label_16> lbl = labeling::blobs(ima, c8(), nlabels);
mln_VAR(res,
transform::distance_and_influence_zone_geodesic(lbl,
c8(),
mln_max(unsigned)));
typedef util::couple< image2d<unsigned>, image2d<label_16> > res_t;
res_t res =
transform::distance_and_influence_zone_geodesic(lbl,
c8(),
mln_max(unsigned));
io::pgm::save(labeling::wrap(res.first()), argv[2]);
io::ppm::save(labeling::colorize(value::rgb8(), res.second(), nlabels),
......
// Copyright (C) 2009, 2013 EPITA Research and Development Laboratory
// (LRDE)
// Copyright (C) 2009, 2013, 2014 EPITA Research and Development Laboratory
// (LRDE).
//
// This file is part of Olena.
//
......@@ -41,7 +41,6 @@
#include <mln/io/ppm/save.hh>
#include <mln/transform/distance_and_influence_zone_geodesic.hh>
#include <mln/core/var.hh>
#include <mln/win/hline2d.hh>
#include <mln/win/disk2d.hh>
......@@ -76,7 +75,11 @@ int main(int argc, char *argv[])
label_16 nlabels;
image2d<label_16> lbl = labeling::blobs(input, c8(), nlabels);
mln_VAR(res, transform::distance_and_influence_zone_geodesic(lbl, c8(), mln_max(unsigned)));
typedef util::couple< image2d<unsigned>, image2d<label_16> > res_t;
res_t res =
transform::distance_and_influence_zone_geodesic(lbl,
c8(),
mln_max(unsigned));
io::pgm::save(labeling::wrap(res.first()), "dmap.pgm");
io::ppm::save(labeling::colorize(rgb8(), res.second(), nlabels), "iz.ppm");
......
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2014 EPITA Research and Development Laboratory (LRDE).
//
// This file is part of Olena.
//
......@@ -25,7 +25,6 @@
#include <mln/core/image/image2d.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/core/var.hh>
#include <mln/literal/colors.hh>
......@@ -68,7 +67,8 @@ int main(int argc, char *argv[])
label_16 nlabels;
image2d<label_16> lbl = labeling::blobs(input, c8(), nlabels);
mln_VAR(dmap, transform::distance_geodesic(lbl, c8(), mln_max(unsigned)));
typedef image2d<unsigned> dmap_t;
dmap_t dmap = transform::distance_geodesic(lbl, c8(), mln_max(unsigned));
io::pgm::save(labeling::wrap(dmap), "dmap.pgm");
......
......@@ -25,7 +25,6 @@
#include <iostream>
#include <mln/core/var.hh>
#include <mln/core/image/image2d.hh>
#include <mln/core/image/edge_image.hh>
#include <mln/core/image/vertex_image.hh>
......@@ -188,13 +187,16 @@ int main(int argc, char* argv[])
/// Getting components links from a Region Adjacency graph.
mln_VAR(rag_data, primitive::link::with_rag(filtered_components, c8()));
typedef util::couple< util::graph, image2d<value::label_16> > rag_data_t;
rag_data_t rag_data = primitive::link::with_rag(filtered_components, c8());
mln_VAR(v_ima, scribo::graph::compute_vertex(accu::center<point2d>(),
rag_data.first(),
filtered_components.labeled_image(),
filtered_components.nelements()));
typedef vertex_image<void, algebra::vec<2u, float>, util::graph> v_ima_t;
v_ima_t v_ima =
scribo::graph::compute_vertex(accu::center<point2d>(),
rag_data.first(),
filtered_components.labeled_image(),
filtered_components.nelements());
//FOR DEBUGGING PURPOSE
{
......@@ -208,9 +210,10 @@ int main(int argc, char* argv[])
literal::blue);
#endif
mln_VAR(pv,
mln::make::p_vertices_with_mass_centers(filtered_components.labeled_image(),
rag_data.first()));
typedef p_vertices<util::graph, mln::fun::i2v::array<point2d> > pv_t;
pv_t pv =
mln::make::p_vertices_with_mass_centers(filtered_components.labeled_image(),
rag_data.first());
mln::debug::draw_graph(before_grouping, pv, literal::green, literal::green);
io::ppm::save(before_grouping,
......
// Copyright (C) 2009, 2010, 2011, 2013 EPITA Research and Development
// Laboratory (LRDE)
// Copyright (C) 2009, 2010, 2011, 2013, 2014 EPITA Research and Development
// Laboratory (LRDE).
//
// This file is part of Olena.
//
......@@ -98,7 +98,6 @@
#include <scribo/toolchain/text_in_picture.hh>
#include <mln/util/timer.hh>
#include <mln/core/var.hh>
#include <scribo/afp/components.hh>
......
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