mln::world::inter_pixel Namespace Reference


Classes

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

Namespaces

namespace  dim2

Typedefs

typedef neighb< dbl_window2ddbl_neighb2d
 Double neighborhood, used for inter-pixel images.
typedef win::multiple
< window2d, dim2::is_row_odd
dbl_window2d
 Double window.

Functions

template<typename I, typename F>
image_if< mln::trait::ch_value
< mln_unmorph(I), 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)
 Create an image which is a copy of the input image with a solid background color and highlighted edges.
const dbl_neighb2de2e ()
 Edge (inter-pixel) to neighboring edges (inter-pixels).
const dbl_neighb2de2v ()
 Edge (inter-pixel) to neighborhood vertices (pixels).
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)
const neighb2dv2e ()
 Vertex (pixel) to neighboring edges (inter-pixels).
const neighb2dv2v ()
 Vertex (pixel) to neighboring vertices (pixels).


Typedef Documentation

Double neighborhood, used for inter-pixel images.

Definition at line 50 of file world/inter_pixel/neighb2d.hh.

Double window.

Definition at line 47 of file world/inter_pixel/neighb2d.hh.


Function Documentation

template<typename I, typename F>
image_if< mln::trait::ch_value< mln_unmorph(I), 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]

Create an image which is a copy of the input image with a solid background color and highlighted edges.

The image is stretched according to the zoom ratio.

Parameters:
[in] ima The input image providing edge values.
[in] bg The background color.
[in] zoom The zoom ratio.
Returns:
A copy of the input image with highlighted edges.
Precondition:
ima has to be an unmorphed image.

Definition at line 69 of file display_edge.hh.

References mln::opt::at(), mln::make::box2d(), mln::data::fill(), mln::box< P >::pmax(), and mln::box< P >::pmin().

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

Edge (inter-pixel) to neighboring edges (inter-pixels).

Definition at line 106 of file world/inter_pixel/neighb2d.hh.

References mln::make::double_neighb2d().

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

Edge (inter-pixel) to neighborhood vertices (pixels).

Definition at line 89 of file world/inter_pixel/neighb2d.hh.

References mln::make::double_neighb2d().

Referenced by trait::graph< mln::image2d< T > >::e2v(), and mln::world::inter_pixel::dim2::make_edge_image().

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

Convert an inter-pixel image to a classical image.

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

Definition at line 64 of file full2image.hh.

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.

Definition at line 64 of file immerse.hh.

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]

Definition at line 112 of file separator_to_pixels.hh.

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

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

Definition at line 68 of file separator_to_pixels.hh.

References mln::exact().

Referenced by compute(), and separator_to_pixels().

const neighb2d & mln::world::inter_pixel::v2e (  ) 

Vertex (pixel) to neighboring edges (inter-pixels).

Definition at line 84 of file world/inter_pixel/neighb2d.hh.

References mln::c4().

Referenced by trait::graph< mln::image2d< T > >::v2e().

const neighb2d & mln::world::inter_pixel::v2v (  ) 

Vertex (pixel) to neighboring vertices (pixels).

Definition at line 69 of file world/inter_pixel/neighb2d.hh.

References mln::convert::from_to(), and mln::internal::neighborhood_impl< W, E >::size().


Generated on Sun Apr 25 02:07:58 2010 for Milena (Olena) by  doxygen 1.5.6