ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMaskedImageToHistogramFilter.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 itkMaskedImageToHistogramFilter_h
19#define itkMaskedImageToHistogramFilter_h
20
21#include "itkHistogram.h"
24
25namespace itk::Statistics
26{
42
43template <typename TImage, typename TMaskImage>
44class ITK_TEMPLATE_EXPORT MaskedImageToHistogramFilter : public ImageToHistogramFilter<TImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(MaskedImageToHistogramFilter);
48
54
56 itkOverrideGetNameOfClassMacro(MaskedImageToHistogramFilter);
57
59 itkNewMacro(Self);
60
61 using ImageType = TImage;
62 using PixelType = typename ImageType::PixelType;
63 using RegionType = typename ImageType::RegionType;
66
73
74 using MaskImageType = TMaskImage;
75 using MaskPixelType = typename MaskImageType::PixelType;
76
85 itkSetGetDecoratedInputMacro(MaskValue, MaskPixelType);
86
87protected:
89 ~MaskedImageToHistogramFilter() override = default;
90
91 void
92 ThreadedStreamedGenerateData(const RegionType & inputRegionForThread) override;
93 void
94 ThreadedComputeMinimumAndMaximum(const RegionType & inputRegionForThread) override;
95};
96} // namespace itk::Statistics
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkMaskedImageToHistogramFilter.hxx"
100#endif
101
102#endif
Implements transparent reference counting.
This class stores measurement vectors in the context of n-dimensional histogram.
SmartPointer< const Self > ConstPointer
void ThreadedComputeMinimumAndMaximum(const RegionType &inputRegionForThread) override
typename HistogramType::MeasurementType HistogramMeasurementType
typename HistogramType::MeasurementVectorType HistogramMeasurementVectorType
void ThreadedStreamedGenerateData(const RegionType &inputRegionForThread) override
typename NumericTraits< ValueType >::RealType ValueRealType
typename NumericTraits< PixelType >::ValueType ValueType
itkGetInputMacro(MaskImage, MaskImageType)
itkSetInputMacro(MaskImage, MaskImageType)