ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBlockMatchingMultiResolutionMinMaxSearchRegionImageSource.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 itkBlockMatchingMultiResolutionMinMaxSearchRegionImageSource_h
19#define itkBlockMatchingMultiResolutionMinMaxSearchRegionImageSource_h
20
22
23namespace itk
24{
25namespace BlockMatching
26{
27
40template <typename TFixedImage, typename TMovingImage, typename TDisplacementImage>
42 : public MultiResolutionSearchRegionImageSource<TFixedImage, TMovingImage, TDisplacementImage>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(MultiResolutionMinMaxSearchRegionImageSource);
46
52
54 itkOverrideGetNameOfClassMacro(MultiResolutionMinMaxSearchRegionImageSource);
55
57 itkNewMacro(Self);
58
60 static constexpr unsigned int ImageDimension = TMovingImage::ImageDimension;
61
65
68
72
76
79
82
85
88 void
89 SetMinFactor(const FactorType & factor)
90 {
91 m_MinFactor = factor;
92 this->Modified();
93 }
94 void
95 SetMinFactor(const double & factor)
96 {
97 FactorType f;
98 f.Fill(factor);
99 this->SetMinFactor(f);
100 }
101 itkGetConstReferenceMacro(MinFactor, FactorType);
102
105 void
106 SetMaxFactor(const FactorType & factor)
107 {
108 m_MaxFactor = factor;
109 this->Modified();
110 }
111 void
112 SetMaxFactor(const double & factor)
113 {
114 FactorType f;
115 f.Fill(factor);
116 this->SetMaxFactor(f);
117 }
118 itkGetConstReferenceMacro(MaxFactor, FactorType);
119
120protected:
125
126 void
127 DynamicThreadedGenerateData(const OutputRegionType & outputRegion) override;
128
131
132private:
133};
134
135} // end namespace BlockMatching
136} // end namespace itk
137
138#ifndef ITK_MANUAL_INSTANTIATION
139# include "itkBlockMatchingMultiResolutionMinMaxSearchRegionImageSource.hxx"
140#endif
141
142#endif
void DynamicThreadedGenerateData(const OutputRegionType &outputRegion) override
Simulate a standard C array with copy semantics.
void Fill(const ValueType &)
virtual void Modified() const
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....