SimpleITK  
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::simple {
33 
47  public:
49 
52 
56 
59 
66  double GetFalseNegativeError() const { return this->m_FalseNegativeError; };
67 
75  double GetFalseNegativeError(int64_t label) const { return this->m_pfGetFalseNegativeError(label); };
76 
83  double GetFalsePositiveError() const { return this->m_FalsePositiveError; };
84 
92  double GetFalsePositiveError(int64_t label) const { return this->m_pfGetFalsePositiveError(label); };
93 
100  double GetMeanOverlap() const { return this->m_MeanOverlap; };
101 
109  double GetMeanOverlap(int64_t label) const { return this->m_pfGetMeanOverlap(label); };
110 
117  double GetUnionOverlap() const { return this->m_UnionOverlap; };
118 
126  double GetUnionOverlap(int64_t label) const { return this->m_pfGetUnionOverlap(label); };
127 
134  double GetVolumeSimilarity() const { return this->m_VolumeSimilarity; };
135 
143  double GetVolumeSimilarity(int64_t label) const { return this->m_pfGetVolumeSimilarity(label); };
144 
151  double GetJaccardCoefficient() const { return this->m_JaccardCoefficient; };
152 
160  double GetJaccardCoefficient(int64_t label) const { return this->m_pfGetJaccardCoefficient(label); };
161 
168  double GetDiceCoefficient() const { return this->m_DiceCoefficient; };
169 
177  double GetDiceCoefficient(int64_t label) const { return this->m_pfGetDiceCoefficient(label); };
178 
185  double GetFalseDiscoveryRate() const { return this->m_FalseDiscoveryRate; };
186 
194  double GetFalseDiscoveryRate(int64_t label) const { return this->m_pfGetFalseDiscoveryRate(label); };
195 
196 
198  std::string GetName() const { return std::string ("LabelOverlapMeasuresImageFilter"); }
199 
201  std::string ToString() const;
202 
203 
206  void Execute ( const Image & sourceImage, const Image & targetImage );
207 
208  private:
209 
212  using MemberFunctionType = void (Self::*)( const Image * sourceImage, const Image * targetImage );
213  template <class TImageType> void ExecuteInternal ( const Image * sourceImage, const Image * targetImage );
214 
215 
217 
218  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
219 
220 
221 
222  double m_FalseNegativeError{0.0};
223 
224  std::function<double(int64_t)> m_pfGetFalseNegativeError;
225 
226  double m_FalsePositiveError{0.0};
227 
228  std::function<double(int64_t)> m_pfGetFalsePositiveError;
229 
230  double m_MeanOverlap{0.0};
231 
232  std::function<double(int64_t)> m_pfGetMeanOverlap;
233 
234  double m_UnionOverlap{0.0};
235 
236  std::function<double(int64_t)> m_pfGetUnionOverlap;
237 
238  double m_VolumeSimilarity{0.0};
239 
240  std::function<double(int64_t)> m_pfGetVolumeSimilarity;
241 
242  double m_JaccardCoefficient{0.0};
243 
244  std::function<double(int64_t)> m_pfGetJaccardCoefficient;
245 
246  double m_DiceCoefficient{0.0};
247 
248  std::function<double(int64_t)> m_pfGetDiceCoefficient;
249 
250  double m_FalseDiscoveryRate{0.0};
251 
252  std::function<double(int64_t)> m_pfGetFalseDiscoveryRate;
253 
254  // Holder of process object for active measurements
255  itk::ProcessObject *m_Filter{nullptr};
256 
257  };
258 
259 
260 }
261 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetFalseDiscoveryRate
std::function< double(int64_t)> m_pfGetFalseDiscoveryRate
Definition: sitkLabelOverlapMeasuresImageFilter.h:252
itk::simple::LabelOverlapMeasuresImageFilter
Computes overlap measures between the set same set of labels of pixels of two images....
Definition: sitkLabelOverlapMeasuresImageFilter.h:46
itk::simple::LabelOverlapMeasuresImageFilter::GetFalseNegativeError
double GetFalseNegativeError() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:66
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::LabelOverlapMeasuresImageFilter::GetJaccardCoefficient
double GetJaccardCoefficient() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:151
itk::simple::LabelOverlapMeasuresImageFilter::GetMeanOverlap
double GetMeanOverlap(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:109
itk::simple::LabelOverlapMeasuresImageFilter::GetFalsePositiveError
double GetFalsePositiveError(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:92
itk::simple::LabelOverlapMeasuresImageFilter::GetVolumeSimilarity
double GetVolumeSimilarity() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:134
sitkImageFilter.h
itk::simple::LabelOverlapMeasuresImageFilter::GetFalsePositiveError
double GetFalsePositiveError() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:83
itk::simple::LabelOverlapMeasuresImageFilter::GetJaccardCoefficient
double GetJaccardCoefficient(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:160
itk::simple::LabelOverlapMeasuresImageFilter::GetVolumeSimilarity
double GetVolumeSimilarity(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:143
itk::simple::LabelOverlapMeasuresImageFilter::GetFalseDiscoveryRate
double GetFalseDiscoveryRate() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:185
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetUnionOverlap
std::function< double(int64_t)> m_pfGetUnionOverlap
Definition: sitkLabelOverlapMeasuresImageFilter.h:236
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetMeanOverlap
std::function< double(int64_t)> m_pfGetMeanOverlap
Definition: sitkLabelOverlapMeasuresImageFilter.h:232
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetFalseNegativeError
std::function< double(int64_t)> m_pfGetFalseNegativeError
Definition: sitkLabelOverlapMeasuresImageFilter.h:224
itk::simple::LabelOverlapMeasuresImageFilter::GetDiceCoefficient
double GetDiceCoefficient(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:177
itk::simple::LabelOverlapMeasuresImageFilter::PixelIDTypeList
IntegerPixelIDTypeList PixelIDTypeList
Definition: sitkLabelOverlapMeasuresImageFilter.h:58
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::LabelOverlapMeasuresImageFilter::GetUnionOverlap
double GetUnionOverlap(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:126
itk::simple::LabelOverlapMeasuresImageFilter::GetFalseNegativeError
double GetFalseNegativeError(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:75
itk::simple::LabelOverlapMeasuresImageFilter::GetUnionOverlap
double GetUnionOverlap() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:117
itk::simple::LabelOverlapMeasuresImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkLabelOverlapMeasuresImageFilter.h:218
itk::simple::LabelOverlapMeasuresImageFilter::GetDiceCoefficient
double GetDiceCoefficient() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:168
itk::ProcessObject
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetVolumeSimilarity
std::function< double(int64_t)> m_pfGetVolumeSimilarity
Definition: sitkLabelOverlapMeasuresImageFilter.h:240
itk::simple::LabelOverlapMeasuresImageFilter::MemberFunctionType
void(Self::*)(const Image *sourceImage, const Image *targetImage) MemberFunctionType
Definition: sitkLabelOverlapMeasuresImageFilter.h:212
itk::simple::IntegerPixelIDTypeList
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > > IntegerPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:75
itk::simple::LabelOverlapMeasuresImageFilter::GetName
std::string GetName() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:198
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::LabelOverlapMeasuresImageFilter::GetFalseDiscoveryRate
double GetFalseDiscoveryRate(int64_t label) const
Definition: sitkLabelOverlapMeasuresImageFilter.h:194
itk::simple::LabelOverlapMeasuresImageFilter::GetMeanOverlap
double GetMeanOverlap() const
Definition: sitkLabelOverlapMeasuresImageFilter.h:100
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetFalsePositiveError
std::function< double(int64_t)> m_pfGetFalsePositiveError
Definition: sitkLabelOverlapMeasuresImageFilter.h:228
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetDiceCoefficient
std::function< double(int64_t)> m_pfGetDiceCoefficient
Definition: sitkLabelOverlapMeasuresImageFilter.h:248
itk::simple::LabelOverlapMeasuresImageFilter::m_pfGetJaccardCoefficient
std::function< double(int64_t)> m_pfGetJaccardCoefficient
Definition: sitkLabelOverlapMeasuresImageFilter.h:244