Orfeo Toolbox  4.0
itkImageToImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 /*=========================================================================
19  *
20  * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21  *
22  * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23  *
24  * For complete copyright, license and disclaimer of warranty information
25  * please refer to the NOTICE file at the top of the ITK source tree.
26  *
27  *=========================================================================*/
28 #ifndef __itkImageToImageFilter_h
29 #define __itkImageToImageFilter_h
30 
31 #include "itkImageSource.h"
32 #include "itkConceptChecking.h"
34 
35 namespace itk
36 {
101 template< typename TInputImage, typename TOutputImage >
102 class ImageToImageFilter:public ImageSource< TOutputImage >
103 {
104 public:
110 
113 
117 
119  typedef TInputImage InputImageType;
120  typedef typename InputImageType::Pointer InputImagePointer;
121  typedef typename InputImageType::ConstPointer InputImageConstPointer;
122  typedef typename InputImageType::RegionType InputImageRegionType;
123  typedef typename InputImageType::PixelType InputImagePixelType;
124 
126  itkStaticConstMacro(InputImageDimension, unsigned int,
127  TInputImage::ImageDimension);
128  itkStaticConstMacro(OutputImageDimension, unsigned int,
129  TOutputImage::ImageDimension);
130 
132  using Superclass::SetInput;
133  virtual void SetInput(const InputImageType *image);
134 
135  virtual void SetInput(unsigned int, const TInputImage *image);
136 
137  const InputImageType * GetInput(void) const;
138 
139  const InputImageType * GetInput(unsigned int idx) const;
140 
160  virtual void PushBackInput(const InputImageType *image);
161 
162  virtual void PopBackInput();
163 
164  virtual void PushFrontInput(const InputImageType *image);
165 
166  virtual void PopFrontInput();
167 
173  itkSetMacro(CoordinateTolerance,double);
174  itkGetConstMacro(CoordinateTolerance,double);
175 
181  itkSetMacro(DirectionTolerance,double);
182  itkGetConstMacro(DirectionTolerance,double);
183 
184 protected:
187 
188  virtual void PrintSelf(std::ostream & os, Indent indent) const;
189 
209  virtual void VerifyInputInformation();
210 
235  virtual void GenerateInputRequestedRegion();
236 
239  typedef ImageToImageFilterDetail::ImageRegionCopier< itkGetStaticConstMacro(OutputImageDimension),
240  itkGetStaticConstMacro(InputImageDimension) >
242 
245  typedef ImageToImageFilterDetail::ImageRegionCopier< itkGetStaticConstMacro(InputImageDimension),
246  itkGetStaticConstMacro(OutputImageDimension) >
248 
285  const OutputImageRegionType & srcRegion);
286 
318  const InputImageRegionType & srcRegion);
319 
328  void PushBackInput(const DataObject *input)
329  { Superclass::PushBackInput(input); }
330  void PushFrontInput(const DataObject *input)
331  { Superclass::PushFrontInput(input); }
332 
333 private:
334  ImageToImageFilter(const Self &); //purposely not implemented
335  void operator=(const Self &); //purposely not implemented
342 };
343 } // end namespace itk
344 
345 #ifndef ITK_MANUAL_INSTANTIATION
346 #include "itkImageToImageFilter.hxx"
347 #endif
348 
349 #endif

Generated at Sat Mar 8 2014 14:54:45 for Orfeo Toolbox with doxygen 1.8.3.1