/*========================================================================= Program: Tensor ToolKit - TTK Module: $URL$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) INRIA 2010. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef _itk_TensorToADCFunction_txx_ #define _itk_TensorToADCFunction_txx_ #include "itkTensorToADCFunction.h" namespace itk { template typename TensorToADCFunction::OutputPixelType TensorToADCFunction ::ComputeScalar (const InputPixelType & T) const { return static_cast( T.GetTrace() / T.GetTensorDimension() ); } }// end of namespace #endif