MCPcopy Create free account
hub / github.com/MITK/MITK / AddStatistic

Method AddStatistic

Modules/ImageStatistics/src/mitkImageStatisticsContainer.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 ImageStatisticsContainer::ImageStatisticsObject::ImageStatisticsObject() { Reset(); }
48
49 void ImageStatisticsContainer::ImageStatisticsObject::AddStatistic(const std::string_view key, StatisticsVariantType value)
50 {
51 m_Statistics.emplace(key, value);
52
53 if (std::find(m_DefaultNames.cbegin(), m_DefaultNames.cend(), key) == m_DefaultNames.cend())
54 {
55 if (std::find(m_CustomNames.cbegin(), m_CustomNames.cend(), key) == m_CustomNames.cend())
56 {
57 m_CustomNames.emplace_back(key);
58 }
59 }
60 }
61
62 const ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector &
63 ImageStatisticsContainer::ImageStatisticsObject::GetDefaultStatisticNames()

Callers 11

ComputeStatisticsMethod · 0.80
StatisticNamesIOMethod · 0.80
PrintSelfMethod · 0.80
InternalCloneMethod · 0.80
StatisticNamesMethod · 0.80
OverwriteStatisticMethod · 0.80
ResetMethod · 0.80

Calls

no outgoing calls

Tested by 7

StatisticNamesIOMethod · 0.64
PrintSelfMethod · 0.64
InternalCloneMethod · 0.64
StatisticNamesMethod · 0.64
OverwriteStatisticMethod · 0.64
ResetMethod · 0.64