3227: Better display anat segmentation results.

29 Jan
2009
29 Jan
'09
6:17 p.m.
https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox Index: ChangeLog from Thierry Geraud <thierry.geraud@lrde.epita.fr> Better display anat segmentation results. * theo/igr/irm_anat_segm.cc (main): Ensure that no basin mean is 0-valued. irm_anat_segm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: theo/igr/irm_anat_segm.cc --- theo/igr/irm_anat_segm.cc (revision 3226) +++ theo/igr/irm_anat_segm.cc (working copy) @@ -49,7 +49,9 @@ accu::mean<int_u8, float, int_u8> a_; util::array<int_u8> a = labeling::compute(a_, vol, wst, n_basins); - std::cout << a << std::endl; + for (L l = 1; l <= n_basins; ++l) + if (a[l] == 0) + a[l] = 1; a[0] = 0; fun::i2v::array<int_u8> f;
6051
Age (days ago)
6051
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thierry Geraud