1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
3 Main authors : XX XX XX
6 - University of LYON http://www.universite-lyon.fr/
7 - Léon Bérard cancer center http://www.centreleonberard.fr
8 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the copyright notices for more information.
14 It is distributed under dual licence
15 - BSD http://www.opensource.org/licenses/bsd-license.php
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
18 =========================================================================*/
21 #include "clitkImage2DicomRTStructFilter.h"
22 #include "clitkImage2DicomRTStruct_ggo.h"
24 //--------------------------------------------------------------------
25 int main(int argc, char * argv[]) {
28 GGO(clitkImage2DicomRTStruct, args_info);
30 // Set initial 3D image filenames
31 std::vector<std::string> filenames;
32 for(unsigned int i=0; i< args_info.input_given; i++)
33 filenames.push_back(args_info.input_arg[i]);
35 // Create a filter to convert image into dicomRTStruct and write to disk
36 typedef float PixelType;
37 clitk::Image2DicomRTStructFilter<PixelType> filter;
38 filter.SetVerboseFlag(args_info.verbose_flag);
39 filter.SetInputFilenames(filenames);
40 filter.SetDicomFolder(args_info.dicom_arg);
41 filter.SetStructureSetFilename(args_info.rtstruct_arg);
42 filter.SetOutputFilename(args_info.output_arg);
43 filter.SetROIType(args_info.roitype_arg);
44 filter.SetThresholdValue(args_info.threshold_arg);
45 filter.SetSkipInitialStructuresFlag(args_info.skip_flag);
48 // This is the end my friend
51 //--------------------------------------------------------------------