ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkExtractPhaseImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK 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 * 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
19#ifndef rtkExtractPhaseImageFilter_h
20#define rtkExtractPhaseImageFilter_h
21
23
24namespace rtk
25{
45
46template <class TImage>
47class ITK_TEMPLATE_EXPORT ExtractPhaseImageFilter : public itk::InPlaceImageFilter<TImage>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(ExtractPhaseImageFilter);
51
57
59 using KernelSizeType = typename TImage::SizeType::SizeValueType;
60 using PositionsListType = std::vector<int>;
61 using ModelType = enum { LOCAL_PHASE = 0, LINEAR_BETWEEN_MINIMA, LINEAR_BETWEEN_MAXIMA };
62
64 itkNewMacro(Self);
65
67 itkOverrideGetNameOfClassMacro(ExtractPhaseImageFilter);
68
71 itkSetMacro(MovingAverageSize, KernelSizeType);
72 itkGetMacro(MovingAverageSize, KernelSizeType);
73
78 itkSetMacro(UnsharpMaskSize, KernelSizeType);
79 itkGetMacro(UnsharpMaskSize, KernelSizeType);
80
83 itkGetMacro(MinimaPositions, PositionsListType);
84 itkGetMacro(MaximaPositions, PositionsListType);
85
94 itkGetMacro(Model, ModelType);
95
96protected:
98 ~ExtractPhaseImageFilter() override = default;
99
100 void
101 GenerateData() override;
102
103private:
104 void
106
112}; // end of class
113
114} // end of namespace rtk
115
116#ifndef ITK_MANUAL_INSTANTIATION
117# include "rtkExtractPhaseImageFilter.hxx"
118#endif
119
120#endif
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
void ComputeLinearPhaseBetweenPositions(const PositionsListType &positions)
~ExtractPhaseImageFilter() override=default
enum { LOCAL_PHASE=0, LINEAR_BETWEEN_MINIMA, LINEAR_BETWEEN_MAXIMA } ModelType
itk::SmartPointer< const Self > ConstPointer
typename TImage::SizeType::SizeValueType KernelSizeType
void GenerateData() override
itk::InPlaceImageFilter< TImage > Superclass
#define itkSetMacro(name, type)