ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkVectorNeighborhoodOperatorImageFilter.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 itkVectorNeighborhoodOperatorImageFilter_h
19 #define itkVectorNeighborhoodOperatorImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 #include "itkImage.h"
25 
26 namespace itk
27 {
57 template< typename TInputImage, typename TOutputImage >
59  public ImageToImageFilter< TInputImage, TOutputImage >
60 {
61 public:
67 
69  itkNewMacro(Self);
70 
73 
76  typedef typename TInputImage::Pointer InputImagePointer;
77  typedef typename TOutputImage::Pointer OutputImagePointer;
78  typedef typename TOutputImage::PixelType OutputPixelType;
79  typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
80  typedef typename TInputImage::PixelType InputPixelType;
81  typedef typename TInputImage::InternalPixelType InputInternalPixelType;
82  typedef typename OutputPixelType::ValueType ScalarValueType;
83 
85  itkStaticConstMacro(ImageDimension, unsigned int,
86  TOutputImage::ImageDimension);
87 
89  typedef TInputImage InputImageType;
90  typedef TOutputImage OutputImageType;
91 
94 
97 
102  itkGetStaticConstMacro(ImageDimension) > & p)
103  {
104  m_Operator = p;
105  this->Modified();
106  }
108 
115  { m_BoundsCondition = i; }
116 
124  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
125 
126 #ifdef ITK_USE_CONCEPT_CHECKING
127  // Begin concept checking
128  itkConceptMacro( InputHasNumericTraitsCheck,
130  itkConceptMacro( OutputHasNumericTraitsCheck,
132  // End concept checking
133 #endif
134 
135 protected:
137  m_BoundsCondition(ITK_NULLPTR)
138  {}
139 
141 
152  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
153  ThreadIdType threadId) ITK_OVERRIDE;
154 
155  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE
156  { Superclass::PrintSelf(os, indent); }
157 
158 private:
159  VectorNeighborhoodOperatorImageFilter(const Self &) ITK_DELETE_FUNCTION;
160  void operator=(const Self &) ITK_DELETE_FUNCTION;
161 
164 
168 };
169 } // end namespace itk
170 
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkVectorNeighborhoodOperatorImageFilter.hxx"
173 #endif
174 
175 #endif
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void GenerateInputRequestedRegion() override
A light-weight container object for storing an N-dimensional neighborhood of values.
Base class for all process objects that output image data.
void OverrideBoundaryCondition(const ImageBoundaryConditionPointerType i)
void SetOperator(const Neighborhood< ScalarValueType, itkGetStaticConstMacro(ImageDimension) > &p)
ImageBoundaryCondition< OutputImageType > * ImageBoundaryConditionPointerType
virtual void Modified() const
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
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
Superclass::OutputImageRegionType OutputImageRegionType
Neighborhood< ScalarValueType, itkGetStaticConstMacro(ImageDimension) > m_Operator
#define itkConceptMacro(name, concept)
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override