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. | |
|
||||||||||
|
Create extremum image from another one.
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 }
|
|
||||||||||
|
Create binary image from another one.
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 }
|
1.3.6-20040222