4#ifndef _segmentation_h_
5#define _segmentation_h_
18class Segmentation_private;
34 void load (
const char *ss_img,
const char *ss_list);
36 void load_prefix (
const char *prefix_dir);
37 void load_prefix (
const std::string& prefix_dir);
39 static bool valid_extension (
const char *filename);
41 size_t get_num_structures ();
43 std::string get_structure_name (
size_t index);
44 void set_structure_name (
size_t index,
const std::string& name);
46 UCharImageType::Pointer get_structure_image (
int index);
48 void save_colormap (
const std::string& colormap_fn);
50 const std::string& cxt_fn,
bool prune_empty);
51 void save_fcsv (
const Rtss_roi *curr_structure,
const std::string& fn);
52 void save_prefix_fcsv (
const std::string& output_prefix);
53 void save_ss_image (
const std::string& ss_img_fn);
54 void save_labelmap (
const std::string& labelmap_fn);
55 void save_opt4d (
const std::string& output_prefix);
56 void save_prefix (
const std::string& output_prefix,
57 const std::string& extension =
"mha");
58 void save_prefix (
const char *output_prefix);
59 void save_ss_list (
const std::string& ss_list_fn);
63 const std::string& output_dir);
64 UInt32ImageType::Pointer get_ss_img_uint32 (
void);
65 UCharVecImageType::Pointer get_ss_img_uchar_vec (
void);
68 void convert_ss_img_to_cxt (
void);
69 void convert_to_uchar_vec (
void);
71 void cxt_re_extract (
void);
72 void prune_empty (
void);
75 bool xor_overlapping);
80 bool use_itk =
false)
const;
82 bool use_itk =
false);
87 UCharImageType::Pointer itk_image,
88 const char *structure_name = 0,
89 const char *structure_color = 0);
91 const char *structure_name = 0,
92 const char *structure_color = 0);
95 void set_ss_img (UCharImageType::Pointer ss_img);
98 bool have_structure_set ();
100 Rtss* get_structure_set_raw ();
102 void set_structure_set (
Rtss *rtss_ss);
104 void set_structure_image (
105 UCharImageType::Pointer uchar_img,
109 void resample (
float spacing[3]);
112 void initialize_ss_image (
114 void broaden_ss_image (
115 int new_vector_length);
The Plm_image class represents a three-dimensional volume. The volume is an abstraction that can co...
Definition plm_image.h:27
std::shared_ptr< Self > Pointer
Definition plm_image.h:29
The Rt_study class encapsulates the concept of a radiotherapy planning data set, including image,...
Definition rt_study.h:28
The Rtss class represents a set of segmentations in polyline format, analogous to the DICOM-RT RTSTRU...
Definition rtss.h:25
std::shared_ptr< Self > Pointer
Definition rtss.h:27
Definition segmentation.h:23
std::shared_ptr< Self > Pointer
Definition segmentation.h:25
Segmentation_private * d_ptr
Definition segmentation.h:27
Definition warp_parms.h:14
Definition xio_studyset.h:38
#define PLMBASE_API
Definition plmbase_config.h:19
#define SMART_POINTER_SUPPORT(T)
Definition smart_pointer.h:19
Xio_version
Definition xio_studyset.h:11