Helper function to calculate number of digits needed
| 1168 | { |
| 1169 | // Helper function to calculate number of digits needed |
| 1170 | constexpr int GetRequiredDigits(mitk::MultiLabelSegmentation::LabelValueType maxValue) |
| 1171 | { |
| 1172 | return maxValue > 0 ? static_cast<int>(std::floor(std::log10(maxValue))) + 1 : 1; |
| 1173 | } |
| 1174 | } |
| 1175 | |
| 1176 | template <typename MultiLabelSegmentationType, typename ImageType> |
no outgoing calls
no test coverage detected