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 ===========================================================================**/
21 =================================================
23 * @author Jef Vandemeulebroucke <jef@creatis.insa-lyon.fr>
28 =================================================*/
30 #include "clitkCommon.h"
32 #include "clitkList.h"
35 #include "itkLightObject.h"
41 template <class ListItemType >
42 class Lists: public std::vector<clitk::List<ListItemType> >
45 //=====================================================================================
47 typedef typename ListItemType::ValueType ValueType;
48 itkStaticConstMacro(Dimension, unsigned int, ListItemType::Dimension);
49 typedef List<ListItemType> ListType;
50 typedef itk::Image<signed short, Dimension> ImageType;
52 //=====================================================================================
54 void Read(const std::vector<std::string>& fileNames, bool verbose=false);
55 void ReadAndConvertPointPairs(const std::vector<std::string>& fileNames, ListType& refList, const typename ImageType::Pointer referenceImage , bool verbose=false);
56 void Write(const std::vector<std::string> fileNames, const bool verbose);
59 //=====================================================================================
61 Lists< itk::FixedArray<double,1> > Norm(void);
63 //=====================================================================================
64 //Constructors - Destructors
66 Lists(unsigned int size){this->resize(size);};
67 Lists(const std::vector<std::string> fileNames, bool verbose=false ){Read(fileNames, verbose);}
79 #ifndef ITK_MANUAL_INSTANTIATION
80 #include "clitkLists.txx"