ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkMaskedImageToHistogramFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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  * http://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"
23 #include "itkBarrier.h"
25 
26 namespace itk
27 {
28 namespace Statistics
29 {
41 template< typename TImage, typename TMaskImage >
43 {
44 public:
50 
53 
55  itkNewMacro(Self);
56 
57  typedef TImage ImageType;
58  typedef typename ImageType::PixelType PixelType;
59  typedef typename ImageType::RegionType RegionType;
62 
69 
70  typedef TMaskImage MaskImageType;
71  typedef typename MaskImageType::PixelType MaskPixelType;
72 
74  itkSetInputMacro(MaskImage, MaskImageType);
75  itkGetInputMacro(MaskImage, MaskImageType);
77 
81  itkSetGetDecoratedInputMacro(MaskValue, MaskPixelType);
82 
83 protected:
86 
87  virtual void ThreadedComputeMinimumAndMaximum( const RegionType & inputRegionForThread, ThreadIdType threadId, ProgressReporter & progress ) ITK_OVERRIDE;
88  virtual void ThreadedComputeHistogram( const RegionType & inputRegionForThread, ThreadIdType threadId, ProgressReporter & progress ) ITK_OVERRIDE;
89 
90 private:
91  MaskedImageToHistogramFilter(const Self &) ITK_DELETE_FUNCTION;
92  void operator=(const Self &) ITK_DELETE_FUNCTION;
93 
94 };
95 } // end of namespace Statistics
96 } // end of namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkMaskedImageToHistogramFilter.hxx"
100 #endif
101 
102 #endif
Light weight base class for most itk classes.
This class stores measurement vectors in the context of n-dimensional histogram.
Definition: itkHistogram.h:77
This class generates an histogram from an image.
HistogramType::MeasurementVectorType HistogramMeasurementVectorType
This class generates an histogram from an image.
virtual void ThreadedComputeHistogram(const RegionType &inputRegionForThread, ThreadIdType threadId, ProgressReporter &progress) override
Superclass::MeasurementVectorType MeasurementVectorType
Definition: itkHistogram.h:101
virtual void ThreadedComputeMinimumAndMaximum(const RegionType &inputRegionForThread, ThreadIdType threadId, ProgressReporter &progress) override
TMeasurement MeasurementType
Definition: itkHistogram.h:95
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Implements progress tracking for a filter.
Define additional traits for native types such as int or float.