SimpleITK  2.0.0rc2.post23
sitkLabelOverlapMeasuresImageFilter.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 * 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 sitkLabelOverlapMeasuresImageFilter_h
19 #define sitkLabelOverlapMeasuresImageFilter_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
48  public:
50 
53 
57 
60 
67  double GetFalseNegativeError() const { return this->m_FalseNegativeError; };
68 
76  double GetFalseNegativeError(int64_t label) const { return this->m_pfGetFalseNegativeError(label); };
77 
84  double GetFalsePositiveError() const { return this->m_FalsePositiveError; };
85 
93  double GetFalsePositiveError(int64_t label) const { return this->m_pfGetFalsePositiveError(label); };
94 
101  double GetMeanOverlap() const { return this->m_MeanOverlap; };
102 
110  double GetMeanOverlap(int64_t label) const { return this->m_pfGetMeanOverlap(label); };
111 
118  double GetUnionOverlap() const { return this->m_UnionOverlap; };
119 
127  double GetUnionOverlap(int64_t label) const { return this->m_pfGetUnionOverlap(label); };
128 
135  double GetVolumeSimilarity() const { return this->m_VolumeSimilarity; };
136 
144  double GetVolumeSimilarity(int64_t label) const { return this->m_pfGetVolumeSimilarity(label); };
145 
152  double GetJaccardCoefficient() const { return this->m_JaccardCoefficient; };
153 
161  double GetJaccardCoefficient(int64_t label) const { return this->m_pfGetJaccardCoefficient(label); };
162 
169  double GetDiceCoefficient() const { return this->m_DiceCoefficient; };
170 
178  double GetDiceCoefficient(int64_t label) const { return this->m_pfGetDiceCoefficient(label); };
179 
180 
182  std::string GetName() const { return std::string ("LabelOverlapMeasuresImageFilter"); }
183 
185  std::string ToString() const;
186 
187 
190  void Execute ( const Image& image1, const Image& image2 );
191 
192  private:
193 
196  using MemberFunctionType = void (Self::*)( const Image& image1, const Image& image2 );
197  template <class TImageType> void ExecuteInternal ( const Image& image1, const Image& image2 );
198 
199 
201 
202  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
203 
204 
205 
206  double m_FalseNegativeError{0.0};
207 
208  std::function<double(int64_t)> m_pfGetFalseNegativeError;
209 
210  double m_FalsePositiveError{0.0};
211 
212  std::function<double(int64_t)> m_pfGetFalsePositiveError;
213 
214  double m_MeanOverlap{0.0};
215 
216  std::function<double(int64_t)> m_pfGetMeanOverlap;
217 
218  double m_UnionOverlap{0.0};
219 
220  std::function<double(int64_t)> m_pfGetUnionOverlap;
221 
222  double m_VolumeSimilarity{0.0};
223 
224  std::function<double(int64_t)> m_pfGetVolumeSimilarity;
225 
226  double m_JaccardCoefficient{0.0};
227 
228  std::function<double(int64_t)> m_pfGetJaccardCoefficient;
229 
230  double m_DiceCoefficient{0.0};
231 
232  std::function<double(int64_t)> m_pfGetDiceCoefficient;
233 
234  // Holder of process object for active measurements
235  itk::ProcessObject *m_Filter{nullptr};
236 
237  };
238 
239 
240  }
241 }
242 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::LabelOverlapMeasuresImageFilter
Computes overlap measures between the set same set of labels of pixels of two images....
Definition: sitkLabelOverlapMeasuresImageFilter.h:47
itk::simple::LabelOverlapMeasuresImageFilter::GetFalseNegativeError
double GetFalseNegativeError() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:67
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::LabelOverlapMeasuresImageFilter::GetJaccardCoefficient
double GetJaccardCoefficient() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:152
itk::simple::LabelOverlapMeasuresImageFilter::GetMeanOverlap
double GetMeanOverlap(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:110
itk::simple::LabelOverlapMeasuresImageFilter::GetFalsePositiveError
double GetFalsePositiveError(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:93
itk::simple::LabelOverlapMeasuresImageFilter::GetVolumeSimilarity
double GetVolumeSimilarity() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:135
itk::simple::LabelOverlapMeasuresImageFilter::MemberFunctionType
void(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Definition: sitkLabelOverlapMeasuresImageFilter.h:196
sitkImageFilter.h
itk::simple::LabelOverlapMeasuresImageFilter::GetFalsePositiveError
double GetFalsePositiveError() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:84
itk::int64_t
::int64_t int64_t
itk::simple::LabelOverlapMeasuresImageFilter::GetJaccardCoefficient
double GetJaccardCoefficient(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:161
itk::simple::LabelOverlapMeasuresImageFilter::GetVolumeSimilarity
double GetVolumeSimilarity(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:144
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetUnionOverlap
std::function< double(int64_t)> m_pfGetUnionOverlap
Definition: sitkLabelOverlapMeasuresImageFilter.h:220
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetMeanOverlap
std::function< double(int64_t)> m_pfGetMeanOverlap
Definition: sitkLabelOverlapMeasuresImageFilter.h:216
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetFalseNegativeError
std::function< double(int64_t)> m_pfGetFalseNegativeError
Definition: sitkLabelOverlapMeasuresImageFilter.h:208
itk::simple::LabelOverlapMeasuresImageFilter::GetDiceCoefficient
double GetDiceCoefficient(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:178
itk::simple::LabelOverlapMeasuresImageFilter::PixelIDTypeList
IntegerPixelIDTypeList PixelIDTypeList
Definition: sitkLabelOverlapMeasuresImageFilter.h:59
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::LabelOverlapMeasuresImageFilter::GetUnionOverlap
double GetUnionOverlap(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:127
itk::simple::LabelOverlapMeasuresImageFilter::GetFalseNegativeError
double GetFalseNegativeError(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:76
itk::simple::LabelOverlapMeasuresImageFilter::GetUnionOverlap
double GetUnionOverlap() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:118
itk
itk::simple::LabelOverlapMeasuresImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkLabelOverlapMeasuresImageFilter.h:202
itk::simple::LabelOverlapMeasuresImageFilter::GetDiceCoefficient
double GetDiceCoefficient() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:169
itk::ProcessObject
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetVolumeSimilarity
std::function< double(int64_t)> m_pfGetVolumeSimilarity
Definition: sitkLabelOverlapMeasuresImageFilter.h:224
itk::simple::LabelOverlapMeasuresImageFilter::GetName
std::string GetName() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:182
itk::simple::LabelOverlapMeasuresImageFilter::GetMeanOverlap
double GetMeanOverlap() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:101
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetFalsePositiveError
std::function< double(int64_t)> m_pfGetFalsePositiveError
Definition: sitkLabelOverlapMeasuresImageFilter.h:212
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetDiceCoefficient
std::function< double(int64_t)> m_pfGetDiceCoefficient
Definition: sitkLabelOverlapMeasuresImageFilter.h:232
itk::simple::IntegerPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:76
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetJaccardCoefficient
std::function< double(int64_t)> m_pfGetJaccardCoefficient
Definition: sitkLabelOverlapMeasuresImageFilter.h:228