Skip to content

Commit

Permalink
Fix locked output segmentation from GeodesicTraining
Browse files Browse the repository at this point in the history
  • Loading branch information
dboun committed May 2, 2019
1 parent 49910be commit 653680f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ void GeodesicTrainingModule::Algorithm()
segm = mitk::IOUtil::Load<mitk::LabelSetImage>(tmpPath.toStdString());
// EO Fix this hack

// segm->GetActiveLabelSet()->SetActiveLabel(0);
segm->GetActiveLabelSet()->SetAllLabelsLocked(false);
segm->GetActiveLabelSet()->SetActiveLabel(0);

ds-> AddMitkLabelSetImageToSubject(this->GetUid(),
segm, outputPath + "segmentation.nrrd", "Segmentation", "<Segmentation> "
);
Expand Down Expand Up @@ -368,6 +370,8 @@ void GeodesicTrainingModule::Algorithm()
segm = mitk::IOUtil::Load<mitk::LabelSetImage>(tmpPath.toStdString());
// EO Fix this hack

// segm->GetActiveLabelSet()->SetActiveLabel(0);
segm->GetActiveLabelSet()->SetAllLabelsLocked(false);
segm->GetActiveLabelSet()->SetActiveLabel(0);

ds-> AddMitkLabelSetImageToSubject(this->GetUid(),
Expand Down

0 comments on commit 653680f

Please sign in to comment.