]> Creatis software - clitk.git/commitdiff
Add volume to clitkImageStatistics
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 14 Mar 2016 09:57:41 +0000 (10:57 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 14 Mar 2016 09:57:41 +0000 (10:57 +0100)
tools/clitkImageStatisticsGenericFilter.txx

index 0d798e9b9ba7d76a20f4bd6899e5ef25e25ca589..6a2a68ebbda35234061b8fa5ca8e6ab30b5120ab 100644 (file)
@@ -246,6 +246,8 @@ namespace clitk
         std::cout<<statisticsFilter->GetMaximum(label)<<std::endl;
         if (m_Verbose) std::cout<<"Sum: ";
         std::cout<<statisticsFilter->GetSum(label)<<std::endl;
+        if (m_Verbose) std::cout<<"Volume (cc): ";
+        std::cout<<statisticsFilter->GetCount(label)*spacing_cc<<std::endl;
         if (m_Verbose) std::cout<<"Bounding box: ";
         for(unsigned int i =0; i <statisticsFilter->GetBoundingBox(label).size(); i++)
             std::cout<<statisticsFilter->GetBoundingBox(label)[i]<<" ";