WRAP_GGO(clitkExtractMediastinum_GGO_C clitkExtractMediastinum.ggo)
ADD_EXECUTABLE(clitkExtractMediastinum clitkExtractMediastinum.cxx ${clitkExtractMediastinum_GGO_C})
- TARGET_LINK_LIBRARIES(clitkExtractMediastinum clitkCommon clitkSegmentationGgoLib ITKIO)
+ TARGET_LINK_LIBRARIES(clitkExtractMediastinum clitkCommon clitkSegmentationGgoLib ITKStatistics ITKIO)
WRAP_GGO(clitkExtractLymphStations_GGO_C clitkExtractLymphStations.ggo)
ADD_EXECUTABLE(clitkExtractLymphStations clitkExtractLymphStations.cxx clitkFilterWithAnatomicalFeatureDatabaseManagement.cxx ${clitkExtractLymphStations_GGO_C})
- TARGET_LINK_LIBRARIES(clitkExtractLymphStations clitkSegmentationGgoLib clitkCommon ITKIO )
+ TARGET_LINK_LIBRARIES(clitkExtractLymphStations clitkSegmentationGgoLib clitkCommon ITKIO ITKStatistics)
WRAP_GGO(clitkMorphoMath_GGO_C clitkMorphoMath.ggo)
ADD_EXECUTABLE(clitkMorphoMath clitkMorphoMath.cxx clitkMorphoMathGenericFilter.cxx ${clitkMorphoMath_GGO_C})
WRAP_GGO(clitkFillImageRegion_GGO_C clitkFillImageRegion.ggo)
ADD_EXECUTABLE(clitkFillImageRegion clitkFillImageRegion.cxx clitkFillImageRegionGenericFilter.cxx ${clitkFillImageRegion_GGO_C})
TARGET_LINK_LIBRARIES(clitkFillImageRegion clitkCommon ITKIO)
+
+ WRAP_GGO(clitkTestFilter_GGO_C clitkTestFilter.ggo)
+ ADD_EXECUTABLE(clitkTestFilter clitkTestFilter.cxx ${clitkTestFilter_GGO_C})
+ TARGET_LINK_LIBRARIES(clitkTestFilter clitkSegmentationGgoLib clitkCommon ITKIO)
+
ENDIF(CLITK_BUILD_SEGMENTATION)
+
+# ADD_EXECUTABLE(ScalarImageMarkovRandomField1 ScalarImageMarkovRandomField1.cxx)
+# TARGET_LINK_LIBRARIES(ScalarImageMarkovRandomField1 clitkCommon ITKIO ITKStatistics)
+# ADD_EXECUTABLE(ScalarImageKmeansClassifier ScalarImageKmeansClassifier.cxx)
+# TARGET_LINK_LIBRARIES(ScalarImageKmeansClassifier clitkCommon ITKIO ITKStatistics)
+
+
#include "clitkExtractPatientFilter.h"
#include "clitkExtractMediastinumFilter.h"
+#include "clitkTestStation7.h"
+
// ITK ENST
#include "RelativePositionPropImageFilter.h"
InputImageType::Pointer input1;
InputImageType::Pointer input2;
InputImageType::Pointer input3;
- input1 = clitk::readImage<InputImageType>(args_info.input1_arg, true);
+ if (args_info.input1_given) input1 = clitk::readImage<InputImageType>(args_info.input1_arg, true);
if (args_info.input2_given) input2 = clitk::readImage<InputImageType>(args_info.input2_arg, true);
if (args_info.input3_given) input3 = clitk::readImage<InputImageType>(args_info.input3_arg, true);
//--------------------------------------------------------------------
// Filter test AutoCropLabelImageFilter
- if (1) {
+ if (0) {
typedef clitk::AutoCropFilter<InputImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
filter->SetInput(input1);
//--------------------------------------------------------------------
// Filter test ExtractPatientFilter
if (0) {
+ /*
typedef itk::Image<char, Dim> OutputImageType;
typedef clitk::ExtractPatientFilter<InputImageType, OutputImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
filter->Update();
OutputImageType::Pointer output = filter->GetOutput();
clitk::writeImage<OutputImageType>(output, args_info.output_arg);
+ */
}
//--------------------------------------------------------------------
// Filter test ExtractLungsFilter
if (0) {
+ /*
typedef itk::Image<PixelType, Dim> OutputImageType; // to change into char
typedef clitk::ExtractLungFilter<InputImageType, OutputImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
filter->Update();
OutputImageType::Pointer output = filter->GetOutput();
clitk::writeImage<OutputImageType>(output, args_info.output_arg);
+ */
}
//--------------------------------------------------------------------
// Filter test ExtractMediastinumFilter
if (0) {
+ /*
typedef clitk::ExtractMediastinumFilter<InputImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
filter->SetInputPatientLabelImage(input1);
filter->Update();
output = filter->GetOutput();
clitk::writeImage<InputImageType>(output, args_info.output_arg);
+ */
+ }
+
+ //--------------------------------------------------------------------
+ // Test for auto register sub-task in a segmentation process
+ if (1) {
+ ExtractLymphStation_7 * s7 = new ExtractLymphStation_7;
+ // s7->SetArgsInfo<args_info_clitkTestFilter>(args_info);
+ // GetParent->SetArgsInfo<>
+ s7->StartSegmentation();
}
// This is the end my friend
option "config" - "Config file" string no
option "verbose" v "Verbose" flag off
-option "input1" i "Input 1 image filename" string yes
+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 yes
+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