X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractMediastinumFilter.txx;fp=segmentation%2FclitkExtractMediastinumFilter.txx;h=b3e17bf719ba32047ea1b48e91c776cf9684e257;hb=9a67007d11721d89587c2a17397a11dc72c3120a;hp=312fd14ed01d518cddfed3236b5a0ff720526f00;hpb=338030186d56f371ab17cf99660bf92ab0dc07fb;p=clitk.git diff --git a/segmentation/clitkExtractMediastinumFilter.txx b/segmentation/clitkExtractMediastinumFilter.txx index 312fd14..b3e17bf 100644 --- a/segmentation/clitkExtractMediastinumFilter.txx +++ b/segmentation/clitkExtractMediastinumFilter.txx @@ -54,7 +54,7 @@ ExtractMediastinumFilter(): SetForegroundValueLeftLung(1); SetForegroundValueRightLung(2); SetDistanceMaxToAnteriorPartOfTheVertebralBody(10); - SetOutputMediastinumFilename("mediastinum.mhd"); + SetOutputMediastinumFilename("mediastinum.mha"); UseBonesOff(); } //-------------------------------------------------------------------- @@ -250,9 +250,9 @@ GenerateOutputInformation() { left_lung = clitk::SetBackground(left_lung, left_lung, 2, 1, false); right_lung = clitk::ResizeImageLike(right_lung, output, this->GetBackgroundValue()); left_lung = clitk::ResizeImageLike(left_lung, output, this->GetBackgroundValue()); - this->GetAFDB()->template SetImage("RightLung", "seg/RightLung.mhd", + this->GetAFDB()->template SetImage("RightLung", "seg/RightLung.mha", right_lung, true); - this->GetAFDB()->template SetImage("LeftLung", "seg/LeftLung.mhd", + this->GetAFDB()->template SetImage("LeftLung", "seg/LeftLung.mha", left_lung, true); this->GetAFDB()->Write(); this->template StopCurrentStep(output); @@ -319,12 +319,12 @@ GenerateOutputInformation() { bones_post = roiFilter->GetOutput(); // writeImage(bones_post, "b_post.mhd"); - // Now, insert this image in the AFDB - this->GetAFDB()->template SetImage("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("Bones_Post", "seg/Bones_Post.mha", bones_post, true); - this->GetAFDB()->template SetImage("Bones_Ant", "seg/Bones_Ant.mhd", + this->GetAFDB()->template SetImage("Bones_Ant", "seg/Bones_Ant.mha", bones_ant, true); - this->GetAFDB()->Write(); + this->GetAFDB()->Write(); this->template StopCurrentStep(output); }