From 0ff37b7a6b4a8ae63f40ce7f037cfa4f805c17aa Mon Sep 17 00:00:00 2001 From: ocommowi Date: Mon, 3 Feb 2014 13:12:53 +0000 Subject: [PATCH] ADC is the average diffusion coefficient, not the sum git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/ttk/trunk@217 0a38917d-65eb-41a1-bb20-5b51c338416a --- Algorithms/itkTensorToADCFunction.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/itkTensorToADCFunction.txx b/Algorithms/itkTensorToADCFunction.txx index 7d2e7fd..441b515 100644 --- a/Algorithms/itkTensorToADCFunction.txx +++ b/Algorithms/itkTensorToADCFunction.txx @@ -28,7 +28,7 @@ namespace itk TensorToADCFunction ::ComputeScalar (const InputPixelType & T) const { - return static_cast( T.GetTrace() ); + return static_cast( T.GetTrace() / T.GetTensorDimension() ); }