ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkSobelEdgeDetectionImageFilter.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 __itkSobelEdgeDetectionImageFilter_h
19 #define __itkSobelEdgeDetectionImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkImage.h"
23 
24 namespace itk
25 {
49 template< class TInputImage, class TOutputImage >
51  public ImageToImageFilter< TInputImage, TOutputImage >
52 {
53 public:
59 
64  typedef typename TOutputImage::PixelType OutputPixelType;
65  typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
66  typedef typename TInputImage::PixelType InputPixelType;
67  typedef typename TInputImage::InternalPixelType InputInternalPixelType;
68  itkStaticConstMacro(ImageDimension, unsigned int,
69  TOutputImage::ImageDimension);
70  itkStaticConstMacro(InputImageDimension, unsigned int,
71  TInputImage::ImageDimension);
73 
77  typedef TInputImage InputImageType;
78  typedef TOutputImage OutputImageType;
79  typedef typename InputImageType::Pointer InputImagePointer;
80 
86 
91 
95  itkNewMacro(Self);
96 
106  virtual void GenerateInputRequestedRegion()
108 
109 #ifdef ITK_USE_CONCEPT_CHECKING
110 
111  itkConceptMacro( SameDimensionCheck,
113  itkConceptMacro( OutputHasNumericTraitsCheck,
116 
117 #ifdef ITK_USE_STRICT_CONCEPT_CHECKING
118  itkConceptMacro( OutputPixelIsFloatingPointCheck,
120 #endif
121 
123 #endif
124 protected:
128 
136  void GenerateData();
137 
138  void PrintSelf(std::ostream & os, Indent indent) const
139  {
140  Superclass::PrintSelf(os, indent);
141  }
142 private:
143  SobelEdgeDetectionImageFilter(const Self &); //purposely not implemented
144  void operator=(const Self&); //purposely not implemented
145 
146 };
147 } // end namespace itk
148 
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkSobelEdgeDetectionImageFilter.hxx"
151 #endif
152 
153 #endif
154