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 clitkCombineImageFilter_txx
19 #define clitkCombineImageFilter_txx
21 /* =================================================
22 * @file clitkCombineImageFilter.txx
28 ===================================================*/
34 //-------------------------------------------------------------------
35 // Update with the number of dimensions
36 //-------------------------------------------------------------------
37 template<class InputImageType>
38 CombineImageFilter<InputImageType>::CombineImageFilter()
44 //-------------------------------------------------------------------
45 // Update with the number of dimensions and the pixeltype
46 //-------------------------------------------------------------------
47 template<class InputImageType>
49 CombineImageFilter<InputImageType>::ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId)
51 typename InputImageType::ConstPointer input1=this->GetInput(0);
52 typename InputImageType::ConstPointer input2=this->GetInput(1);
53 typename InputImageType::Pointer output=this->GetOutput();
55 typedef itk::ImageRegionIterator<InputImageType> IteratorType;
56 typedef itk::ImageRegionConstIterator<InputImageType> ConstIteratorType;
57 typedef itk::ImageRegionConstIterator<MaskImageType> MaskIteratorType;
59 ConstIteratorType it1(input1, outputRegionForThread);
60 ConstIteratorType it2(input2, outputRegionForThread);
61 MaskIteratorType itM(m_Mask, outputRegionForThread);
62 IteratorType itO(output, outputRegionForThread);
69 while(! itO.IsAtEnd())
87 #endif //#define clitkCombineImageFilter_txx