internal Namespace Reference

abstract internal. More...


Functions

template<class DestType, class I> mute< I, DestType >::ret create_minima_image_from_bin_ (const abstract::non_vectorial_image< I > &input)
 Create extremum image from another one.

template<class I> mute< I, ntg::bin >::ret ima_to_bin_ (const abstract::non_vectorial_image< I > &input)
 Create binary image from another one.


Detailed Description

abstract internal.

Function Documentation

template<class DestType, class I>
mute<I, DestType>::ret create_minima_image_from_bin_ const abstract::non_vectorial_image< I > &  input  ) 
 

Create extremum image from another one.

Parameters:
DestType Type of data in the wanted image.
I Exact type of the input image.
  • input Input image.

Definition at line 41 of file extrema.hxx.

00042   {
00043     oln_iter_type(I) p(input);
00044     typename mute<I, DestType>::ret output(input.size());
00045     for_all (p)
00046       // FIXME: min() and max() should be inf() and sup()
00047       // once these functions exist.  Otherwise it doesn't
00048       // work on float.
00049       output[p] = (input[p] ?
00050                    ntg_min_val(DestType) :
00051                    ntg_max_val(DestType));
00052     return output;
00053   }

template<class I>
mute<I, ntg::bin>::ret ima_to_bin_ const abstract::non_vectorial_image< I > &  input  ) 
 

Create binary image from another one.

Parameters:
I Exact type of the image.
  • input Input image.

Definition at line 64 of file extrema.hxx.

00065   {
00066     oln_iter_type(I) p(input);
00067     typename mute<I, ntg::bin>::ret output(input.size());
00068     for_all (p)
00069       output[p] = (input[p] ? true : false);
00070     return output;
00071   }


Generated on Thu Apr 15 20:13:45 2004 for Olena by doxygen 1.3.6-20040222