ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkContourMeanDistanceImageFilter.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 #ifndef __itkContourMeanDistanceImageFilter_h
19 #define __itkContourMeanDistanceImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkNumericTraits.h"
23 
24 namespace itk
25 {
68 template< typename TInputImage1, typename TInputImage2 >
70  public ImageToImageFilter< TInputImage1, TInputImage1 >
71 {
72 public:
78 
80  itkNewMacro(Self);
81 
84 
86  typedef TInputImage1 InputImage1Type;
87  typedef TInputImage2 InputImage2Type;
88  typedef typename TInputImage1::Pointer InputImage1Pointer;
89  typedef typename TInputImage2::Pointer InputImage2Pointer;
90  typedef typename TInputImage1::ConstPointer InputImage1ConstPointer;
91  typedef typename TInputImage2::ConstPointer InputImage2ConstPointer;
92 
93  typedef typename TInputImage1::RegionType RegionType;
94  typedef typename TInputImage1::SizeType SizeType;
95  typedef typename TInputImage1::IndexType IndexType;
96 
97  typedef typename TInputImage1::PixelType InputImage1PixelType;
98  typedef typename TInputImage2::PixelType InputImage2PixelType;
99 
101  itkStaticConstMacro(ImageDimension, unsigned int,
102  TInputImage1::ImageDimension);
103 
106 
108  void SetInput1(const InputImage1Type *image);
109 
111  void SetInput2(const InputImage2Type *image);
112 
114  const InputImage1Type * GetInput1(void);
115 
117  const InputImage2Type * GetInput2(void);
118 
120  itkGetConstMacro(MeanDistance, RealType);
121 
123  itkSetMacro( UseImageSpacing, bool );
124  itkGetConstMacro( UseImageSpacing, bool );
126 
127 #ifdef ITK_USE_CONCEPT_CHECKING
128  // Begin concept checking
129  itkConceptMacro( InputHasNumericTraitsCheck,
131  // End concept checking
132 #endif
133 
134 protected:
137  void PrintSelf(std::ostream & os, Indent indent) const;
138 
140  void GenerateData();
141 
142  // Override since the filter needs all the data for the algorithm
144 
145  // Override since the filter produces all of its output
147 
148 private:
149  ContourMeanDistanceImageFilter(const Self &); //purposely not implemented
150  void operator=(const Self &); //purposely not implemented
151 
154 }; // end of class
155 } // end namespace itk
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
158 #include "itkContourMeanDistanceImageFilter.hxx"
159 #endif
160 
161 #endif
Light weight base class for most itk classes.
const InputImage1Type * GetInput1(void)
Computes the Mean distance between the boundaries of non-zero regions of two images.
NumericTraits< InputImage1PixelType >::RealType RealType
void EnlargeOutputRequestedRegion(DataObject *data)
ImageToImageFilter< TInputImage1, TInputImage1 > Superclass
void SetInput2(const InputImage2Type *image)
void PrintSelf(std::ostream &os, Indent indent) const
const InputImage2Type * GetInput2(void)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
void SetInput1(const InputImage1Type *image)