ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkSumOfSquaresImageFilter.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 rtkSumOfSquaresImageFilter_h
20#define rtkSumOfSquaresImageFilter_h
21
23
33namespace rtk
34{
35
36template <class TOutputImage>
37class ITK_TEMPLATE_EXPORT SumOfSquaresImageFilter : public itk::InPlaceImageFilter<TOutputImage>
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(SumOfSquaresImageFilter);
41
47 using OutputPixelType = typename TOutputImage::PixelType;
48 using OutputImageRegionType = typename TOutputImage::RegionType;
49 using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
50
52 itkNewMacro(Self);
53
55 itkOverrideGetNameOfClassMacro(SumOfSquaresImageFilter);
56
58 itkGetMacro(SumOfSquares, OutputInternalPixelType);
59
60protected:
62 ~SumOfSquaresImageFilter() override = default;
63
64 void
66 void
67 ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId) override;
68 void
70
72 std::vector<OutputInternalPixelType> m_VectorOfPartialSSs;
73};
74
75} // end namespace rtk
76
77#ifndef ITK_MANUAL_INSTANTIATION
78# include "rtkSumOfSquaresImageFilter.hxx"
79#endif
80
81#endif
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
typename TOutputImage::RegionType OutputImageRegionType
itk::SmartPointer< const Self > ConstPointer
~SumOfSquaresImageFilter() override=default
itk::InPlaceImageFilter< TOutputImage > Superclass
std::vector< OutputInternalPixelType > m_VectorOfPartialSSs
typename TOutputImage::PixelType OutputPixelType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
typename TOutputImage::InternalPixelType OutputInternalPixelType
unsigned int ThreadIdType
Definition itkIntTypes.h:98