SetForegroundValueLeftLung(1);
SetForegroundValueRightLung(2);
SetDistanceMaxToAnteriorPartOfTheVertebralBody(10);
SetForegroundValueLeftLung(1);
SetForegroundValueRightLung(2);
SetDistanceMaxToAnteriorPartOfTheVertebralBody(10);
left_lung = clitk::SetBackground<MaskImageType, MaskImageType>(left_lung, left_lung, 2, 1, false);
right_lung = clitk::ResizeImageLike<MaskImageType>(right_lung, output, this->GetBackgroundValue());
left_lung = clitk::ResizeImageLike<MaskImageType>(left_lung, output, this->GetBackgroundValue());
left_lung = clitk::SetBackground<MaskImageType, MaskImageType>(left_lung, left_lung, 2, 1, false);
right_lung = clitk::ResizeImageLike<MaskImageType>(right_lung, output, this->GetBackgroundValue());
left_lung = clitk::ResizeImageLike<MaskImageType>(left_lung, output, this->GetBackgroundValue());
bones_post = roiFilter->GetOutput();
// writeImage<MaskImageType>(bones_post, "b_post.mhd");
bones_post = roiFilter->GetOutput();
// writeImage<MaskImageType>(bones_post, "b_post.mhd");
- // Now, insert this image in the AFDB
- this->GetAFDB()->template SetImage<MaskImageType>("Bones_Post", "seg/Bones_Post.mhd",
+ // Now, insert this image in the AFDB ==> (needed because used in the RelativePosition config file)
+ this->GetAFDB()->template SetImage<MaskImageType>("Bones_Post", "seg/Bones_Post.mha",