X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLymphStationsFilter.txx;h=6686923948dc086cbd368c54684457e12837d66a;hb=69667910c62b2c9e30d795a9af668855a8de78d3;hp=03fb77ec2d614a4314b555290d41727459328965;hpb=d8491513127692da553a367ac5460a63a45f7129;p=clitk.git diff --git a/segmentation/clitkExtractLymphStationsFilter.txx b/segmentation/clitkExtractLymphStationsFilter.txx index 03fb77e..6686923 100644 --- a/segmentation/clitkExtractLymphStationsFilter.txx +++ b/segmentation/clitkExtractLymphStationsFilter.txx @@ -62,7 +62,11 @@ ExtractLymphStationsFilter(): ExtractStation_2RL_SetDefaultValues(); ExtractStation_3A_SetDefaultValues(); ExtractStation_1RL_SetDefaultValues(); + ExtractStation_4RL_SetDefaultValues(); + ExtractStation_5_SetDefaultValues(); + ExtractStation_6_SetDefaultValues(); + // TODO ExtractStation_7_SetDefaultValues(); ExtractStation_8_SetDefaultValues(); } @@ -121,36 +125,26 @@ GenerateOutputInformation() { this->StopSubStep(); } - // Extract Station3P + // Extract Stations + ExtractStation_1RL(); + ExtractStation_2RL(); ExtractStation_3P(); - - // Extract Station3A ExtractStation_3A(); - - // Extract Station2RL - ExtractStation_2RL(); - - // Extract Station1RL - ExtractStation_1RL(); + ExtractStation_4RL(); + ExtractStation_5(); + ExtractStation_6(); // ---------- TODO ----------------------- // Extract Station8 - ExtractStation_8(); + // ExtractStation_8(); // Extract Station7 - this->StartNewStep("Station 7"); - this->StartSubStep(); - ExtractStation_7(); - this->StopSubStep(); - - if (0) { // temporary suppress - // Extract Station4RL - this->StartNewStep("Station 4RL"); - this->StartSubStep(); - //ExtractStation_4RL(); - this->StopSubStep(); - } + //this->StartNewStep("Station 7"); + //this->StartSubStep(); + //ExtractStation_7(); + //this->StopSubStep(); + } //-------------------------------------------------------------------- @@ -309,23 +303,6 @@ void ComputeImageBoundariesCoordinates(typename ImageType::Pointer image, //-------------------------------------------------------------------- -//-------------------------------------------------------------------- -template -void -clitk::ExtractLymphStationsFilter:: -ExtractStation_4RL() { - DD("TODO"); - exit(0); - /* - WARNING ONLY 4R FIRST !!! (not same inf limits) - */ - ExtractStation_4RL_SI_Limits(); - ExtractStation_4RL_LR_Limits(); - ExtractStation_4RL_AP_Limits(); -} -//-------------------------------------------------------------------- - - //-------------------------------------------------------------------- template void @@ -461,7 +438,7 @@ FindCarina() z = this->GetAFDB()->GetDouble("CarinaZ"); } catch(clitk::ExceptionObject e) { - DD("FindCarinaSlicePosition"); + //DD("FindCarinaSlicePosition"); // Get Carina MaskImagePointer Carina = this->GetAFDB()->template GetImage("Carina"); @@ -494,7 +471,7 @@ FindApexOfTheChest() z = this->GetAFDB()->GetDouble("ApexOfTheChestZ"); } catch(clitk::ExceptionObject e) { - DD("FindApexOfTheChestPosition"); + //DD("FindApexOfTheChestPosition"); MaskImagePointer Lungs = this->GetAFDB()->template GetImage("Lungs"); MaskImagePointType p; p[0] = p[1] = p[2] = 0.0; // to avoid warning @@ -619,7 +596,7 @@ FindSuperiorBorderOfAorticArch() z = this->GetAFDB()->GetDouble("SuperiorBorderOfAorticArchZ"); } catch(clitk::ExceptionObject e) { - DD("FindSuperiorBorderOfAorticArch"); + // DD("FindSuperiorBorderOfAorticArch"); MaskImagePointer Aorta = this->GetAFDB()->template GetImage("Aorta"); MaskImagePointType p; p[0] = p[1] = p[2] = 0.0; // to avoid warning @@ -651,7 +628,7 @@ FindInferiorBorderOfAorticArch() z = this->GetAFDB()->GetDouble("InferiorBorderOfAorticArchZ"); } catch(clitk::ExceptionObject e) { - DD("FindInferiorBorderOfAorticArch"); + //DD("FindInferiorBorderOfAorticArch"); MaskImagePointer Aorta = this->GetAFDB()->template GetImage("Aorta"); std::vector slices; clitk::ExtractSlices(Aorta, 2, slices); @@ -1011,8 +988,8 @@ FindAntPostVesselsOLD() binarizedContour = clitk::CropImageAlongOneAxis(binarizedContour, 2, inf, sup, false, GetBackgroundValue()); // Update the AFDB - writeImage(binarizedContour, "seg/AntPostVesselsSeparation.mhd"); - this->GetAFDB()->SetImageFilename("AntPostVesselsSeparation", "seg/AntPostVesselsSeparation.mhd"); + writeImage(binarizedContour, "seg/AntPostVesselsSeparation.mha"); + this->GetAFDB()->SetImageFilename("AntPostVesselsSeparation", "seg/AntPostVesselsSeparation.mha"); this->WriteAFDB(); return binarizedContour; @@ -1099,10 +1076,10 @@ FindAntPostVessels2() typedef std::map::iterator MapIter; MapOfStructures["BrachioCephalicArtery"] = this->GetAFDB()->template GetImage("BrachioCephalicArtery"); MapOfStructures["BrachioCephalicVein"] = this->GetAFDB()->template GetImage("BrachioCephalicVein"); - MapOfStructures["CommonCarotidArteryLeft"] = this->GetAFDB()->template GetImage("CommonCarotidArteryLeft"); - MapOfStructures["CommonCarotidArteryRight"] = this->GetAFDB()->template GetImage("CommonCarotidArteryRight"); - MapOfStructures["SubclavianArteryLeft"] = this->GetAFDB()->template GetImage("SubclavianArteryLeft"); - MapOfStructures["SubclavianArteryRight"] = this->GetAFDB()->template GetImage("SubclavianArteryRight"); + MapOfStructures["CommonCarotidArteryLeft"] = this->GetAFDB()->template GetImage("LeftCommonCarotidArtery"); + MapOfStructures["CommonCarotidArteryRight"] = this->GetAFDB()->template GetImage("RightCommonCarotidArtery"); + MapOfStructures["SubclavianArteryLeft"] = this->GetAFDB()->template GetImage("LeftSubclavianArtery"); + MapOfStructures["SubclavianArteryRight"] = this->GetAFDB()->template GetImage("RightSubclavianArtery"); MapOfStructures["Thyroid"] = this->GetAFDB()->template GetImage("Thyroid"); MapOfStructures["Aorta"] = this->GetAFDB()->template GetImage("Aorta"); MapOfStructures["Trachea"] = this->GetAFDB()->template GetImage("Trachea"); @@ -1370,8 +1347,8 @@ FindAntPostVessels2() false, GetBackgroundValue()); // Update the AFDB - writeImage(binarizedContour, "seg/AntPostVesselsSeparation.mhd"); - this->GetAFDB()->SetImageFilename("AntPostVesselsSeparation", "seg/AntPostVesselsSeparation.mhd"); + writeImage(binarizedContour, "seg/AntPostVesselsSeparation.mha"); + this->GetAFDB()->SetImageFilename("AntPostVesselsSeparation", "seg/AntPostVesselsSeparation.mha"); this->WriteAFDB(); return binarizedContour;