Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::transform Namespace Reference

Namespace of transforms. More...

Functions

template<typename I , typename N , typename D >
util::couple
< mln::trait::ch_value< I, D >
::ret, mln::trait::ch_value< I,
typename I::psite >::ret > 
distance_and_closest_point_geodesic (const Image< I > &input, const Neighborhood< N > &nbh, D max)
 Discrete geodesic distance transform.
 
template<typename P , typename N , typename D >
util::couple
< mln_image_from_grid(mln_grid(P),
D), mln_image_from_grid(mln_grid(P),
unsigned)> 
distance_and_closest_point_geodesic (const p_array< P > &pset, const box< P > &closest_point_domain, const Neighborhood< N > &nbh, D max)
 Discrete geodesic distance transform.
 
template<typename I , typename N , typename D >
util::couple
< mln::trait::ch_value< I, D >
::ret, I > 
distance_and_influence_zone_geodesic (const Image< I > &input, const Neighborhood< N > &nbh, D max)
 Discrete geodesic distance transform.
 
template<typename I , typename N , typename W , typename D >
mln::trait::ch_value< I, D >::ret distance_front (const Image< I > &input, const Neighborhood< N > &nbh, const Weighted_Window< W > &w_win, D max)
 Discrete front distance transform.
 
template<typename I , typename N , typename D >
mln::trait::ch_value< I, D >::ret distance_geodesic (const Image< I > &input, const Neighborhood< N > &nbh, D max)
 Discrete geodesic distance transform.
 
template<typename I >
image2d< float > hough (const Image< I > &input_)
 Compute the hough transform from a binary image.
 
template<typename I , typename N , typename W , typename D >
mln::trait::concrete< I >::ret influence_zone_front (const Image< I > &input, const Neighborhood< N > &nbh, const Weighted_Window< W > &w_win, D max)
 Influence zone transform.
 
template<typename I , typename N , typename W >
mln::trait::concrete< I >::ret influence_zone_front (const Image< I > &input, const Neighborhood< N > &nbh, const Weighted_Window< W > &w_win)
 Influence zone transform.
 
template<typename I , typename N >
mln::trait::concrete< I >::ret influence_zone_geodesic (const Image< I > &input, const Neighborhood< N > &nbh)
 Geodesic influence zone transform.
 
template<typename I , typename N , typename D >
mln::trait::concrete< I >::ret influence_zone_geodesic_saturated (const Image< I > &input, const Neighborhood< N > &nbh, const D &max, const typename I::value &background_value)
 Geodesic influence zone transform.
 
template<typename I , typename N , typename D >
mln::trait::concrete< I >::ret influence_zone_geodesic_saturated (const Image< I > &input, const Neighborhood< N > &nbh, const D &max)
 

Detailed Description

Namespace of transforms.

Function Documentation

template<typename I , typename N , typename D >
util::couple< mln::trait::ch_value< I, D >::ret, mln::trait::ch_value< I, typename I::psite >::ret > mln::transform::distance_and_closest_point_geodesic ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
max 
)
inline

Discrete geodesic distance transform.

Parameters
[in]inputImage from which the geodesic distance is computed.
[in]nbhNeighborhood
[in]maxMax distance of propagation.
Returns
a couple of images. The first one is the distance map and the second one is the closest point image. The closest point image contains sites.
Postcondition
The returned images have the same domain as input.

Definition at line 90 of file distance_and_closest_point_geodesic.hh.

References mln::make::couple(), and mln::canvas::distance_geodesic().

template<typename P , typename N , typename D >
util::couple< mln_image_from_grid(mln_grid(P), D), mln_image_from_grid(mln_grid(P), unsigned)> mln::transform::distance_and_closest_point_geodesic ( const p_array< P > &  pset,
const box< P > &  closest_point_domain,
const Neighborhood< N > &  nbh,
max 
)
inline

Discrete geodesic distance transform.

Parameters
[in]psetan array of sites.
[in]closest_point_domaindomain of the returned image.
[in]nbhneighborhood
[in]maxmax distance of propagation.
Returns
A couple of images. The first one is the distance map and the second one is the closest point image. The closest point image contains site indexes.
Postcondition
The returned image domains are defined on closest_point_domain.

Definition at line 110 of file distance_and_closest_point_geodesic.hh.

References mln::geom::bbox(), mln::make::couple(), mln::canvas::distance_geodesic(), mln::data::fill(), and mln::box< P >::is_valid().

template<typename I , typename N , typename D >
util::couple< mln::trait::ch_value< I, D >::ret, I > mln::transform::distance_and_influence_zone_geodesic ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
max 
)
inline

Discrete geodesic distance transform.

Parameters
[in]inputImage from which the geodesic distance is computed.
[in]nbhNeighborhood
[in]maxMax distance of propagation.
Returns
a couple of images. The first one is the distance map and the second one is the closest point image. The closest point image contains sites.
Postcondition
The returned images have the same domain as input.

Definition at line 69 of file distance_and_influence_zone_geodesic.hh.

References mln::make::couple(), and mln::canvas::distance_geodesic().

template<typename I , typename N , typename W , typename D >
mln::trait::ch_value< I, D >::ret mln::transform::distance_front ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const Weighted_Window< W > &  w_win,
max 
)
inline

Discrete front distance transform.

Definition at line 56 of file transform/distance_front.hh.

References mln::canvas::distance_front().

template<typename I , typename N , typename D >
mln::trait::ch_value< I, D >::ret mln::transform::distance_geodesic ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
max 
)
inline

Discrete geodesic distance transform.

Definition at line 55 of file transform/distance_geodesic.hh.

References mln::canvas::distance_geodesic().

template<typename I >
image2d< float > mln::transform::hough ( const Image< I > &  input_)

Compute the hough transform from a binary image.

Objects used for computation must be set to 'true'.

Parameters
[in]input_A binary image.
Returns
A 2D image of float. Rows are used for the distance and columns are used for the angles. Angles go from 0 to 359. Distance goes from 0 to the maximum distance between the center and a corner. The site having the maximum value indicates through its column index the document inclination.

Definition at line 98 of file hough.hh.

References mln::opt::at(), mln::data::fill(), mln::geom::min_col(), mln::geom::min_row(), mln::geom::ncols(), and mln::geom::nrows().

template<typename I , typename N , typename W , typename D >
mln::trait::concrete< I >::ret mln::transform::influence_zone_front ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const Weighted_Window< W > &  w_win,
max 
)

Influence zone transform.

Definition at line 60 of file influence_zone_front.hh.

References mln::canvas::distance_front().

Referenced by influence_zone_front().

template<typename I , typename N , typename W >
mln::trait::concrete< I >::ret mln::transform::influence_zone_front ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const Weighted_Window< W > &  w_win 
)

Influence zone transform.

Definition at line 78 of file influence_zone_front.hh.

References influence_zone_front().

template<typename I , typename N >
mln::trait::concrete< I >::ret mln::transform::influence_zone_geodesic ( const Image< I > &  input,
const Neighborhood< N > &  nbh 
)

Geodesic influence zone transform.

Parameters
[in]inputAn image.
[in]nbhA neighborhood.
Returns
An image of influence zone.

Definition at line 219 of file influence_zone_geodesic.hh.

template<typename I , typename N , typename D >
mln::trait::concrete< I >::ret mln::transform::influence_zone_geodesic_saturated ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const D &  max,
const typename I::value &  background_value 
)

Geodesic influence zone transform.

Parameters
[in]inputAn image.
[in]nbhA neighborhood.
[in]maxThe maximum influence zone distance.
[in]background_valueThe value used as background (i.e. not propagated).
Returns
An image of influence zone.

Definition at line 73 of file influence_zone_geodesic_saturated.hh.

References mln::canvas::distance_geodesic().

Referenced by influence_zone_geodesic_saturated().

template<typename I , typename N , typename D >
mln::trait::concrete< I >::ret mln::transform::influence_zone_geodesic_saturated ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const D &  max 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 93 of file influence_zone_geodesic_saturated.hh.

References influence_zone_geodesic_saturated(), and mln::literal::zero.