X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLymphStation_4RL.txx;h=8eb1fbdd2c19e4940b8cf51456dd9600a48892ad;hb=6ae5074c8a8f2c27b21849f5cdf2cc0cfb369698;hp=15201878c1d57cf6136277c5afcfeaa007073849;hpb=b27eb1982254cc53df1d032413317ce6c7f0556a;p=clitk.git diff --git a/segmentation/clitkExtractLymphStation_4RL.txx b/segmentation/clitkExtractLymphStation_4RL.txx index 1520187..8eb1fbd 100644 --- a/segmentation/clitkExtractLymphStation_4RL.txx +++ b/segmentation/clitkExtractLymphStation_4RL.txx @@ -14,20 +14,42 @@ ExtractStation_4RL_SetDefaultValues() template void clitk::ExtractLymphStationsFilter:: -ExtractStation_4RL() { - if ((!CheckForStation("4R")) && (!CheckForStation("4L"))) return; - - StartNewStep("Stations 4RL"); +ExtractStation_4R() { + if (!CheckForStation("4R")) return; + StartNewStep("Stations 4R"); StartSubStep(); // Get the current support - StartNewStep("[Station 4RL] Get the current 4RL suppport"); + StartNewStep("[Station 4R] Get the current 4RL suppport"); m_ListOfStations["4R"] = m_ListOfSupports["S4R"]; - m_ListOfStations["4L"] = m_ListOfSupports["S4L"]; StopCurrentStep(m_ListOfStations["4R"]); // Generic RelativePosition processes m_ListOfStations["4R"] = this->ApplyRelativePositionList("Station_4R", m_ListOfStations["4R"]); + + // Store image filenames into AFDB + WriteImageStation("4R"); + StopSubStep(); + ComputeOverlapWithRef("4R"); +} +//-------------------------------------------------------------------- + + +//-------------------------------------------------------------------- +template +void +clitk::ExtractLymphStationsFilter:: +ExtractStation_4L() { + if (!CheckForStation("4L")) return; + StartNewStep("Stations 4L"); + StartSubStep(); + + // Get the current support + StartNewStep("[Station 4L] Get the current 4RL suppport"); + m_ListOfStations["4L"] = m_ListOfSupports["S4L"]; + StopCurrentStep(m_ListOfStations["4L"]); + + // Generic RelativePosition processes m_ListOfStations["4L"] = this->ApplyRelativePositionList("Station_4L", m_ListOfStations["4L"]); // Separation Ant/Post @@ -43,13 +65,9 @@ ExtractStation_4RL() { StopCurrentStep(m_ListOfStations["4L"]); // Store image filenames into AFDB - writeImage(m_ListOfStations["4R"], "seg/Station4R.mhd"); - writeImage(m_ListOfStations["4L"], "seg/Station4L.mhd"); - GetAFDB()->SetImageFilename("Station4R", "seg/Station4R.mhd"); - GetAFDB()->SetImageFilename("Station4L", "seg/Station4L.mhd"); - WriteAFDB(); + WriteImageStation("4L"); StopSubStep(); - + ComputeOverlapWithRef("4L"); } //--------------------------------------------------------------------