$extrastylesheet
Functions | |
| template<typename I , typename O > | |
| void | mln::data::abs (const Image< I > &input, Image< O > &output) |
| template<typename I > | |
| void | mln::data::abs_inplace (Image< I > &input) |
| template<typename I , typename F > | |
| void | mln::data::apply (Image< I > &input, const Function_v2v< F > &f) |
| template<typename V , typename I > | |
| mln::trait::ch_value< I, V >::ret | mln::data::convert (const V &v, const Image< I > &input) |
| template<typename I , typename D > | |
| void | mln::data::fill (Image< I > &ima, const D &data) |
| template<typename I , typename J > | |
| void | mln::data::paste (const Image< I > &input, Image< J > &output) |
| template<typename I , typename J > | |
| void | mln::data::paste_without_localization (const Image< I > &input, Image< J > &output) |
| template<typename I > | |
| void | mln::data::replace (Image< I > &input, const typename I::value &old_value, const typename I::value &new_value) |
| template<typename V , typename I > | |
| mln::trait::ch_value< I, V >::ret | mln::data::saturate (V v, const Image< I > &input) |
| template<typename I , typename V > | |
| mln::trait::ch_value< I, V >::ret | mln::data::saturate (const Image< I > &input, const V &min, const V &max) |
| template<typename I > | |
| void | mln::data::saturate_inplace (Image< I > &input, const typename I::value &min, const typename I::value &max) |
| template<typename I , typename J > | |
| void | mln::data::split (const Image< I > &input, Image< J > &r, Image< J > &g, Image< J > &b) |
| template<typename V , typename I > | |
| mln::trait::ch_value< I, V >::ret | mln::data::stretch (const V &v, const Image< I > &input) |
| template<typename I , typename O > | |
| void | mln::data::to_enc (const Image< I > &input, Image< O > &output) |
| template<typename I , typename F > | |
| mln::trait::ch_value< I, typename F::result >::ret | mln::data::transform (const Image< I > &input, const Function_v2v< F > &f) |
| template<typename I1 , typename I2 , typename F > | |
| mln::trait::ch_value< I1, typename F::result >::ret | mln::data::transform (const Image< I1 > &input1, const Image< I2 > &input2, const Function_vv2v< F > &f) |
| template<typename V , typename I > | |
| mln::trait::ch_value< I, V >::ret | mln::data::wrap (const V &v, const Image< I > &input) |
All routines related to Image Data Manipulation.
| void mln::data::abs | ( | const Image< I > & | input, |
| Image< O > & | output | ||
| ) |
Apply the absolute value (abs) function to image pixel values.
| [in] | input | The input image. |
| [out] | output | The output image. |
| void mln::data::abs_inplace | ( | Image< I > & | input | ) |
Apply the absolute value (abs) function to image pixel values.
| [in,out] | input | The input image. |
| void mln::data::apply | ( | Image< I > & | input, |
| const Function_v2v< F > & | f | ||
| ) |
Apply a function-object to the image input.
| [in,out] | input | The input image. |
| [in] | f | The function-object. |
This routine runs:
for all p of input, input(p) = f( input(p) )
This routine is equivalent to data::tranform(input, f, input) but it is faster since a single iterator is required.
| mln::trait::ch_value< I , V >::ret mln::data::convert | ( | const V & | v, |
| const Image< I > & | input | ||
| ) |
Convert the image input by changing the value type.
| [in] | v | A value of the destination type. |
| [in] | input | The input image. |
| void mln::data::fill | ( | Image< I > & | ima, |
| const D & | data | ||
| ) |
Fill the whole image ima with the data provided by aux.
| [in,out] | ima | The image to be filled. |
| [in] | data | The auxiliary data to fill the image ima. |
ima has to be initialized. | void mln::data::paste | ( | const Image< I > & | input, |
| Image< J > & | output | ||
| ) |
Paste the contents of image input into the image output.
| [in] | input | The input image providing pixels values. |
| [in,out] | output | The image in which values are assigned. |
This routine runs:
for all p of input, output(p) = input(p).
input has to be included in the one of output; so using mln::safe_image does not make pasting outside the output domain work.input.domain <= output.domain | void mln::data::paste_without_localization | ( | const Image< I > & | input, |
| Image< J > & | output | ||
| ) |
Paste the contents of image input into the image output without taking into account the localization of sites.
| [in] | input | The input image providing pixels values. |
| [in,out] | output | The image in which values are assigned. |
| void mln::data::replace | ( | Image< I > & | input, |
| const typename I::value & | old_value, | ||
| const typename I::value & | new_value | ||
| ) |
Replace old_value by new_value in the image input.
| [in] | input | The input image. |
| [in] | old_value | The value to be replaced... |
| [in] | new_value | ...by this one. |
| mln::trait::ch_value< I , V >::ret mln::data::saturate | ( | V | v, |
| const Image< I > & | input | ||
| ) |
Apply the saturate function to image pixel values.
| [in] | v | A value of the output type. |
| [in] | input | The input image. |
The saturation is based on the min and max values of the output value type. This assumes that the range of values in the input image is larger than the one of the output image.
| mln::trait::ch_value< I , V >::ret mln::data::saturate | ( | const Image< I > & | input, |
| const V & | min, | ||
| const V & | max | ||
| ) |
Apply the saturate function to image pixel values.
| [in] | input | The input image. |
| [in] | min | The minimum output value. |
| [in] | max | The maximum output value. |
| void mln::data::saturate_inplace | ( | Image< I > & | input, |
| const typename I::value & | min, | ||
| const typename I::value & | max | ||
| ) |
Apply the saturate function to image pixel values.
| [in,out] | input | The input image. |
| [in] | min | The minimum output value. |
| [in] | max | The maximum output value |
| void mln::data::split | ( | const Image< I > & | input, |
| Image< J > & | r, | ||
| Image< J > & | g, | ||
| Image< J > & | b | ||
| ) |
Split a color RGB image into 3 images.
| mln::trait::ch_value< I , V >::ret mln::data::stretch | ( | const V & | v, |
| const Image< I > & | input | ||
| ) |
Stretch the values of input so that they can be stored in output.
| [in] | v | A value to set the output value type. |
| [in] | input | The input image. |
v.| void mln::data::to_enc | ( | const Image< I > & | input, |
| Image< O > & | output | ||
| ) |
Set the output image with the encoding values of the image input pixels.
| [in] | input | The input image. |
| [out] | output | The result image. |
output.domain >= input.domain | mln::trait::ch_value< I , typename F ::result >::ret mln::data::transform | ( | const Image< I > & | input, |
| const Function_v2v< F > & | f | ||
| ) |
Transform the image input through a function f.
| [in] | input | The input image. |
| [in] | f | The function. |
This routine runs:
for all p of input, output(p) = f( input(p) ).
| mln::trait::ch_value< I1 , typename F ::result >::ret mln::data::transform | ( | const Image< I1 > & | input1, |
| const Image< I2 > & | input2, | ||
| const Function_vv2v< F > & | f | ||
| ) |
Transform two images input1 input2 through a function f.
| [in] | input1 | The 1st input image. |
| [in] | input2 | The 2nd input image. |
| [in] | f | The function. |
This routine runs:
for all p of input, output(p) = f( input1(p), input2(p) ).
| mln::trait::ch_value< I , V >::ret mln::data::wrap | ( | const V & | v, |
| const Image< I > & | input | ||
| ) |
Routine to wrap values such as 0 -> 0 and [1, lmax] maps to [1, Lmax] (using modulus).
| [in] | v | The target value type. |
| [in] | input | Input image. |