| 392 | } |
| 393 | |
| 394 | std::string mitk::LabelSetImageHelper::CreateDisplayLabelName(const MultiLabelSegmentation* labelSetImage, const Label* label) |
| 395 | { |
| 396 | auto labelName = label->GetName(); |
| 397 | |
| 398 | if (labelName.empty()) |
| 399 | labelName = "Unnamed"; |
| 400 | |
| 401 | if (nullptr != labelSetImage && |
| 402 | labelSetImage->GetLabelValuesByName(labelSetImage->GetGroupIndexOfLabel(label->GetValue()), label->GetName()).size() > 1) |
| 403 | { |
| 404 | if (!label->GetTrackingID().empty()) |
| 405 | labelName += " [ID: " + label->GetTrackingID() + ']'; |
| 406 | else |
| 407 | labelName += " [" + std::to_string(label->GetValue()) + ']'; |
| 408 | } |
| 409 | |
| 410 | return labelName; |
| 411 | } |
| 412 | |
| 413 | std::string mitk::LabelSetImageHelper::CreateHTMLLabelName(const mitk::Label* label, const mitk::MultiLabelSegmentation* segmentation) |
| 414 | { |
nothing calls this directly
no test coverage detected