Classes | Functions

mln::labeling::internal Namespace Reference

Classes

struct  compute_functor
 Functor not computing anything. More...
struct  dummy_functor
 Functor not computing anything. More...

Functions

template<typename A , typename L >
util::array< typename A::result > compute_dispatch (const Accumulator< A > &a, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_access::any, mln::trait::image::value_access::any, mln::trait::image::ext_domain::any, mln::trait::image::ext_domain::any, const Accumulator< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_access::direct, mln::trait::image::value_access::direct, mln::trait::image::ext_domain::some, mln::trait::image::ext_domain::some, const Accumulator< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (util::array< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename L >
util::array< typename A::result > compute_dispatch (util::array< A > &accus, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_storage::any, mln::trait::image::value_storage::any, const Accumulator< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_storage::one_block, mln::trait::image::value_storage::one_block, const Accumulator< A > &a, const Image< I > &input_, const Image< L > &label_, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (const Accumulator< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_access::any, mln::trait::image::value_access::any, mln::trait::image::ext_domain::any, mln::trait::image::ext_domain::any, util::array< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_access::direct, mln::trait::image::value_access::direct, mln::trait::image::ext_domain::some, mln::trait::image::ext_domain::some, util::array< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
util::array< typename A::result > compute_dispatch (mln::trait::image::value_storage::one_block, mln::trait::image::value_storage::one_block, util::array< A > &a, const Image< I > &input_, const Image< L > &label_, const typename L::value &nlabels)
template<typename A , typename L >
mln::trait::ch_value< L, A >::ret compute_image (const util::array< A > &a, const Image< L > &labels_, const typename L::value &nlabels)
template<typename A , typename L >
void compute_tests (const Accumulator< A > &a, const Image< L > &label, const typename L::value &nlabels)
template<typename A , typename I , typename L >
void compute_tests (const Accumulator< A > &a, const Image< I > &input, const Image< L > &label, const typename L::value &nlabels)
template<unsigned n, typename I , typename L >
mln::trait::concrete< I >::ret mean_values_dispatch (const value::rgb< n > &, const Image< I > &input, const Image< L > &lbl, typename L::value nlabels)
template<typename I , typename L >
mln::trait::concrete< I >::ret mean_values_dispatch (const typename I::value &, const Image< I > &input, const Image< L > &lbl, typename L::value nlabels)
template<typename I , typename L >
mln::trait::concrete< I >::ret mean_values_dispatch (const Image< I > &input, const Image< L > &lbl, typename L::value nlabels)
template<typename I , typename L >
void mean_values_tests (const Image< I > &input, const Image< L > &lbl, typename L::value nlabels)
template<typename I >
void pack_tests (const Image< I > &label, typename I::value &new_nlabels)
template<typename V >
random_color (const V &)
template<unsigned n>
mln::value::rgb< n > random_color (const mln::value::rgb< n > &v)
template<typename RGB >
RGB random_color_rgb (const RGB &)
unsigned random_number ()
template<typename I , typename F >
void relabel_inplace_tests (Image< I > &label, const typename I::value &nlabels, const Function< F > &f)
template<typename I >
void relabel_tests (const Image< I > &label, typename I::value &new_nlabels)
template<typename I , typename F >
void relabel_tests (const Image< I > &label, const typename I::value &nlabels, typename I::value &new_nlabels, const Function< F > &f)
template<typename I , typename F >
void relabel_tests (const Image< I > &label, const typename I::value &nlabels, const Function< F > &f)
template<typename I , typename N , typename L , typename A >
void value_and_compute_tests (const Image< I > &input, const typename I::value &val, const Neighborhood< N > &nbh, L &nlabels, const Accumulator< A > &accu)
template<typename I , typename N , typename L >
void value_tests (const Image< I > &input, const typename I::value &val, const Neighborhood< N > &nbh, L &nlabels)

Function Documentation

template<typename A , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( const Accumulator< A > &  a,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 485 of file labeling/compute.hh.

References mln::labeling::compute().

Referenced by mln::labeling::compute(), and compute_dispatch().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_access::any  ,
mln::trait::image::value_access::any  ,
mln::trait::image::ext_domain::any  ,
mln::trait::image::ext_domain::any  ,
const Accumulator< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 499 of file labeling/compute.hh.

References mln::labeling::compute().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_access::direct  ,
mln::trait::image::value_access::direct  ,
mln::trait::image::ext_domain::some  ,
mln::trait::image::ext_domain::some  ,
const Accumulator< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 516 of file labeling/compute.hh.

References mln::labeling::impl::compute_fastest().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( util::array< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 663 of file labeling/compute.hh.

References compute_dispatch().

template<typename A , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( util::array< A > &  accus,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 680 of file labeling/compute.hh.

References mln::labeling::compute().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_storage::any  ,
mln::trait::image::value_storage::any  ,
const Accumulator< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 533 of file labeling/compute.hh.

References mln::labeling::compute().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_storage::one_block  ,
mln::trait::image::value_storage::one_block  ,
const Accumulator< A > &  a,
const Image< I > &  input_,
const Image< L > &  label_,
const typename L::value &  nlabels 
) [inline]

Check basic properties

Definition at line 547 of file labeling/compute.hh.

References mln::labeling::compute(), compute_dispatch(), mln::exact(), and mln::labeling::value().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( const Accumulator< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 578 of file labeling/compute.hh.

References compute_dispatch().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_access::any  ,
mln::trait::image::value_access::any  ,
mln::trait::image::ext_domain::any  ,
mln::trait::image::ext_domain::any  ,
util::array< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 598 of file labeling/compute.hh.

References mln::labeling::compute().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_access::direct  ,
mln::trait::image::value_access::direct  ,
mln::trait::image::ext_domain::some  ,
mln::trait::image::ext_domain::some  ,
util::array< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 615 of file labeling/compute.hh.

References mln::labeling::impl::compute_fastest().

template<typename A , typename I , typename L >
util::array<typename A ::result> mln::labeling::internal::compute_dispatch ( mln::trait::image::value_storage::one_block  ,
mln::trait::image::value_storage::one_block  ,
util::array< A > &  a,
const Image< I > &  input_,
const Image< L > &  label_,
const typename L::value &  nlabels 
) [inline]

Check basic properties

Definition at line 632 of file labeling/compute.hh.

References mln::labeling::compute(), compute_dispatch(), mln::exact(), and mln::labeling::value().

template<typename A , typename L >
mln::trait::ch_value< L , A >::ret mln::labeling::internal::compute_image ( const util::array< A > &  a,
const Image< L > &  labels_,
const typename L::value &  nlabels 
)

Definition at line 116 of file compute_image.hh.

References mln::exact(), and mln::initialize().

Referenced by mln::labeling::compute_image().

template<typename A , typename L >
void mln::labeling::internal::compute_tests ( const Accumulator< A > &  a,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]
template<typename A , typename I , typename L >
void mln::labeling::internal::compute_tests ( const Accumulator< A > &  a,
const Image< I > &  input,
const Image< L > &  label,
const typename L::value &  nlabels 
) [inline]

Definition at line 168 of file labeling/compute.hh.

References mln::exact().

template<unsigned n, typename I , typename L >
mln::trait::concrete< I >::ret mln::labeling::internal::mean_values_dispatch ( const value::rgb< n > &  ,
const Image< I > &  input,
const Image< L > &  lbl,
typename L::value  nlabels 
)
template<typename I , typename L >
mln::trait::concrete< I >::ret mln::labeling::internal::mean_values_dispatch ( const typename I::value &  ,
const Image< I > &  input,
const Image< L > &  lbl,
typename L::value  nlabels 
)

Definition at line 175 of file mean_values.hh.

References mln::labeling::mean_values().

template<typename I , typename L >
mln::trait::concrete< I >::ret mln::labeling::internal::mean_values_dispatch ( const Image< I > &  input,
const Image< L > &  lbl,
typename L::value  nlabels 
)

Definition at line 184 of file mean_values.hh.

References mean_values_dispatch().

template<typename I , typename L >
void mln::labeling::internal::mean_values_tests ( const Image< I > &  input,
const Image< L > &  lbl,
typename L::value  nlabels 
)
template<typename I >
void mln::labeling::internal::pack_tests ( const Image< I > &  label,
typename I::value &  new_nlabels 
)

Definition at line 100 of file pack.hh.

References mln::exact().

Referenced by mln::labeling::pack(), and mln::labeling::pack_inplace().

template<typename V >
V mln::labeling::internal::random_color ( const V &   ) 
template<unsigned n>
mln::value::rgb<n> mln::labeling::internal::random_color ( const mln::value::rgb< n > &  v  ) 

Definition at line 168 of file colorize.hh.

References random_color_rgb().

template<typename RGB >
RGB mln::labeling::internal::random_color_rgb ( const RGB &   ) 
unsigned mln::labeling::internal::random_number (  )  [inline]
template<typename I , typename F >
void mln::labeling::internal::relabel_inplace_tests ( Image< I > &  label,
const typename I::value &  nlabels,
const Function< F > &  f 
) [inline]

Definition at line 160 of file relabel.hh.

References mln::exact().

Referenced by mln::labeling::relabel_inplace().

template<typename I >
void mln::labeling::internal::relabel_tests ( const Image< I > &  label,
typename I::value &  new_nlabels 
)

Definition at line 117 of file relabel.hh.

References mln::exact().

Referenced by mln::labeling::relabel().

template<typename I , typename F >
void mln::labeling::internal::relabel_tests ( const Image< I > &  label,
const typename I::value &  nlabels,
typename I::value &  new_nlabels,
const Function< F > &  f 
)

Definition at line 129 of file relabel.hh.

References mln::exact().

template<typename I , typename F >
void mln::labeling::internal::relabel_tests ( const Image< I > &  label,
const typename I::value &  nlabels,
const Function< F > &  f 
)

Definition at line 145 of file relabel.hh.

References mln::exact().

template<typename I , typename N , typename L , typename A >
void mln::labeling::internal::value_and_compute_tests ( const Image< I > &  input,
const typename I::value &  val,
const Neighborhood< N > &  nbh,
L &  nlabels,
const Accumulator< A > &  accu 
)

Definition at line 74 of file value_and_compute.hh.

References mln::exact().

Referenced by mln::labeling::value_and_compute().

template<typename I , typename N , typename L >
void mln::labeling::internal::value_tests ( const Image< I > &  input,
const typename I::value &  val,
const Neighborhood< N > &  nbh,
L &  nlabels 
)

Definition at line 72 of file labeling/value.hh.

References mln::exact().

Referenced by mln::labeling::value().