Skip to content

Commit

Permalink
ADC is the average diffusion coefficient, not the sum
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/ttk/trunk@217 0a38917d-65eb-41a1-bb20-5b51c338416a
  • Loading branch information
ocommowi committed Feb 3, 2014
1 parent cb39f3f commit 0ff37b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Algorithms/itkTensorToADCFunction.txx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace itk
TensorToADCFunction<TInputPixelType,TOutputPixelType>
::ComputeScalar (const InputPixelType & T) const
{
return static_cast<OutputPixelType>( T.GetTrace() );
return static_cast<OutputPixelType>( T.GetTrace() / T.GetTensorDimension() );
}


Expand Down

0 comments on commit 0ff37b7

Please sign in to comment.