]> Creatis software - clitk.git/blobdiff - tools/clitkSUVPeakGenericFilter.txx
Add option to define the volume of the filter in clitkSUVPeak in cc
[clitk.git] / tools / clitkSUVPeakGenericFilter.txx
index 8bf1f00f224e043d72535186f448d470b1d7fcd6..893750dd3961b0d888ad4327346d7abfc66cccbe 100644 (file)
@@ -117,6 +117,8 @@ void SUVPeakGenericFilter<args_info_type>::UpdateWithInputImageType()
   }
 
   double volume = 1000; //1 cc into mc
+  if (mArgsInfo.volume_given)
+    volume *= mArgsInfo.volume_arg;
   const double PI = 3.141592653589793238463;
   double radius = std::pow(3*volume/(4*PI),1./3);