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

Method ClearGroupImage

Modules/Multilabel/src/mitkLabelSetImage.cpp:686–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void mitk::MultiLabelSegmentation::ClearGroupImage(GroupIndexType groupID)
687{
688 if (!this->ExistGroup(groupID))
689 mitkThrow() << "Error, cannot clear group image. Group ID is invalid. Invalid ID: " << groupID;
690
691 try
692 {
693 auto groupImage = this->GetGroupImage(groupID);
694 ClearImageBuffer(groupImage);
695 groupImage->Modified();
696 this->InvokeEvent(LabelsChangedEvent(this->GetLabelValuesByGroup(groupID)));
697 this->InvokeEvent(GroupModifiedEvent(groupID));
698 }
699 catch (itk::ExceptionObject &e)
700 {
701 mitkThrow() << e.GetDescription();
702 }
703 this->Modified();
704}
705
706void mitk::MultiLabelSegmentation::ClearGroupImage(GroupIndexType groupID, TimeStepType timestep)
707{

Callers 1

Calls 7

ExistGroupMethod · 0.95
GetGroupImageMethod · 0.95
GetLabelValuesByGroupMethod · 0.95
GetTimeStepsMethod · 0.80
ClearImageBufferFunction · 0.70
ModifiedMethod · 0.45
GetDescriptionMethod · 0.45

Tested by

no test coverage detected