X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=itk%2FclitkLabelImageOverlapMeasureFilter.txx;h=a29aa6a3f810eb1987a8adbd2f62b82bc7d1e4a2;hb=3d4b1e6cb67393a306cd670ce0527c4f96b13f4b;hp=57516bb41634db8996e3822aa0d91ad748b2c110;hpb=d745faae40e9f4340a1e6a3dec7cc96176f3006d;p=clitk.git diff --git a/itk/clitkLabelImageOverlapMeasureFilter.txx b/itk/clitkLabelImageOverlapMeasureFilter.txx index 57516bb..a29aa6a 100644 --- a/itk/clitkLabelImageOverlapMeasureFilter.txx +++ b/itk/clitkLabelImageOverlapMeasureFilter.txx @@ -121,8 +121,13 @@ GenerateData() statFilter->Update(); int in2 = statFilter->GetCount(GetLabel1()); - std::cout << in1 << " " << in2 << " " << inter << " " << u << " " - << 2.0*(double)inter/(double)(in1+in2) << std::endl; + double dice = 2.0*(double)inter/(double)(in1+in2); + int width = 6; + std::cout << std::setw(width) << in1 << " " + << std::setw(width) << in2 << " " + << std::setw(width) << inter << " " + << std::setw(width) << u << " " + << std::setw(width) << dice << " "; //std::endl; } //--------------------------------------------------------------------