/*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the copyright notices for more information. It is distributed under dual licence - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ===========================================================================**/ #ifndef __clitkDeformationFieldStatisticsFilter_txx #define __clitkDeformationFieldStatisticsFilter_txx #include "clitkDeformationListStatisticsFilter.h" namespace clitk { //------------------------------------------------------ //Magnitude //------------------------------------------------------ template void DeformationListStatisticsFilter::GetStatistics(const ListType& list, ValueType & mean, ValueType & sd, ValueType & max) { // Initialize ValueType norm; mean=0; sd=0; max=0; // loop over the list of displacements for (unsigned int i=0;i void DeformationListStatisticsFilter::GetStatistics(const ListsType& list, ValueListType & mean, ValueListType & sd, ValueListType & max) { mean.resize(list.size()); sd.resize(list.size()); max.resize(list.size()); for (unsigned int i=0;i void DeformationListStatisticsFilter::GetStatistics(const ListsType& list, ValueType& mean, ValueType &sd, ValueType & max, ValueListType & meanList, ValueListType & sdList, ValueListType & maxList) { // Calculate statistics per list GetStatistics(list, meanList, sdList, maxList); // Initialize mean=0; sd=0; max=0; // Loop for (unsigned int i=0;i void DeformationListStatisticsFilter::GetStatistics(const ListType& list, ListItemType & mean, ListItemType & sd, ListItemType & max) { // Initialize ListItemType displacement; mean.Fill(itk::NumericTraits::Zero); sd.Fill(itk::NumericTraits::Zero); max.Fill(itk::NumericTraits::Zero); // Loop over the list of displacements for (unsigned int i=0;i void DeformationListStatisticsFilter::GetStatistics(const ListsType& list, ListType & mean, ListType & sd, ListType & max) { mean.resize(list.size()); sd.resize(list.size()); max.resize(list.size()); for (unsigned int i=0;i void DeformationListStatisticsFilter::GetStatistics(const ListsType& list, ListItemType& mean, ListItemType &sd, ListItemType & max, ListType & meanList, ListType & sdList, ListType & maxList) { // Calculate statistics par list GetStatistics(list, meanList, sdList, maxList); // Initialize mean.Fill(itk::NumericTraits::Zero); sd.Fill(itk::NumericTraits::Zero); max.Fill(itk::NumericTraits::Zero); ListItemType displacement; // Loop for (unsigned int i=0;i