Namespaces | Functions

mln::world::binary_2d Namespace Reference

Namespaces

namespace  impl
namespace  internal

Functions

template<typename I >
mln::trait::concrete< I >::ret enlarge (const Image< I > &input, unsigned n)
 Enlarge a binary image 2^n times.
template<typename I >
util::couple< image1d< float >
, image1d< float > > 
projected_histo (const Image< I > &input_, bool value=true)
image2d< bool > reduce (const image2d< bool > &input)
image2d< value::int_u8subsample (image2d< bool > &input, unsigned n)
 Subsample a Boolean image.

Function Documentation

template<typename I >
mln::trait::concrete< I >::ret mln::world::binary_2d::enlarge ( const Image< I > &  input,
unsigned  n 
) [inline]

Enlarge a binary image 2^n times.

Parameters:
[in] input A binary image.
[in] n The power of 2 setting up the enlargement.
Returns:
A binary image with a domain 2^n times larger.

Definition at line 352 of file enlarge.hh.

References mln::duplicate(), mln::world::binary_2d::internal::enlarge_dispatch(), mln::trace::entering(), mln::exact(), and mln::trace::exiting().

template<typename I >
util::couple<image1d<float>, image1d<float> > mln::world::binary_2d::projected_histo ( const Image< I > &  input_,
bool  value = true 
)
image2d< bool > mln::world::binary_2d::reduce ( const image2d< bool > &  input  ) 
image2d< value::int_u8 > mln::world::binary_2d::subsample ( image2d< bool > &  input,
unsigned  n 
)

Subsample a Boolean image.

Parameters:
[in] input A binary image.
[in] n Linear subsampling coefficient.
Returns:
A gray level image.

Definition at line 64 of file subsample.hh.

References mln::data::convert(), mln::image2d< T >::delta_index(), mln::trace::entering(), mln::trace::exiting(), mln::internal::image_base< T, S, E >::is_valid(), mln::image2d< T >::ncols(), and mln::image2d< T >::nrows().