32 return "autoSegmentation";
37 if (image->GetDimension() != 4)
42 imageTimeSelector->SetInput(image);
43 imageTimeSelector->SetTimeNr(static_cast<int>(timestep));
45 imageTimeSelector->UpdateLargestPossibleRegion();
47 return imageTimeSelector->GetOutput();
52 m_OverwriteExistingSegmentation = overwrite;
57 if (m_ToolManager->GetWorkingData(0))
58 return m_ToolManager->GetWorkingData(0)->GetName();
66 if (m_OverwriteExistingSegmentation)
68 emptySegmentation = m_ToolManager->GetWorkingData(0);
79 std::string nodename = m_ToolManager->GetReferenceData(0)->GetName() +
"_" + this->
GetName();
84 emptySegmentation = CreateEmptySegmentationNode(dynamic_cast<mitk::Image *>(refNode->GetData()), nodename, color);
85 m_ToolManager->GetDataStorage()->Add(emptySegmentation, refNode);
87 return emptySegmentation;
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
static std::string GetName(std::string fileName, std::string suffix)
Class for nodes of the DataTree.