mln::make::impl::generic Namespace Reference


Functions

template<typename I, typename N>
util::graph influence_zone_adjacency_graph (const Image< I > &iz_, const Neighborhood< N > &nbh_, const typename I::value &nlabels)
 Generic implementation of make::influence_zone_adjacency_graph.
template<typename I, typename N>
util::couple< util::graph,
typename mln::trait::concrete
< I >::ret
rag_and_labeled_wsl (const Image< I > &wshd_, const Neighborhood< N > &nbh_, const typename I::value &nbasins)
 Create a region adjacency graph and a label image of the watershed line from a watershed image.
template<typename I, typename N>
util::graph region_adjacency_graph (const Image< I > &wshd_, const Neighborhood< N > &nbh_, const typename I::value &nbasins)
 Create a region adjacency graph from a watershed image.


Function Documentation

template<typename I, typename N>
util::graph mln::make::impl::generic::influence_zone_adjacency_graph ( const Image< I > &  iz_,
const Neighborhood< N > &  nbh_,
const typename I::value &  nlabels 
) [inline]

Generic implementation of make::influence_zone_adjacency_graph.

Create a graph from an influence zone image.

Parameters:
[in] iz_ influence zone image.
[in] nbh_ A neighborhood.
[in] nlabels number of influence zone in iz.
Returns:
util::graph Graph based on the adjacency of the influence zones.

Definition at line 106 of file influence_zone_adjacency_graph.hh.

References mln::util::graph::add_edge(), mln::util::graph::add_vertices(), mln::extension::adjust_fill(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::make::internal::influence_zone_adjacency_graph_dispatch(), and mln::make::internal::influence_zone_adjacency_graph_tests().

Referenced by mln::make::internal::influence_zone_adjacency_graph_dispatch().

template<typename I, typename N>
util::couple<util::graph,typename mln::trait::concrete< I >::ret> mln::make::impl::generic::rag_and_labeled_wsl ( const Image< I > &  wshd_,
const Neighborhood< N > &  nbh_,
const typename I::value &  nbasins 
) [inline]

Create a region adjacency graph and a label image of the watershed line from a watershed image.

Parameters:
[in] wshd_ Watershed image.
[in] nbh_ Neighborhood
[in] nbasins Number of influence zone in wshd.
Returns:
A couple. First element is the graph, second element is an image with a labeled watershed line.

	      |-----------------|		      |-----------------|
	      | 1 1 1 0 2 2 0 3 |                     | . . . 1 . . 2 . |
	      | 1 1 0 2 2 2 0 3 |                     | . . 1 . . . 2 . |
	      | 1 0 4 0 2 0 3 3 |           ---->     | . 1 . 3 . 4 . . |
	      | 0 4 4 4 0 5 0 3 |                     | 1 . . . 5 . 6 . |
	      |-----------------|                     |-----------------|

		Watershed image			      Labeled watershed line
	 (watershed line labeled with 0)


			|
			|
			|
			v

		  1 -- 2 - 3
		   \  /   /
		    4 -- 5

	    Region Adjacency graph (RAG)

	

Definition at line 130 of file rag_and_labeled_wsl.hh.

References mln::util::graph::add_edge(), mln::util::graph::add_vertices(), mln::extension::adjust_fill(), mln::util::array< T >::append(), mln::make::couple(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::data::fill(), mln::util::array< T >::nelements(), mln::make::internal::rag_and_labeled_wsl_dispatch(), mln::make::internal::rag_and_labeled_wsl_tests(), and mln::literal::zero.

Referenced by mln::make::internal::rag_and_labeled_wsl_dispatch().

template<typename I, typename N>
util::graph mln::make::impl::generic::region_adjacency_graph ( const Image< I > &  wshd_,
const Neighborhood< N > &  nbh_,
const typename I::value &  nbasins 
) [inline]

Create a region adjacency graph from a watershed image.

Parameters:
[in] wshd_ watershed image.
[in] nbh A neighborhood.
[in] nbasins number of influence zone in wshd.
Returns:
util::graph Graph based on the adjacency of the influence zones.

Definition at line 96 of file region_adjacency_graph.hh.

References mln::util::graph::add_edge(), mln::util::graph::add_vertices(), mln::extension::adjust_fill(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::make::internal::region_adjacency_graph_dispatch(), and mln::make::internal::region_adjacency_graph_tests().

Referenced by mln::make::internal::region_adjacency_graph_dispatch().


Generated on Sun Apr 25 02:03:18 2010 for Milena (Olena) by  doxygen 1.5.6