ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpectra1DSupportWindowToMaskImageFilter.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 itkSpectra1DSupportWindowToMaskImageFilter_h
19#define itkSpectra1DSupportWindowToMaskImageFilter_h
20
22
23namespace itk
24{
25
31template <typename TInputImage, typename TOutputImage>
32class ITK_TEMPLATE_EXPORT Spectra1DSupportWindowToMaskImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
33{
34public:
35 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
36
37 using InputImageType = TInputImage;
38 using OutputImageType = TOutputImage;
39
40 using IndexType = typename InputImageType::IndexType;
41 using OutputPixelType = typename OutputImageType::PixelType;
42
48
49 itkOverrideGetNameOfClassMacro(Spectra1DSupportWindowToMaskImageFilter);
50 itkNewMacro(Self);
51
53 itkGetConstReferenceMacro(MaskIndex, IndexType);
55
57 itkSetMacro(BackgroundValue, OutputPixelType);
58 itkGetConstMacro(BackgroundValue, OutputPixelType);
59
62 itkSetMacro(ForegroundValue, OutputPixelType);
63 itkGetConstMacro(ForegroundValue, OutputPixelType);
64
65
66protected:
69
70 virtual void
71 GenerateData() override;
72
73private:
74 Spectra1DSupportWindowToMaskImageFilter(const Self &); // purposely not implemented
75 void
76 operator=(const Self &); // purposely not implemented
77
79
82};
83
84} // end namespace itk
85
86#ifndef ITK_MANUAL_INSTANTIATION
87# include "itkSpectra1DSupportWindowToMaskImageFilter.hxx"
88#endif
89
90#endif // itkSpectra1DSupportWindowToMaskImageFilter_h
Implements transparent reference counting.
~Spectra1DSupportWindowToMaskImageFilter() override=default
ImageToImageFilter< InputImageType, OutputImageType > Superclass
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)