Namespaces | Functions

mln::data::impl Namespace Reference

Implementation namespace of data namespace. More...

Namespaces

namespace  generic
 

Generic implementation namespace of data namespace.


Functions

template<typename I , typename J >
void paste_without_localization_fast (const Image< I > &input_, Image< J > &output_)
 Paste data to an image without using localization. Performs a point-wise copy.
template<typename I , typename J >
void paste_without_localization_fastest (const Image< I > &input_, Image< J > &output_)
 Paste data to an image without using localization. Performs a one-block memory copy.
template<typename I , typename J >
void paste_without_localization_lines (const Image< I > &input_, Image< J > &output_)
 Paste data to an image without using localization. Performs a line-per-line memory copy.
template<typename V , typename I >
mln::trait::ch_value< I, V >::ret stretch (const V &v, const Image< I > &input)
 Generic implementation of data::stretch.
template<typename I , typename F >
void transform_inplace_lowq (Image< I > &input_, const Function_v2v< F > &f_)
 Specialized implementation.
template<typename A , typename I >
A::result update_fastest (Accumulator< A > &a_, const Image< I > &input_)
 Fastest implementation of data::update.

Detailed Description

Implementation namespace of data namespace.


Function Documentation

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

Paste data to an image without using localization. Performs a point-wise copy.

input and output must have both the following properties:

  • mln::trait::image::value_alignment::with_grid
  • mln::trait::image::value_storage::one_block
  • mln::trait::image::value_access::direct
  • mln::trait::image::ext_domain::some

They must also fulfill the following conditions:

  • Same domain size.

Definition at line 220 of file paste_without_localization.hh.

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

Paste data to an image without using localization. Performs a one-block memory copy.

input and output must have both the following properties:

  • mln::trait::image::value_alignment::with_grid
  • mln::trait::image::value_storage::one_block
  • mln::trait::image::value_access::direct
  • mln::trait::image::ext_domain::some

They must also fulfill the following conditions:

  • Same border size.
  • Same domain size.
  • Same value type.

Definition at line 142 of file paste_without_localization.hh.

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

Paste data to an image without using localization. Performs a line-per-line memory copy.

input and output must have both the following properties:

  • mln::trait::image::value_alignment::with_grid
  • mln::trait::image::value_storage::one_block
  • mln::trait::image::value_access::direct
  • mln::trait::image::ext_domain::some

They must also fulfill the following conditions:

  • Same domain size.
  • Same value type.

Definition at line 179 of file paste_without_localization.hh.

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

Generic implementation of data::stretch.

Parameters:
[in] v A value to set the output value type.
[in] input The input image.
Returns:
A stretch image with values of the same type as v.

Definition at line 83 of file stretch.hh.

References mln::initialize(), mln::estim::min_max(), and mln::data::transform().

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

template<typename I , typename F >
void mln::data::impl::transform_inplace_lowq ( Image< I > &  input_,
const Function_v2v< F > &  f_ 
)

Specialized implementation.

Definition at line 203 of file transform_inplace.hh.

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

Fastest implementation of data::update.

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

Definition at line 129 of file update.hh.