From: dsarrut Date: Thu, 31 Mar 2011 07:55:13 +0000 (+0000) Subject: remove test files X-Git-Tag: v1.2.0~85 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2bc8f25d4187876049ae727ff91ca988e6048b73;p=clitk.git remove test files --- diff --git a/segmentation/clitkTestFilter.ggo b/segmentation/clitkTestFilter.ggo deleted file mode 100644 index 6ab0ebb..0000000 --- a/segmentation/clitkTestFilter.ggo +++ /dev/null @@ -1,16 +0,0 @@ -#File clitkTestFilter.ggo -package "clitkTestFilter" -version "1.0" -purpose "Test a filter" - -option "config" - "Config file" string no -option "verbose" v "Verbose" flag off - -option "input1" i "Input 1 image filename" string no -option "input2" j "Input 2 image filename" string no -option "input3" k "Input 3 image filename" string no -option "output" o "Output image filename" string no - -option "angle1" a "First angle (degree)" float default = "0" no -option "angle2" b "Second angle (degree)" float default = "0" no - diff --git a/segmentation/clitkTestStation7.h b/segmentation/clitkTestStation7.h deleted file mode 100644 index 2c91c7f..0000000 --- a/segmentation/clitkTestStation7.h +++ /dev/null @@ -1,116 +0,0 @@ - - -//----------------------------------- - -/* - - use DB from step to step or ExtractStation_7 mother class - - add "temporary flag" to DB to avoid write image - - - */ - -//----------------------------------- -#include "clitkAnatomicalFeatureDatabase.h" - -class SegmentationStepBase; - -class LymphStationSegmentationFilterBase: - public virtual clitk::FilterBase, - public clitk::FilterWithAnatomicalFeatureDatabaseManagement { -public: - LymphStationSegmentationFilterBase() { DD("LymphStationSegmentationFilterBase const"); } - - void AddStep(SegmentationStepBase * step) { - m_Steps.push_back(step); - } - - std::vector m_Steps; - // AnatomicalFeatureDatabase * GetAFDB(); - - // HERE GetAFDB - -}; - - -//----------------------------------- - - -class SegmentationStepBase -{ -public: - typedef itk::Image ImageType; - typedef ImageType::PointType ImagePointType; - - SegmentationStepBase(std::string name); - virtual void StartStep(); - void InitStep(LymphStationSegmentationFilterBase * p){ - DD("SegmentationStepBase::InitStep"); - parent = p; - } - std::string name; - LymphStationSegmentationFilterBase * parent; -}; - -SegmentationStepBase::SegmentationStepBase(std::string n) { - DD("SegmentationStepBase constructor"); - name = n; - DD(name); -} - -void SegmentationStepBase::StartStep() { - DD("Start step (verbose debug skip)"); - DD(name); - // VERBOSE, DEBUG - // IF SKIP -} - -//----------------------------------- - -class ExtractStation7_APLimits:public SegmentationStepBase { -public: - typedef SegmentationStepBase Super; - ExtractStation7_APLimits():SegmentationStepBase("Step AP Limits") {} - virtual void StartStep(); - // Accès au types ==> Super:: - // Accès au AFDB ==> parent-> - - // TODO - // , support, image // herit ; how to set ? - // ggo -}; - - -void ExtractStation7_APLimits::StartStep() { - Super::StartStep(); // -> needed to verbose, debug, skip etc - DD("ExtractStation7_APLimits StartStep"); - Super::ImagePointType carina; - parent->GetAFDB()->GetPoint3D("carina", carina); - DD(carina); - - // Writeimage -} - -//----------------------------------- - - -// template -class ExtractLymphStation_7:public LymphStationSegmentationFilterBase { -public: - ExtractLymphStation_7() { - DD("ExtractStation_7 constructor"); - // insert step (could be autolist if needed); - AddStep(new ExtractStation7_APLimits); - } - - // SET GGO dont (AFDB); - - void StartSegmentation() { - DD("ExtractStation_7 Start"); - // Loop on list of SegmentationStepBase - m_Steps[0]->InitStep(this); // parent (donc AFFB) - m_Steps[0]->StartStep(); - // things todo after a step ? -> if writeimage, to be done inside - - } -}; -