https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)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;