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 __itkLinearCombinationImageFilter_h
19 #define __itkLinearCombinationImageFilter_h
20 #include "itkImageToImageFilter.h"
21 #include "itkNumericTraits.h"
28 template <class TInputImage, class TOutputImage>
29 class ITK_EXPORT LinearCombinationImageFilter :
30 public itk::ImageToImageFilter<TInputImage, TOutputImage >
33 //-----------------------------------
34 /** Standard class typedefs. */
35 //-----------------------------------
36 typedef LinearCombinationImageFilter Self;
37 typedef itk::ImageToImageFilter<TInputImage,TOutputImage> Superclass;
38 typedef itk::SmartPointer<Self> Pointer;
39 typedef itk::SmartPointer<const Self> ConstPointer;
41 /** Method for creation through the object factory. */
44 /** Runtime information support. */
45 itkTypeMacro(LinearCombinationImageFilter, ImageToImageFilter);
47 //-----------------------------------
49 //-----------------------------------
50 typedef typename TInputImage::Pointer InputPointer;
51 typedef typename TInputImage::ConstPointer InputConstPointer;
52 typedef typename TInputImage::PixelType InputPixelType;
54 typedef typename TOutputImage::Pointer OutputPointer;
55 typedef typename TOutputImage::PixelType OutputPixelType;
56 typedef typename TOutputImage::RegionType OutputImageRegionType;
57 //-----------------------------------
59 //----------------------------------
60 void SetFirstInput (const InputPointer i);
61 void SetFirstInput ( const InputConstPointer i);
62 void SetSecondInput (const InputPointer i);
63 void SetSecondInput (const InputConstPointer i);
65 itkSetMacro(A, double);
66 itkGetMacro(A, double);
67 itkSetMacro(B, double);
68 itkGetMacro(B, double);
69 itkSetMacro(C, double);
70 itkGetMacro(C, double);
73 LinearCombinationImageFilter();
74 virtual ~LinearCombinationImageFilter(){};
76 virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId);
79 LinearCombinationImageFilter(const Self&); //purposely not implemented
80 void operator=(const Self&); //purposely not implemented
88 } // end namespace itk
90 #ifndef ITK_MANUAL_INSTANTIATION
91 #include "clitkLinearCombinationImageFilter.txx"