mln::transform Namespace Reference

Namespace of transforms. More...


Functions

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, 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 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 >
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 , 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 >
mln::trait::concrete< I >::ret influence_zone_geodesic (const Image< I > &input, const Neighborhood< N > &nbh)
template<typename I , typename N , typename D >
mln::trait::concrete< I >::ret influence_zone_geodesic (const Image< I > &input, const Neighborhood< N > &nbh, const D &max)
template<typename I , typename N , typename D >
mln::trait::concrete< I >::ret influence_zone_geodesic (const Image< I > &input, const Neighborhood< N > &nbh, const D &max, const typename I::value &background_value)
 Geodesic influence zone transform.


Detailed Description

Namespace of transforms.


Function Documentation

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] pset an array of sites.
[in] closest_point_domain domain of the returned image.
[in] nbh neighborhood
[in] max max 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.

References mln::geom::bbox(), mln::make::couple(), 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, 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] input Image from which the geodesic distance is computed.
[in] nbh Neighborhood
[in] max Max 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.

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

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] input Image from which the geodesic distance is computed.
[in] nbh Neighborhood
[in] max Max 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.

References mln::make::couple(), and 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.

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]

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

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.

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 >
mln::trait::concrete< I >::ret mln::transform::influence_zone_front ( const Image< I > &  input,
const Neighborhood< N > &  nbh,
const Weighted_Window< W > &  w_win 
) [inline]

Influence zone transform.

References influence_zone_front().

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 
) [inline]

Influence zone transform.

References mln::canvas::distance_front().

Referenced by 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 
) [inline]

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

References influence_zone_geodesic().

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

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

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

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

Geodesic influence zone transform.

Parameters:
[in] input An image.
[in] nbh A neighborhood.
[in] max The maximum influence zone distance.
[in] background_value The value used as background (i.e. not propagated).
Returns:
An image of influence zone.

References mln::canvas::distance_geodesic().

Referenced by influence_zone_geodesic().


Generated on Tue Jul 14 16:33:15 2009 for Milena (Olena) by  doxygen 1.5.9