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
32namespace 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
205
206 void Execute ( const Image & sourceImage, const Image & targetImage );
207
208 private:
209
211
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
223
224 std::function<double(int64_t)> m_pfGetFalseNegativeError;
225
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
239
240 std::function<double(int64_t)> m_pfGetVolumeSimilarity;
241
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
251
252 std::function<double(int64_t)> m_pfGetFalseDiscoveryRate;
253
254 // Holder of process object for active measurements
256
257 };
258
259
260}
261#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
void Execute(const Image &sourceImage, const Image &targetImage)
void ExecuteInternal(const Image *sourceImage, const Image *targetImage)
void(Self::*)(const Image *sourceImage, const Image *targetImage) MemberFunctionType
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > > IntegerPixelIDTypeList
#define SITKBasicFilters_EXPORT