ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkNormalizedCorrelationImageFilter.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 itkNormalizedCorrelationImageFilter_h
19#define itkNormalizedCorrelationImageFilter_h
20
22
23namespace itk
24{
52template <typename TInputImage,
53 typename TMaskImage,
54 typename TOutputImage,
55 typename TOperatorValueType = typename TOutputImage::PixelType>
56class ITK_TEMPLATE_EXPORT NormalizedCorrelationImageFilter
57 : public NeighborhoodOperatorImageFilter<TInputImage, TOutputImage, TOperatorValueType>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(NormalizedCorrelationImageFilter);
61
65
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(NormalizedCorrelationImageFilter);
74
77 using OutputPixelType = typename TOutputImage::PixelType;
78 using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
79 using InputPixelType = typename TInputImage::PixelType;
80 using InputInternalPixelType = typename TInputImage::InternalPixelType;
81 using MaskPixelType = typename TMaskImage::PixelType;
82 using MaskInternalPixelType = typename TMaskImage::InternalPixelType;
83
86 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
87 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
88 static constexpr unsigned int MaskImageDimension = TMaskImage::ImageDimension;
89
91 using InputImageType = TInputImage;
92 using MaskImageType = TMaskImage;
93 using OutputImageType = TOutputImage;
94 using InputImagePointer = typename InputImageType::Pointer;
95 using MaskImagePointer = typename MaskImageType::Pointer;
96
99
102 using typename Superclass::OperatorValueType;
103
106
110 void
111 SetMaskImage(const TMaskImage * mask);
112
116 const TMaskImage *
118
122 void
124 {
125 this->SetOperator(t);
126 }
127
129 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
130 itkConceptMacro(OperatorHasNumericTraitsCheck, (Concept::HasNumericTraits<OperatorValueType>));
131 // This filter can only operate on data types that are signed.
132 itkConceptMacro(SignedOutputPixelType, (Concept::Signed<OutputPixelType>));
133
134protected:
137
143 void
145
157 void
158 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
159
161 void
162 PrintSelf(std::ostream & os, Indent indent) const override
163 {
164 Superclass::PrintSelf(os, indent);
165 }
166};
167} // end namespace itk
169
170#ifndef ITK_MANUAL_INSTANTIATION
171# include "itkNormalizedCorrelationImageFilter.hxx"
172#endif
173
174#endif
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
Control indentation during Print() invocation.
Definition itkIndent.h:50
const TMaskImage * GetMaskImage() const
void SetMaskImage(const TMaskImage *mask)
typename OutputImageType::RegionType OutputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
Neighborhood< OperatorValueType, Self::ImageDimension > OutputNeighborhoodType
ImageBoundaryCondition< OutputImageType > * ImageBoundaryConditionPointerType
typename TMaskImage::InternalPixelType MaskInternalPixelType
typename TInputImage::InternalPixelType InputInternalPixelType
typename TOutputImage::InternalPixelType OutputInternalPixelType
~NormalizedCorrelationImageFilter() override=default
NeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType > Superclass
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....