$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::convert Namespace Reference

Namespaces

namespace  impl
namespace  internal

Functions

template<typename F , typename T >
void from_to (const F &from, T &to)
template<typename S >
 mln_image_from_grid (typename S::site::grid, bool) to_image(const Site_Set< S > &pset
template<typename W >
 mln_image_from_grid (typename W::site::grid, bool) to_image(const Window< W > &win)
template<typename W >
 mln_image_from_grid (typename W::site::grid, mln_weight(W)) to_image(const Weighted_Window< W > &w_win)
template<typename N >
 mln_image_from_grid (typename N::site::grid, bool) to_image(const Neighborhood< N > &nbh)
template<typename N >
 mln_window (N) to_window(const Neighborhood< N > &nbh)
template<typename T , typename O >
T to (const O &from)
template<typename P >
P::dpoint to_dpoint (const Point_Site< P > &p)
template<typename I >
pw::value_< I > to_fun (const Image< I > &ima)
template<typename T >
image1d< unsignedto_image (const histo::array< T > &h)
template<typename S >
p_array< typename S::psite > to_p_array (const Site_Set< S > &pset)
template<typename W >
p_array< typename W::psite > to_p_array (const Window< W > &win, const typename W::psite &p)
template<typename I >
p_array< typename I::psite > to_p_array (const Image< I > &img)
template<typename N >
p_set< typename N::psite > to_p_set (const Neighborhood< N > &nbh)
template<typename I >
p_set< typename I::psite > to_p_set (const Image< I > &ima)
template<typename W >
p_set< typename W::psite > to_p_set (const Window< W > &win)
template<typename P , typename C >
p_set< P > to_p_set (const std::set< P, C > &s)
template<typename S >
p_set< typename S::psite > to_p_set (const Site_Set< S > &ps)
template<typename I >
QImage to_qimage (const Image< I > &ima)
template<typename I >
QImage to_qimage_nocopy (const Image< I > &ima_)
template<typename W >
window< typename W::dpsite > to_upper_window (const Window< W > &win)
template<typename N >
window< typename N::dpoint > to_upper_window (const Neighborhood< N > &nbh)
template<typename I >
window< typename I::site::dpsite > to_window (const Image< I > &ima)
template<typename S >
window< typename S::site::dpsite > to_window (const Site_Set< S > &pset)
template<typename D , typename C >
window< D > to_window (const std::set< D, C > &s)

Variables

unsigned border = 1)
fun::C< R(*)(A)> to_fun (R(*f)(A))

Detailed Description

Namespace of conversion routines.

Function Documentation

template<typename F , typename T >
void mln::convert::from_to ( const F &  from,
T to 
)
template<typename S >
mln::convert::mln_image_from_grid ( typename S::site::grid  ,
bool   
) const

Convert a point set pset into a binary image.

Width of the converted image will be pset.bbox + 2 * border.

template<typename W >
mln::convert::mln_image_from_grid ( typename W::site::grid  ,
bool   
) const

Convert a window win into a binary image.

template<typename W >
mln::convert::mln_image_from_grid ( typename W::site::grid  ,
mln_weight(W)   
) const

Convert a weighted window w_win into an image.

template<typename N >
mln::convert::mln_image_from_grid ( typename N::site::grid  ,
bool   
) const

Convert a neighborhood nbh into a binary image.

template<typename N >
mln::convert::mln_window ( ) const

Convert a neighborhood nbh into a window.

template<typename T , typename O >
T mln::convert::to ( const O &  from)

Conversion of the object from towards an object with type T.

template<typename P >
P ::dpoint mln::convert::to_dpoint ( const Point_Site< P > &  p)

Convert a point site p into a delta-point.

template<typename I >
pw::value_<I> mln::convert::to_fun ( const Image< I > &  ima)

Convert an image into a function.

template<typename T >
image1d<unsigned> mln::convert::to_image ( const histo::array< T > &  h)

Convert an histo h into an image1d<unsigned>.

template<typename S >
p_array<typename S ::psite> mln::convert::to_p_array ( const Site_Set< S > &  pset)

Convert a point set pset into a p_array (point set vector).

template<typename W >
p_array<typename W ::psite> mln::convert::to_p_array ( const Window< W > &  win,
const typename W::psite &  p 
)

Convert a window win centered at point p into a p_array (point set vector).

template<typename I >
p_array<typename I ::psite> mln::convert::to_p_array ( const Image< I > &  img)

Convert an image img into a p_array.

template<typename N >
p_set<typename N ::psite> mln::convert::to_p_set ( const Neighborhood< N > &  nbh)

Convert a neighborhood nbh into a site set.

template<typename I >
p_set<typename I ::psite> mln::convert::to_p_set ( const Image< I > &  ima)

Convert a binary image ima into a site set.

template<typename W >
p_set<typename W ::psite> mln::convert::to_p_set ( const Window< W > &  win)

Convert a Window win into a site set.

template<typename P , typename C >
p_set<P> mln::convert::to_p_set ( const std::set< P, C > &  s)

Convert an std::set s of sites into a site set.

C is the comparison functor.

template<typename S >
p_set<typename S ::psite> mln::convert::to_p_set ( const Site_Set< S > &  ps)

Convert any site set ps into a 'mln::p_set<>' site set.

template<typename I >
QImage mln::convert::to_qimage ( const Image< I > &  ima)
inline

Convert a Milena image to a Qimage.

template<typename I >
QImage mln::convert::to_qimage_nocopy ( const Image< I > &  ima_)
inline

Definition at line 162 of file to_qimage_nocopy.hh.

template<typename W >
window<typename W ::dpsite> mln::convert::to_upper_window ( const Window< W > &  win)

Convert a window nbh into an upper window.

template<typename N >
window<typename N ::dpoint> mln::convert::to_upper_window ( const Neighborhood< N > &  nbh)

Convert a neighborhood nbh into an upper window.

template<typename I >
window<typename I ::site::dpsite> mln::convert::to_window ( const Image< I > &  ima)

Convert a binary image ima into a window.

template<typename S >
window<typename S ::site::dpsite> mln::convert::to_window ( const Site_Set< S > &  pset)

Convert a site set pset into a window.

template<typename D , typename C >
window<D> mln::convert::to_window ( const std::set< D, C > &  s)

Convert an std::set s of delta-sites into a window.

Variable Documentation

unsigned mln::convert::border = 1)

Definition at line 62 of file to_image.hh.

fun::C<R(*)(A)> mln::convert::to_fun(R(*f)(A))

Convert a C unary function into an mln::fun::C.

Definition at line 45 of file to_fun.hh.