Functions | |
template<typename V> | |
void | from_to (const unsigned &from, Value< V > &to) |
Conversion of an unsigned from towards a value to . | |
template<typename V> | |
void | from_to (const int &from, Value< V > &to) |
Conversion of a int from towards a value to . | |
template<typename V> | |
void | from_to (const float &from, Value< V > &to) |
Conversion of a float from towards a value to . | |
template<typename V> | |
void | from_to (const double &from, Value< V > &to) |
Conversion of a double from towards a value to . | |
template<typename N> | |
mln_image_from_grid (typename N::site::grid, bool) to_image(const Neighborhood< N > &nbh) | |
Convert a neighborhood nbh into a binary image. | |
template<typename W> | |
mln_image_from_grid (typename W::site::grid, mln_weight(W)) to_image(const Weighted_Window< W > &w_win) | |
Convert a weighted window w_win into an image. | |
template<typename W> | |
mln_image_from_grid (typename W::site::grid, bool) to_image(const Window< W > &win) | |
Convert a window win into a binary image. | |
template<typename S> | |
mln_image_from_grid (typename S::site::grid, bool) to_image(const Site_Set< S > &pset | |
Convert a point set pset into a binary image. | |
template<typename N> | |
mln_window (N) to_window(const Neighborhood< N > &nbh) | |
Convert a neighborhood nbh into a window. | |
template<typename T, typename O> | |
T | to (const O &from) |
Conversion of the object from towards an object with type T . | |
template<typename P> | |
P::dpoint | to_dpoint (const Point_Site< P > &p) |
Convert a point site p into a delta-point. | |
template<typename I> | |
pw::value_< I > | to_fun (const Image< I > &ima) |
Convert an image into a function. | |
template<typename R, typename A> | |
fun::C< R(*)(A)> | to_fun (R(*f)(A)) |
Convert a C unary function into an mln::fun::C. | |
template<typename T> | |
image1d< unsigned > | to_image (const histo::array< T > &h) |
Convert an histo h into an image1d<unsigned>. | |
template<typename I> | |
p_array< typename I::psite > | to_p_array (const Image< I > &img) |
Convert an image img into a p_array. | |
template<typename W> | |
p_array< typename W::psite > | 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 S> | |
p_array< typename S::psite > | to_p_array (const Site_Set< S > &pset) |
Convert a point set pset into a p_array (point set vector). | |
template<typename S> | |
p_set< typename S::psite > | to_p_set (const Site_Set< S > &ps) |
Convert any site set ps into a 'mlnp_set' site set. | |
template<typename P, typename C> | |
p_set< P > | to_p_set (const std::set< P, C > &s) |
Convert an std::set s of sites into a site set. | |
template<typename W> | |
p_set< typename W::psite > | to_p_set (const Window< W > &win) |
Convert a Window win into a site set. | |
template<typename I> | |
p_set< typename I::psite > | to_p_set (const Image< I > &ima) |
Convert a binary image ima into a site set. | |
template<typename N> | |
p_set< typename N::psite > | to_p_set (const Neighborhood< N > &nbh) |
Convert a neighborhood nbh into a site set. | |
template<typename N> | |
window< typename N::dpoint > | to_upper_window (const Neighborhood< N > &nbh) |
Convert a neighborhood nbh into an upper window. | |
template<typename W> | |
window< typename W::dpsite > | to_upper_window (const Window< W > &win) |
Convert a window nbh into an upper window. | |
template<typename D, typename C> | |
window< D > | to_window (const std::set< D, C > &s) |
Convert an std::set s of delta-sites into a window. | |
template<typename S> | |
window< typename S::site::dpsite > | to_window (const Site_Set< S > &pset) |
Convert a site set pset into a window. | |
template<typename I> | |
window< typename I::site::dpsite > | to_window (const Image< I > &ima) |
Convert a binary image ima into a window. |
void mln::convert::from_to | ( | const unsigned & | from, | |
Value< V > & | to | |||
) | [inline] |
Conversion of an unsigned from
towards a value to
.
void mln::convert::from_to | ( | const int & | from, | |
Value< V > & | to | |||
) | [inline] |
Conversion of a int from
towards a value to
.
void mln::convert::from_to | ( | const float & | from, | |
Value< V > & | to | |||
) | [inline] |
Conversion of a float from
towards a value to
.
void mln::convert::from_to | ( | const double & | from, | |
Value< V > & | to | |||
) | [inline] |
Conversion of a double from
towards a value to
.
mln::convert::mln_image_from_grid | ( | typename N::site::grid | , | |
bool | ||||
) | const [inline] |
Convert a neighborhood nbh
into a binary image.
mln::convert::mln_image_from_grid | ( | typename W::site::grid | , | |
mln_weight(W) | ||||
) | const [inline] |
Convert a weighted window w_win
into an image.
mln::convert::mln_image_from_grid | ( | typename W::site::grid | , | |
bool | ||||
) | const [inline] |
mln::convert::mln_image_from_grid | ( | typename S::site::grid | , | |
bool | ||||
) | const [inline] |
mln::convert::mln_window | ( | N | ) | const [inline] |
Convert a neighborhood nbh
into a window.
T mln::convert::to | ( | const O & | from | ) | [inline] |
Conversion of the object from
towards an object with type T
.
References mln::mln_exact().
Referenced by mln::make_debug_graph_image().
P::dpoint mln::convert::to_dpoint | ( | const Point_Site< P > & | p | ) | [inline] |
Convert a point site p
into a delta-point.
pw::value_< I > mln::convert::to_fun | ( | const Image< I > & | ima | ) | [inline] |
Convert an image into a function.
fun::C< R(*)(A)> mln::convert::to_fun | ( | R(*)(A) | f | ) | [inline] |
Convert a C unary function into an mln::fun::C.
image1d<unsigned> mln::convert::to_image | ( | const histo::array< T > & | h | ) | [inline] |
Convert an histo h
into an image1d<unsigned>.
p_array< typename I::psite > mln::convert::to_p_array | ( | const Image< I > & | img | ) | [inline] |
p_array< typename W::psite > mln::convert::to_p_array | ( | const Window< W > & | win, | |
const typename W::psite & | p | |||
) | [inline] |
Convert a window win
centered at point p
into a p_array (point set vector).
References mln::p_array< P >::append(), and mln::p_array< P >::reserve().
p_array< typename S::psite > mln::convert::to_p_array | ( | const Site_Set< S > & | pset | ) | [inline] |
p_set< typename S::psite > mln::convert::to_p_set | ( | const Site_Set< S > & | ps | ) | [inline] |
p_set< P > mln::convert::to_p_set | ( | const std::set< P, C > & | s | ) | [inline] |
Convert an std::set s
of sites into a site set.
C is the comparison functor.
References mln::p_set< P >::insert().
p_set< typename W::psite > mln::convert::to_p_set | ( | const Window< W > & | win | ) | [inline] |
p_set< typename I::psite > mln::convert::to_p_set | ( | const Image< I > & | ima | ) | [inline] |
p_set< typename N::psite > mln::convert::to_p_set | ( | const Neighborhood< N > & | nbh | ) | [inline] |
window< typename N::dpoint > mln::convert::to_upper_window | ( | const Neighborhood< N > & | nbh | ) | [inline] |
window< typename W::dpsite > mln::convert::to_upper_window | ( | const Window< W > & | win | ) | [inline] |
window< D > mln::convert::to_window | ( | const std::set< D, C > & | s | ) | [inline] |
window< typename S::site::dpsite > mln::convert::to_window | ( | const Site_Set< S > & | pset | ) | [inline] |
window< typename I::site::dpsite > mln::convert::to_window | ( | const Image< I > & | ima | ) | [inline] |
Convert a binary image ima
into a window.
References mln::window< D >::insert().
Referenced by to_window().