ITK  5.4.0
Insight Toolkit
itkVectorNeighborhoodOperatorImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
23#include "itkImage.h"
25
26namespace itk
27{
57template <typename TInputImage, typename TOutputImage>
58class ITK_TEMPLATE_EXPORT VectorNeighborhoodOperatorImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
59{
60public:
61 ITK_DISALLOW_COPY_AND_MOVE(VectorNeighborhoodOperatorImageFilter);
62
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(VectorNeighborhoodOperatorImageFilter);
74
79 using OutputPixelType = typename TOutputImage::PixelType;
80 using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
81 using InputPixelType = typename TInputImage::PixelType;
82 using InputInternalPixelType = typename TInputImage::InternalPixelType;
83 using ScalarValueType = typename OutputPixelType::ValueType;
84
86 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
87
89 using InputImageType = TInputImage;
90 using OutputImageType = TOutputImage;
91
94
96 using typename Superclass::OutputImageRegionType;
97
101 void
103 {
104 m_Operator = p;
105 this->Modified();
106 }
114 void
116 {
117 m_BoundsCondition = i;
118 }
119
127 void
129
130#ifdef ITK_USE_CONCEPT_CHECKING
131 // Begin concept checking
133 itkConceptMacro(OutputHasNumericTraitsCheck,
135 // End concept checking
136#endif
137
138protected:
140 : m_BoundsCondition(nullptr)
141 {
142 this->DynamicMultiThreadingOn();
143 this->ThreaderUpdateProgressOff();
144 }
145
147
158 void
159 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
160
161
162 void
163 PrintSelf(std::ostream & os, Indent indent) const override
164 {
165 Superclass::PrintSelf(os, indent);
166 }
167
168private:
171
175};
176} // end namespace itk
177
178#ifndef ITK_MANUAL_INSTANTIATION
179# include "itkVectorNeighborhoodOperatorImageFilter.hxx"
180#endif
181
182#endif
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Applies a single scalar NeighborhoodOperator to an itk::Vector image region.
typename TInputImage::InternalPixelType InputInternalPixelType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void PrintSelf(std::ostream &os, Indent indent) const override
typename TOutputImage::InternalPixelType OutputInternalPixelType
~VectorNeighborhoodOperatorImageFilter() override=default
void SetOperator(const Neighborhood< ScalarValueType, Self::ImageDimension > &p)
void OverrideBoundaryCondition(const ImageBoundaryConditionPointerType i)
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....