ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkScalarChanAndVeseDenseLevelSetImageFilter.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 itkScalarChanAndVeseDenseLevelSetImageFilter_h
19#define itkScalarChanAndVeseDenseLevelSetImageFilter_h
20
24
25namespace itk
26{
51template <typename TInputImage,
52 typename TFeatureImage,
53 typename TOutputImage,
55 class TSharedData = typename TFunction::SharedDataType>
57 : public MultiphaseDenseFiniteDifferenceImageFilter<TInputImage, TFeatureImage, TOutputImage, TFunction>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(ScalarChanAndVeseDenseLevelSetImageFilter);
61
66
68 itkNewMacro(Self);
69
71 itkOverrideGetNameOfClassMacro(ScalarChanAndVeseDenseLevelSetImageFilter);
72
73 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
74
76 using typename Superclass::InputImageType;
77 using typename Superclass::InputImagePointer;
78 using typename Superclass::InputPointType;
79 using typename Superclass::ValueType;
80 using InputSpacingType = typename InputImageType::SpacingType;
81
82 using FeatureImageType = TFeatureImage;
83 using FeatureImagePointer = typename FeatureImageType::Pointer;
84 using FeaturePixelType = typename FeatureImageType::PixelType;
85 using FeatureIndexType = typename FeatureImageType::IndexType;
86 using FeatureIndexValueType = typename FeatureIndexType::IndexValueType;
87 using FeatureRegionType = typename FeatureImageType::RegionType;
88
90 using OutputImageType = TOutputImage;
91 using IndexType = typename OutputImageType::IndexType;
92 using OutputPixelType = typename OutputImageType::PixelType;
93
94 using typename Superclass::TimeStepType;
96
97 using FunctionType = TFunction;
98 using FunctionPointer = typename FunctionType::Pointer;
99
100 using SharedDataType = TSharedData;
101 using SharedDataPointer = typename SharedDataType::Pointer;
102
105
106 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
107
110 virtual void
112 {
113 this->SetInput(f);
114 }
115
116protected:
117 ScalarChanAndVeseDenseLevelSetImageFilter() { this->m_SharedData = SharedDataType::New(); }
118
120
122
123 void
124 Initialize() override;
125
126 void
128};
129} // end namespace itk
130
131#ifndef ITK_MANUAL_INSTANTIATION
132# include "itkScalarChanAndVeseDenseLevelSetImageFilter.hxx"
133#endif
134
135#endif
virtual void SetInput(const InputImageType *input)
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
Extract a region of interest from the input image.
RegionOfInterestImageFilter< FeatureImageType, FeatureImageType > ROIFilterType
MultiphaseDenseFiniteDifferenceImageFilter< TInputImage, TFeatureImage, TOutputImage, TFunction > Superclass
~ScalarChanAndVeseDenseLevelSetImageFilter() override=default
LevelSet function that computes a speed image based on regional integrals of probabilities.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....