Functions

mln::data::internal Namespace Reference

Functions

template<typename V , typename I >
mln::trait::ch_value< I, V >::ret convert_dispatch (metal::bool_< true >, const V &v, const Image< I > &input)
template<typename V , typename I >
mln::trait::ch_value< I, V >::ret convert_dispatch (const V &v, const Image< I > &input)
template<typename V , typename I >
mln::trait::ch_value< I, V >::ret convert_dispatch (metal::bool_< false >, const V &v, const Image< I > &input)
template<typename V , typename I >
void convert_tests (const V &, const Image< I > &input)
template<typename I , typename D >
void fill_dispatch (Image< I > &ima, const D &data)
template<typename I , typename F >
void fill_dispatch_overload (I &ima, const Function< F > &f)
template<typename I , typename R , typename A >
void fill_dispatch_overload (I &ima, R(*f)(A))
template<typename I , typename V , unsigned N>
void fill_dispatch_overload (I &ima, V(&arr)[N])
template<typename I >
void fill_dispatch_overload (I &ima, const typename I::value &v)
template<typename I , typename J >
void fill_dispatch_overload (I &ima, const Image< J > &data)
template<typename I , typename D >
void fill_tests (Image< I > &ima, const D &)
template<typename I , typename J >
void fill_with_image_tests (Image< I > &ima, const Image< J > &data)
template<typename I , typename V >
void fill_with_value_tests (Image< I > &ima, const V &)
template<typename I , typename W >
mln::trait::concrete< I >::ret median_dispatch (const Image< I > &input, const Window< W > &win)
template<typename I , typename M , unsigned i, typename C >
mln::trait::concrete< I >::ret median_dispatch_wrt_win (const Image< I > &input, const win::line< M, i, C > &win)
template<typename I , typename W >
mln::trait::concrete< I >::ret median_dispatch_wrt_win (const Image< I > &input, const Window< W > &win)
template<typename I , typename W >
void median_tests (const Image< I > &input, const Window< W > &win)
template<typename I , typename J >
void paste_tests (const Image< I > &input, Image< J > &output)
 Internal tests for data::paste.
template<typename I , typename J >
void paste_without_localization_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 I &input, J &output)
template<typename I , typename J >
void paste_without_localization_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 I &input, J &output)
template<typename I , typename J >
void paste_without_localization_dispatch (mln::trait::image::value_storage::any, mln::trait::image::value_storage::any, const Image< I > &input, Image< J > &output)
template<typename I , typename J >
void paste_without_localization_dispatch (mln::trait::image::value_storage::one_block, mln::trait::image::value_storage::one_block, const Image< I > &input_, Image< J > &output_)
template<typename I , typename J >
void paste_without_localization_dispatch (const Image< I > &input, Image< J > &output)
template<typename I , typename J >
void paste_without_localization_tests (const Image< I > &input, Image< J > &output)
template<typename I >
util::array< unsigned > sort_offsets_decreasing_dispatch (trait::image::quant::any, const Image< I > &input)
template<typename I >
util::array< unsigned > sort_offsets_decreasing_dispatch (trait::image::quant::low, const Image< I > &input)
template<typename I >
util::array< unsigned > sort_offsets_decreasing_dispatch (const Image< I > &input)
template<typename I >
util::array< unsigned > sort_offsets_increasing_dispatch (trait::image::quant::any, const Image< I > &input)
template<typename I >
util::array< unsigned > sort_offsets_increasing_dispatch (trait::image::quant::low, const Image< I > &input)
template<typename I >
util::array< unsigned > sort_offsets_increasing_dispatch (const Image< I > &input)
template<typename I , typename F >
void transform_inplace_dispatch (Image< I > &ima, const Function_v2v< F > &f)
 First dispatch.
template<typename I , typename F >
void transform_inplace_dispatch (trait::image::value_storage::singleton, trait::image::value_access::any, Image< I > &ima, const Function_v2v< F > &f)
template<typename I1 , typename I2 , typename F >
void transform_inplace_dispatch (Image< I1 > &ima, const Image< I2 > &aux, const Function_vv2v< F > &f)
template<typename I , typename F >
void transform_inplace_dispatch (trait::image::vw_set::any, trait::image::quant::any, Image< I > &ima, const Function_v2v< F > &f)
 Dispatch on quantization.
template<typename I , typename F >
void transform_inplace_dispatch (trait::image::vw_set::any, trait::image::quant::low, Image< I > &ima, const Function_v2v< F > &f)
template<typename I , typename F >
void transform_inplace_dispatch (trait::image::vw_set::uni, trait::image::quant::any, Image< I > &ima, const Function_v2v< F > &f)
template<typename I1 , typename I2 , typename F >
void transform_inplace_dispatch (trait::image::value_alignment::with_grid, trait::image::value_alignment::with_grid, trait::image::speed::fastest, trait::image::speed::fastest, Image< I1 > &ima, const Image< I2 > &aux, const Function_vv2v< F > &f)
template<typename I , typename F >
void transform_inplace_dispatch (trait::image::value_storage::one_block, trait::image::value_access::direct, Image< I > &ima, const Function_v2v< F > &f)
template<typename I1 , typename I2 , typename F >
void transform_inplace_dispatch (trait::image::value_alignment::any, trait::image::value_alignment::any, trait::image::speed::any, trait::image::speed::any, Image< I1 > &ima, const Image< I2 > &aux, const Function_vv2v< F > &f)
template<typename I , typename F >
void transform_inplace_dispatch (trait::image::value_storage::any, trait::image::value_access::any, Image< I > &ima, const Function_v2v< F > &f)
 Dispatch on value storage.
template<typename I , typename F >
void transform_inplace_dispatch_fast (trait::image::quant::any, Image< I > &ima, const Function_v2v< F > &f)
 Dispatch for fast image.
template<typename I , typename F >
void transform_inplace_dispatch_fast (trait::image::quant::low, Image< I > &ima, const Function_v2v< F > &f)
template<typename I1 , typename I2 , typename F >
void transform_inplace_tests (Image< I1 > &ima, const Image< I2 > &aux, const Function_vv2v< F > &f)
template<typename I , typename F >
void transform_inplace_tests (const Image< I > &ima, const Function_v2v< F > &f)
template<typename I , typename F >
void transform_tests (const Image< I > &input, const Function_v2v< F > &f)
template<typename I1 , typename I2 , typename F >
void transform_tests (const Image< I1 > &input1, const Image< I2 > &input2, const Function_vv2v< F > &f)
template<typename A , typename I >
A::result update_dispatch (trait::image::speed::any, Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
A::result update_dispatch (Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
A::result update_dispatch (trait::image::speed::fastest, Accumulator< A > &a, const Image< I > &input)
template<typename A , typename I >
void update_tests (Accumulator< A > &a_, const Image< I > &input_)

Function Documentation

template<typename V , typename I >
mln::trait::ch_value< I , V >::ret mln::data::internal::convert_dispatch ( metal::bool_< true >  ,
const V &  v,
const Image< I > &  input 
) [inline]

Definition at line 120 of file mln/data/convert.hh.

References mln::data::impl::convert_identity().

Referenced by mln::data::convert(), and convert_dispatch().

template<typename V , typename I >
mln::trait::ch_value< I , V >::ret mln::data::internal::convert_dispatch ( const V &  v,
const Image< I > &  input 
) [inline]

Definition at line 138 of file mln/data/convert.hh.

References convert_dispatch().

template<typename V , typename I >
mln::trait::ch_value< I , V >::ret mln::data::internal::convert_dispatch ( metal::bool_< false >  ,
const V &  v,
const Image< I > &  input 
) [inline]

Definition at line 129 of file mln/data/convert.hh.

References mln::data::convert().

template<typename V , typename I >
void mln::data::internal::convert_tests ( const V &  ,
const Image< I > &  input 
) [inline]
template<typename I , typename D >
void mln::data::internal::fill_dispatch ( Image< I > &  ima,
const D &  data 
)

Definition at line 126 of file data/fill.hh.

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

Referenced by mln::data::fill().

template<typename I , typename F >
void mln::data::internal::fill_dispatch_overload ( I &  ima,
const Function< F > &  f 
)

Definition at line 97 of file data/fill.hh.

References mln::exact(), and mln::data::fill_with_image().

template<typename I , typename R , typename A >
void mln::data::internal::fill_dispatch_overload ( I &  ima,
R(*)(A)  f 
)

Definition at line 105 of file data/fill.hh.

References mln::data::fill_with_image(), and mln::convert::to_fun.

template<typename I , typename V , unsigned N>
void mln::data::internal::fill_dispatch_overload ( I &  ima,
V(&)  arr[N] 
)

Definition at line 113 of file data/fill.hh.

template<typename I >
void mln::data::internal::fill_dispatch_overload ( I &  ima,
const typename I::value &  v 
)

Definition at line 85 of file data/fill.hh.

References mln::data::fill_with_value().

Referenced by fill_dispatch().

template<typename I , typename J >
void mln::data::internal::fill_dispatch_overload ( I &  ima,
const Image< J > &  data 
)

Definition at line 91 of file data/fill.hh.

References mln::data::fill_with_image().

template<typename I , typename D >
void mln::data::internal::fill_tests ( Image< I > &  ima,
const D &   
) [inline]

Definition at line 71 of file data/fill.hh.

References mln::exact().

Referenced by mln::data::fill().

template<typename I , typename J >
void mln::data::internal::fill_with_image_tests ( Image< I > &  ima,
const Image< J > &  data 
) [inline]

Definition at line 70 of file fill_with_image.hh.

References mln::exact().

Referenced by mln::data::impl::generic::fill_with_image().

template<typename I , typename V >
void mln::data::internal::fill_with_value_tests ( Image< I > &  ima,
const V &   
) [inline]
template<typename I , typename W >
mln::trait::concrete< I >::ret mln::data::internal::median_dispatch ( const Image< I > &  input,
const Window< W > &  win 
) [inline]

Definition at line 258 of file median.hh.

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

Referenced by mln::data::median().

template<typename I , typename M , unsigned i, typename C >
mln::trait::concrete< I >::ret mln::data::internal::median_dispatch_wrt_win ( const Image< I > &  input,
const win::line< M, i, C > &  win 
) [inline]

Definition at line 249 of file median.hh.

References mln::data::impl::median_line().

template<typename I , typename W >
mln::trait::concrete< I >::ret mln::data::internal::median_dispatch_wrt_win ( const Image< I > &  input,
const Window< W > &  win 
) [inline]

Definition at line 240 of file median.hh.

References mln::data::median().

Referenced by median_dispatch().

template<typename I , typename W >
void mln::data::internal::median_tests ( const Image< I > &  input,
const Window< W > &  win 
)
template<typename I , typename J >
void mln::data::internal::paste_tests ( const Image< I > &  input,
Image< J > &  output 
) [inline]

Internal tests for data::paste.

Parameters:
[in] input The input image providing pixels values.
[in,out] output The image in which values are assigned.

Definition at line 80 of file paste.hh.

References mln::exact().

Referenced by mln::data::paste(), and mln::data::impl::generic::paste().

template<typename I , typename J >
void mln::data::internal::paste_without_localization_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 I &  input,
J &  output 
) [inline]
template<typename I , typename J >
void mln::data::internal::paste_without_localization_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 I &  input,
J &  output 
) [inline]
template<typename I , typename J >
void mln::data::internal::paste_without_localization_dispatch ( mln::trait::image::value_storage::any  ,
mln::trait::image::value_storage::any  ,
const Image< I > &  input,
Image< J > &  output 
) [inline]
template<typename I , typename J >
void mln::data::internal::paste_without_localization_dispatch ( mln::trait::image::value_storage::one_block  ,
mln::trait::image::value_storage::one_block  ,
const Image< I > &  input_,
Image< J > &  output_ 
) [inline]
template<typename I , typename J >
void mln::data::internal::paste_without_localization_dispatch ( const Image< I > &  input,
Image< J > &  output 
) [inline]
template<typename I , typename J >
void mln::data::internal::paste_without_localization_tests ( const Image< I > &  input,
Image< J > &  output 
) [inline]
template<typename I >
util::array<unsigned> mln::data::internal::sort_offsets_decreasing_dispatch ( trait::image::quant::any  ,
const Image< I > &  input 
) [inline]
template<typename I >
util::array<unsigned> mln::data::internal::sort_offsets_decreasing_dispatch ( trait::image::quant::low  ,
const Image< I > &  input 
) [inline]

Definition at line 274 of file sort_offsets.hh.

References mln::data::impl::sort_offsets_decreasing_radix().

template<typename I >
util::array<unsigned> mln::data::internal::sort_offsets_decreasing_dispatch ( const Image< I > &  input  )  [inline]

Definition at line 283 of file sort_offsets.hh.

References sort_offsets_decreasing_dispatch().

template<typename I >
util::array<unsigned> mln::data::internal::sort_offsets_increasing_dispatch ( trait::image::quant::any  ,
const Image< I > &  input 
) [inline]
template<typename I >
util::array<unsigned> mln::data::internal::sort_offsets_increasing_dispatch ( trait::image::quant::low  ,
const Image< I > &  input 
) [inline]

Definition at line 245 of file sort_offsets.hh.

References mln::data::impl::sort_offsets_increasing_radix().

template<typename I >
util::array<unsigned> mln::data::internal::sort_offsets_increasing_dispatch ( const Image< I > &  input  )  [inline]

Definition at line 254 of file sort_offsets.hh.

References sort_offsets_increasing_dispatch().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( Image< I > &  ima,
const Function_v2v< F > &  f 
)

First dispatch.

Definition at line 435 of file transform_inplace.hh.

References transform_inplace_dispatch().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::value_storage::singleton  ,
trait::image::value_access::any  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)
template<typename I1 , typename I2 , typename F >
void mln::data::internal::transform_inplace_dispatch ( Image< I1 > &  ima,
const Image< I2 > &  aux,
const Function_vv2v< F > &  f 
)

Definition at line 472 of file transform_inplace.hh.

References transform_inplace_dispatch().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::vw_set::any  ,
trait::image::quant::any  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)

Dispatch on quantization.

Definition at line 350 of file transform_inplace.hh.

References mln::data::transform_inplace().

Referenced by mln::data::transform_inplace(), and transform_inplace_dispatch().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::vw_set::any  ,
trait::image::quant::low  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)

Definition at line 368 of file transform_inplace.hh.

References mln::data::impl::transform_inplace_lowq().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::vw_set::uni  ,
trait::image::quant::any  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)

Definition at line 359 of file transform_inplace.hh.

References mln::data::impl::transform_inplace_taken().

template<typename I1 , typename I2 , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::value_alignment::with_grid  ,
trait::image::value_alignment::with_grid  ,
trait::image::speed::fastest  ,
trait::image::speed::fastest  ,
Image< I1 > &  ima,
const Image< I2 > &  aux,
const Function_vv2v< F > &  f 
)
template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::value_storage::one_block  ,
trait::image::value_access::direct  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)

Definition at line 421 of file transform_inplace.hh.

References transform_inplace_dispatch_fast().

template<typename I1 , typename I2 , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::value_alignment::any  ,
trait::image::value_alignment::any  ,
trait::image::speed::any  ,
trait::image::speed::any  ,
Image< I1 > &  ima,
const Image< I2 > &  aux,
const Function_vv2v< F > &  f 
)

Definition at line 448 of file transform_inplace.hh.

References mln::data::transform_inplace().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch ( trait::image::value_storage::any  ,
trait::image::value_access::any  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)

Dispatch on value storage.

Definition at line 400 of file transform_inplace.hh.

References transform_inplace_dispatch().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch_fast ( trait::image::quant::any  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)

Dispatch for fast image.

Definition at line 380 of file transform_inplace.hh.

References mln::data::impl::transform_inplace_fastest().

Referenced by transform_inplace_dispatch().

template<typename I , typename F >
void mln::data::internal::transform_inplace_dispatch_fast ( trait::image::quant::low  ,
Image< I > &  ima,
const Function_v2v< F > &  f 
)
template<typename I1 , typename I2 , typename F >
void mln::data::internal::transform_inplace_tests ( Image< I1 > &  ima,
const Image< I2 > &  aux,
const Function_vv2v< F > &  f 
) [inline]

Definition at line 109 of file transform_inplace.hh.

References mln::exact().

template<typename I , typename F >
void mln::data::internal::transform_inplace_tests ( const Image< I > &  ima,
const Function_v2v< F > &  f 
) [inline]
template<typename I , typename F >
void mln::data::internal::transform_tests ( const Image< I > &  input,
const Function_v2v< F > &  f 
)

Definition at line 88 of file data/transform.hh.

References mln::exact().

Referenced by mln::data::transform(), and mln::data::impl::generic::transform().

template<typename I1 , typename I2 , typename F >
void mln::data::internal::transform_tests ( const Image< I1 > &  input1,
const Image< I2 > &  input2,
const Function_vv2v< F > &  f 
)

Definition at line 101 of file data/transform.hh.

References mln::exact().

template<typename A , typename I >
A ::result mln::data::internal::update_dispatch ( trait::image::speed::any  ,
Accumulator< A > &  a,
const Image< I > &  input 
) [inline]

Definition at line 158 of file update.hh.

References mln::data::update().

Referenced by mln::data::compute(), mln::data::update(), and update_dispatch().

template<typename A , typename I >
A ::result mln::data::internal::update_dispatch ( Accumulator< A > &  a,
const Image< I > &  input 
) [inline]

Definition at line 176 of file update.hh.

References update_dispatch().

template<typename A , typename I >
A ::result mln::data::internal::update_dispatch ( trait::image::speed::fastest  ,
Accumulator< A > &  a,
const Image< I > &  input 
) [inline]

Definition at line 167 of file update.hh.

References mln::data::impl::update_fastest().

template<typename A , typename I >
void mln::data::internal::update_tests ( Accumulator< A > &  a_,
const Image< I > &  input_ 
) [inline]