Commit 7e43020f authored by Roland Levillain's avatar Roland Levillain
Browse files

Catch up with the new interface of the topological watershed.

	* apps/constrained-connectivity/constrained-connectivity.cc: Here.
parent 0a1c7ac3
2013-08-29 Roland Levillain <roland@lrde.epita.fr>
Catch up with the new interface of the topological watershed.
* apps/constrained-connectivity/constrained-connectivity.cc: Here.
2010-05-11 Roland Levillain <roland@lrde.epita.fr>
 
Have the topological WST be more generic.
// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2009, 2013 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -164,11 +164,11 @@ int main(int argc, char* argv[])
This requires some changes in the topological WST implementation,
to make its component tree structure compatible with
morpho::tree::data. */
typedef p_array<tree_t::site> sites_t;
sites_t sites = data::sort_psites_decreasing(w);
morpho::tree::data<w_t, sites_t> t(w, sites, world::inter_pixel::e2e());
typedef p_array<tree_t::psite> psites_t;
psites_t psites = data::sort_psites_decreasing(w);
morpho::tree::data<w_t, psites_t> t(w, psites, world::inter_pixel::e2e());
// Create initial images for min and max values on sites (not components).
// Create initial images for min and max values on psites (not components).
mln_ch_value_(w_t, accu::stat::min<int_u8>) init_min_val;
initialize (init_min_val, w);
mln_ch_value_(w_t, accu::stat::max<int_u8>) init_max_val;
......
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