ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpectra1DNormalizeImageFilter.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 itkSpectra1DNormalizeImageFilter_h
19#define itkSpectra1DNormalizeImageFilter_h
20
23
24namespace itk
25{
33template <typename TInputImage, typename TReferenceImage>
34class ITK_TEMPLATE_EXPORT Spectra1DNormalizeImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
35{
36public:
37 ITK_DISALLOW_COPY_AND_MOVE(Spectra1DNormalizeImageFilter);
38
40 using InputImageType = TInputImage;
41 using OutputImageType = TInputImage;
42 using OutputImageRegionType = typename OutputImageType::RegionType;
43 using ReferenceImageType = TReferenceImage;
44
45 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
46
51
52 itkOverrideGetNameOfClassMacro(Spectra1DNormalizeImageFilter);
53 itkNewMacro(Self);
54
55 void
57 {
58 this->SetInput("ReferenceImage", referenceImage);
59 }
60
61protected:
62 Spectra1DNormalizeImageFilter() { this->AddRequiredInputName("ReferenceImage", 1); }
63 ~Spectra1DNormalizeImageFilter() override = default;
64
65 void
67
68 void
69 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
70};
71} // namespace itk
72
73#ifndef ITK_MANUAL_INSTANTIATION
74# include "itkSpectra1DNormalizeImageFilter.hxx"
75#endif
76
77#endif // itkSpectra1DNormalizeImageFilter_h
virtual void SetInput(const InputImageType *input)
bool AddRequiredInputName(const DataObjectIdentifierType &)
Define a required named input and optionally associate it with a numbered index.
Implements transparent reference counting.
void SetReferenceImage(ReferenceImageType *referenceImage)
void GenerateInputRequestedRegion() override
~Spectra1DNormalizeImageFilter() override=default
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
typename OutputImageType::RegionType OutputImageRegionType
ImageToImageFilter< InputImageType, OutputImageType > Superclass
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....