Namespaces | Classes | Typedefs | Functions

mln::world::inter_pixel Namespace Reference

Namespaces

namespace  dim2

Classes

struct  is_pixel
struct  is_separator
 Functor returning whether a site is a separator in an inter-pixel image. More...

Typedefs

typedef neighb< win::multiple
< window2d, dim2::is_row_odd > > 
dbl_neighb2d
 Double neighborhood used for inter-pixel images.

Functions

template<typename I , typename F >
image_if< mln::trait::ch_value
< typename I::unmorph,
typename F::result >::ret,
is_separator
compute (const Image< I > &input, const Function_vv2v< F > &f)
template<typename I >
display_edge (const I &ima, typename I::value bg, unsigned zoom)
const dbl_neighb2de2c ()
 C4 neighborhood on pixels centered on an edge.
const dbl_neighb2de2e ()
 C8 neighborhood on edges centered on an edge.
template<typename I >
full2image (const Image< I > &input)
 Convert an inter-pixel image to a classical image.
template<typename I >
image_if< typename
mln::trait::concrete< I >::ret,
is_pixel
immerse (const Image< I > &input)
 Convert an image to an inter-pixel image.
template<typename Ps , typename P >
void separator_to_pixels (const Site_Proxy< Ps > &s, Gpoint< P > &p1, Gpoint< P > &p2)
template<typename P >
void separator_to_pixels (const Gpoint< P > &s, Gpoint< P > &p1, Gpoint< P > &p2)

Typedef Documentation

Double neighborhood used for inter-pixel images.


Function Documentation

template<typename I , typename F >
image_if< mln::trait::ch_value< typename I::unmorph, typename F::result >::ret, is_separator > mln::world::inter_pixel::compute ( const Image< I > &  input,
const Function_vv2v< F > &  f 
) [inline]
template<typename I >
I mln::world::inter_pixel::display_edge ( const I &  ima,
typename I::value  bg,
unsigned  zoom 
) [inline]
const dbl_neighb2d & mln::world::inter_pixel::e2c (  ) 

C4 neighborhood on pixels centered on an edge.

References mln::make::double_neighb2d.

Referenced by mln::world::inter_pixel::dim2::make_edge_image().

const dbl_neighb2d & mln::world::inter_pixel::e2e (  ) 

C8 neighborhood on edges centered on an edge.

References mln::make::double_neighb2d.

template<typename I >
I mln::world::inter_pixel::full2image ( const Image< I > &  input  ) 

Convert an inter-pixel image to a classical image.

Parameters:
[in] input An inter-pixel image.
Returns:
A classical image without inter-pixel data.

References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::geom::nsites(), and mln::data::paste_without_localization().

template<typename I >
image_if< typename mln::trait::concrete< I >::ret, is_pixel > mln::world::inter_pixel::immerse ( const Image< I > &  input  )  [inline]

Convert an image to an inter-pixel image.

Parameters:
[in] input An image.
Returns:
An inter-pixel image.

References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::geom::nsites(), and mln::data::paste_without_localization().

template<typename Ps , typename P >
void mln::world::inter_pixel::separator_to_pixels ( const Site_Proxy< Ps > &  s,
Gpoint< P > &  p1,
Gpoint< P > &  p2 
) [inline]
template<typename P >
void mln::world::inter_pixel::separator_to_pixels ( const Gpoint< P > &  s,
Gpoint< P > &  p1,
Gpoint< P > &  p2 
) [inline]

References mln::exact().

Referenced by compute(), and separator_to_pixels().