38 void load (
const char* input_path,
40 void load (
const std::string& input_path,
42 void load_dicom_dir (
const char *dicom_dir);
43 void load_dicom (
const char *dicom_dir);
44 void load_dicom_dose (
const char *dicom_path);
45 void load_dicom_rtss (
const char *dicom_path);
46 void load_dicom_rtplan(
const char *dicom_path);
47 void load_image (
const char *fn);
48 void load_image (
const std::string& fn);
49 void load_xio (
const char *xio_dir);
50 void load_rt_study_dir (
const char *rt_study_dir);
51 void load_rt_study_dir (
const std::string& rt_study_dir);
52 void load_ss_img (
const char *ss_img,
const char *ss_list);
53 void load_dose_img (
const char *dose_img);
54 void load_dose_xio (
const char *dose_xio);
55 void load_dose_astroid (
const char *dose_astroid);
56 void load_dose_mc (
const char *dose_mc);
57 void load_rdd (
const char *image_directory);
58 void load_dcmtk (
const char *dicom_dir);
61 void load_cxt (
const char *input_fn);
62 void load_prefix (
const char *input_fn);
63 void load_prefix (
const std::string& input_fn);
66 void save (
const std::string& output_dir);
68 void save_dicom (
const std::string& output_dir,
69 bool filenames_with_uid =
true);
70 void save_dicom (
const char *output_dir,
71 bool filenames_with_uid =
true);
72 void save_dicom_dose (
const char *output_dir);
74 void save_image (
const std::string& fname);
75 void save_image (
const char* fname);
78 void save_dose (
const std::string& fname);
79 void save_dose (
const char* fname);
82 void save_prefix (
const std::string& output_prefix,
83 const std::string& extension =
"mha");
89 void set_study_metadata (
const std::vector<std::string>& metadata);
91 Metadata::Pointer& get_study_metadata ();
93 void set_image_metadata (
const std::vector<std::string>& metadata);
95 Metadata::Pointer& get_image_metadata ();
97 void set_dose_metadata (
const std::vector<std::string>& metadata);
99 Metadata::Pointer& get_dose_metadata ();
102 void set_rtstruct_metadata (
const std::vector<std::string>& metadata);
104 Metadata::Pointer& get_rtstruct_metadata ();
106 void generate_new_study_uids ();
108 void force_ct_series_uid (
const std::string& series_uid);
111 void set_image (ShortImageType::Pointer& itk_image);
112 void set_image (FloatImageType::Pointer& itk_image);
119 void set_dose (FloatImageType::Pointer itk_dose);
120 void set_dose (
Volume *vol);
124 bool have_segmentation ();
128 const UCharImageType::Pointer& itk_image,
129 const char *structure_name = 0,
130 const char *structure_color = 0);
135 const std::string& get_xio_dose_filename ()
const;
138 Volume::Pointer get_image_volume_short ();
139 Volume::Pointer get_image_volume_float ();
142 Volume::Pointer get_dose_volume_float ();
144 void resample (
float spacing[3]);
147 void save_dcmtk (
const char *dicom_dir,
bool filenames_with_uid);
148 void save_dcmtk_dose (
const char *dicom_dir);