ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPhaseAnalysisSoftThresholdImageFilter.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 itkPhaseAnalysisSoftThresholdImageFilter_h
19#define itkPhaseAnalysisSoftThresholdImageFilter_h
20
22namespace itk
23{
41template <typename TInputImage,
43class PhaseAnalysisSoftThresholdImageFilter : public PhaseAnalysisImageFilter<TInputImage, TOutputImage>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(PhaseAnalysisSoftThresholdImageFilter);
47
53
55 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(PhaseAnalysisSoftThresholdImageFilter);
62
66
67 using InputImagePointer = typename InputImageType::Pointer;
68 using InputImageConstPointer = typename InputImageType::ConstPointer;
69 using InputImageRegionType = typename InputImageType::RegionType;
70 using InputImagePixelType = typename InputImageType::PixelType;
71 using SpacingType = typename InputImageType::SpacingType;
72 using SizeType = typename InputImageRegionType::SizeType;
73
75 using FloatType = typename InputImageType::SpacingValueType;
76
77 using OutputImagePointer = typename OutputImageType::Pointer;
78 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
79 using OutputImageRegionType = typename OutputImageType::RegionType;
80 using OutputImagePixelType = typename OutputImageType::PixelType;
81
83
84 itkSetMacro(ApplySoftThreshold, bool);
85 itkGetConstMacro(ApplySoftThreshold, bool);
86 itkBooleanMacro(ApplySoftThreshold);
87
89 itkGetConstMacro(NumOfSigmas, OutputImagePixelType);
90 itkGetConstMacro(MeanAmp, OutputImagePixelType);
91 itkGetConstMacro(SigmaAmp, OutputImagePixelType);
92 itkGetConstMacro(Threshold, OutputImagePixelType);
93
99
100protected:
103 void
104 PrintSelf(std::ostream & os, Indent indent) const override;
105
106 void
107 GenerateData() override;
108 void
110
111private:
117};
118} // end namespace itk
119#ifndef ITK_MANUAL_INSTANTIATION
120# include "itkPhaseAnalysisSoftThresholdImageFilter.hxx"
121#endif
122
123#endif
OutputImageType * GetOutput()
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:53
typename itk::ImageScanlineIterator< OutputImageType > OutputImageRegionIterator
typename Superclass::OutputImageRegionIterator OutputImageRegionIterator
~PhaseAnalysisSoftThresholdImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
PhaseAnalysisImageFilter< TInputImage, TOutputImage > Superclass
void ThreadedComputeCosineOfPhase(const OutputImageRegionType &outputRegionForThread)
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TTarget itkDynamicCastInDebugMode(TSource x)
#define itkSetMacro(name, type)