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

Method StatisticsExist

Modules/ImageStatistics/src/mitkImageStatisticsContainer.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 bool ImageStatisticsContainer::StatisticsExist(LabelValueType labelValue, TimeStepType timeStep) const
121 {
122 auto labelFinding = m_LabelTimeStep2StatisticsMap.find(labelValue);
123 if (labelFinding == m_LabelTimeStep2StatisticsMap.end()) return false;
124
125 auto timeFinding = labelFinding->second.find(timeStep);
126
127 return timeFinding != labelFinding->second.end();
128 }
129
130 const ImageStatisticsContainer::HistogramType*
131 ImageStatisticsContainer::GetHistogram(LabelValueType labelValue, TimeStepType timeStep) const

Callers 6

AddTimeStepTreeItemsFunction · 0.80
TimeStepsMethod · 0.80
InternalCloneMethod · 0.80
UpdateHistogramWidgetMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 3

TimeStepsMethod · 0.64
InternalCloneMethod · 0.64