mln::data::impl::generic Namespace Reference

Generic implementation namespace of data namespace. More...


Functions

template<typename V , typename I >
mln::trait::ch_value< I, V >::ret convert (const V &v, const Image< I > &input)
 Convert the image input by changing the value type.
template<typename I , typename J >
void fill_with_image (Image< I > &ima_, const Image< J > &data_)
 Generic implementation.
template<typename I , typename V >
void fill_with_value (Image< I > &ima_, const V &val)
 Fill the whole image ima with the single value v.
template<typename I , typename W >
mln::trait::concrete< I >::ret median (const Image< I > &input, const Window< W > &win)
template<typename I , typename J >
void paste (const Image< I > &input_, Image< J > &output_)
 Generic implementation of data::paste.
template<typename I >
util::array< unsigned > sort_offsets_increasing (const Image< I > &input_)
 Sort pixel offsets of the image input wrt increasing pixel values.
template<typename I1 , typename I2 , typename F >
mln::trait::ch_value< I1,
typename F::result >::ret 
transform (const Image< I1 > &input1_, const Image< I2 > &input2_, const Function_vv2v< F > &f_)
 Generic implementation of data::transform.
template<typename I , typename F >
mln::trait::ch_value< I,
typename F::result >::ret 
transform (const Image< I > &input_, const Function_v2v< F > &f_)
 Generic implementation of data::transform.
template<typename I1 , typename I2 , typename F >
void transform_inplace (Image< I1 > &ima_, const Image< I2 > &aux_, const Function_vv2v< F > &f_)
 Generic implementation of transform_inplace.
template<typename I , typename F >
void transform_inplace (Image< I > &ima_, const Function_v2v< F > &f_)
 Generic implementation of transform_inplace.
template<typename A , typename I >
A::result update (Accumulator< A > &a_, const Image< I > &input_)
 Generic implementation of data::update.


Detailed Description

Generic implementation namespace of data namespace.


Function Documentation

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

Convert the image input by changing the value type.

Parameters:
[in] v A value of the destination type.
[in] input The input image.

References transform().

Referenced by mln::morpho::watershed::superpose(), and mln::debug::superpose().

template<typename I , typename J >
void mln::data::impl::generic::fill_with_image ( Image< I > &  ima_,
const Image< J > &  data_ 
) [inline]

Generic implementation.

Fill the image ima with the values of the image data.

Parameters:
[in,out] ima_ The image to be filled.
[in] data_ The image.

template<typename I , typename V >
void mln::data::impl::generic::fill_with_value ( Image< I > &  ima_,
const V &  val 
) [inline]

Fill the whole image ima with the single value v.

Parameters:
[in,out] ima_ The image to be filled.
[in] val The value to assign to all sites.
Precondition:
ima has to be initialized.

Referenced by mln::p_image< I >::clear().

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

Compute in output the median filter of image input by the window win.

Parameters:
[in] input The image to be filtered.
[in] win The window.
Precondition:
input have to be initialized.

References mln::extension::adjust(), and mln::initialize().

template<typename I , typename J >
void mln::data::impl::generic::paste ( const Image< I > &  input_,
Image< J > &  output_ 
) [inline]

Generic implementation of data::paste.

Paste the contents of image input into the image output.

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

Referenced by mln::make::image3d(), mln::draw::line(), mln::geom::rotate(), and mln::debug::slices_2d().

template<typename I >
util::array<unsigned> mln::data::impl::generic::sort_offsets_increasing ( const Image< I > &  input_  )  [inline]

Sort pixel offsets of the image input wrt increasing pixel values.

References mln::util::array< T >::append(), and mln::util::array< T >::reserve().

template<typename I1 , typename I2 , typename F >
mln::trait::ch_value< I1 , typename F ::result >::ret mln::data::impl::generic::transform ( const Image< I1 > &  input1_,
const Image< I2 > &  input2_,
const Function_vv2v< F > &  f_ 
) [inline]

Generic implementation of data::transform.

Parameters:
[in] input1_ The 1st input image.
[in] input2_ The 2nd input image.
[in] f_ The function.

References mln::initialize().

template<typename I , typename F >
mln::trait::ch_value< I , typename F ::result >::ret mln::data::impl::generic::transform ( const Image< I > &  input_,
const Function_v2v< F > &  f_ 
) [inline]

template<typename I1 , typename I2 , typename F >
void mln::data::impl::generic::transform_inplace ( Image< I1 > &  ima_,
const Image< I2 > &  aux_,
const Function_vv2v< F > &  f_ 
) [inline]

Generic implementation of transform_inplace.

Parameters:
[in] ima_ The image to be transformed.
[in] aux_ The auxiliary image.
[in] f_ The function.

template<typename I , typename F >
void mln::data::impl::generic::transform_inplace ( Image< I > &  ima_,
const Function_v2v< F > &  f_ 
) [inline]

Generic implementation of transform_inplace.

Parameters:
[in,out] ima_ The image to be transformed.
[in] f_ The function.

Referenced by mln::logical::and_inplace(), mln::logical::and_not_inplace(), mln::logical::not_inplace(), mln::logical::or_inplace(), mln::labeling::relabel_inplace(), and mln::logical::xor_inplace().

template<typename A , typename I >
A ::result mln::data::impl::generic::update ( Accumulator< A > &  a_,
const Image< I > &  input_ 
) [inline]

Generic implementation of data::update.

Parameters:
[in] a_ The accumulator.
[in] input_ The input image.
Returns:
The accumulator result.


Generated on Tue Jul 14 16:32:53 2009 for Milena (Olena) by  doxygen 1.5.9