1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef __clitkDeformationListStatistics_h
19 #define __clitkDeformationListStatistics_h
20 #include "clitkImageCommon.h"
21 #include "clitkList.h"
22 #include "clitkLists.h"
25 #include "itkLightObject.h"
27 #include "itkImageRegionIterator.h"
28 #include "itkImageRegionIteratorWithIndex.h"
29 #include "itkNumericTraits.h"
30 #if ITK_VERSION_MAJOR <= 4
31 #include "itkSimpleFastMutexLock.h"
35 #include "itkImageMaskSpatialObject.h"
40 template < class ListItemType >
41 class ITK_EXPORT DeformationListStatisticsFilter : public itk::LightObject
45 typedef DeformationListStatisticsFilter Self;
46 typedef itk::LightObject Superclass;
47 typedef itk::SmartPointer<Self> Pointer;
48 typedef itk::SmartPointer<const Self> ConstPointer;
51 /** Method for creation through the object factory. */
54 //====================================
56 typedef typename ListItemType::ValueType ValueType;
57 itkStaticConstMacro(Dimension, unsigned int, ListItemType::Dimension);
58 //typedef itk::Vector<ValueType, Dimension> ListItemType;
59 typedef std::vector<ValueType> ValueListType;
60 typedef clitk::List<ListItemType> ListType;
61 typedef clitk::Lists<ListItemType> ListsType;
63 //====================================
65 void GetStatistics( const ListType &, ValueType & mean, ValueType & sd, ValueType & max);
66 void GetStatistics( const ListsType &, ValueListType & mean, ValueListType & sd, ValueListType & max);
67 void GetStatistics( const ListsType &, ValueType & mean , ValueType & sd, ValueType & max, ValueListType & meanList, ValueListType & sdList, ValueListType & maxList);
69 void GetStatistics( const ListType &, ListItemType & meanXYZ, ListItemType & sdXYZ, ListItemType & maxXYZ );
70 void GetStatistics( const ListsType &, ListType & meanXYZ, ListType & sdXYZ, ListType & maxXYZ );
71 void GetStatistics( const ListsType &, ListItemType & mean , ListItemType & sd, ListItemType & max, ListType & meanXYZList, ListType & sdXYZList, ListType & maxXYZList );
74 DeformationListStatisticsFilter(){};
75 ~DeformationListStatisticsFilter() {};
85 } // end namespace clitk
86 #ifndef ITK_MANUAL_INSTANTIATION
87 #include "clitkDeformationListStatisticsFilter.txx"
90 #endif // #define __clitkDeformationListStatistics_h