plastimatch
Loading...
Searching...
No Matches
warp_parms.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _warp_parms_h_
5#define _warp_parms_h_
6
7#include "plmutil_config.h"
8#include <string.h>
9#include "direction_cosines.h"
10#include "plm_image_type.h"
11#include "plm_int.h"
12#include "xio_studyset.h"
13
15public:
16 /* Input files */
17 std::string input_fn;
18 std::string xf_in_fn;
20 std::string input_cxt_fn;
21 std::string input_prefix;
22 std::string input_ss_img_fn;
23 std::string input_ss_list_fn;
24 std::string input_dose_img_fn;
25 std::string input_dose_xio_fn;
26 std::string input_dose_ast_fn;
27 std::string input_dose_mc_fn;
28 std::string fixed_img_fn;
29 std::string dif_in_fn;
30
31 /* Output files */
32 std::string output_colormap_fn;
33 std::string output_cxt_fn;
34 std::string output_dicom;
35 std::string output_dij_fn;
36 std::string output_dose_img_fn;
37 std::string output_img_fn;
38 std::string output_labelmap_fn;
39 std::string output_opt4d_fn;
40 std::string output_pointset_fn;
41 std::string output_prefix;
42 std::string output_prefix_fcsv;
43 std::string output_ss_img_fn;
44 std::string output_ss_list_fn;
46 std::string output_vf_fn;
47 std::string output_xio_dirname;
48
49 /* Output options */
51 std::string prefix_format;
55
56 /* Algorithm options */
59 bool have_dose_scale; /* should we scale the dose image? */
60 float dose_scale; /* how much to scale the dose image */
61 int interp_lin; /* trilinear (1) or nn (0) */
62 int prune_empty; /* remove empty structures (1) or not (0) */
63 int use_itk; /* force use of itk (1) or not (0) */
64 int simplify_perc; /* percentage of points to be purged */
65 bool xor_contours; /* or/xor overlapping structure contours */
66
67 /* Geometry options */
73 plm_long m_dim[3];
74 float m_origin[3];
75 float m_spacing[3];
77
78 /* Metadata options */
79 std::vector<std::string> m_study_metadata;
80 std::vector<std::string> m_image_metadata;
81 std::vector<std::string> m_dose_metadata;
82 std::vector<std::string> m_rtstruct_metadata;
85
86public:
88
89 /* Geometry options */
90 resize_dose = false;
91 m_have_dim = false;
92 m_have_origin = false;
93 m_have_spacing = false;
95
96 /* Misc options */
97 have_dose_scale = false;
98 dose_scale = 1.0f;
99#if PLM_CONFIG_HARDEN_XFORM_BY_DEFAULT
100 resample_linear_xf = false;
101#else
102 resample_linear_xf = true;
103#endif
104 default_val = 0.0f;
105 interp_lin = 1;
107 prefix_format = "mha";
111
112 prune_empty = 0;
113 use_itk = 0;
114 simplify_perc = 0;
115 xor_contours = false;
116 regenerate_study_uids = false;
118 }
119};
120
121#endif
Definition direction_cosines.h:23
Definition warp_parms.h:14
std::string xf_in_fn
Definition warp_parms.h:18
std::string output_study_dirname
Definition warp_parms.h:45
std::string output_ss_img_fn
Definition warp_parms.h:43
std::string input_ss_img_fn
Definition warp_parms.h:22
std::string referenced_dicom_dir
Definition warp_parms.h:19
std::string input_dose_img_fn
Definition warp_parms.h:24
bool xor_contours
Definition warp_parms.h:65
std::string output_prefix_fcsv
Definition warp_parms.h:42
std::vector< std::string > m_image_metadata
Definition warp_parms.h:80
std::string output_dicom
Definition warp_parms.h:34
std::string output_vf_fn
Definition warp_parms.h:46
int interp_lin
Definition warp_parms.h:61
bool have_dose_scale
Definition warp_parms.h:59
bool resample_linear_xf
Definition warp_parms.h:57
std::string input_ss_list_fn
Definition warp_parms.h:23
std::string output_pointset_fn
Definition warp_parms.h:40
bool dicom_filenames_with_uids
Definition warp_parms.h:52
std::string prefix_format
Definition warp_parms.h:51
float default_val
Definition warp_parms.h:58
std::vector< std::string > m_dose_metadata
Definition warp_parms.h:81
int simplify_perc
Definition warp_parms.h:64
bool output_dij_dose_volumes
Definition warp_parms.h:54
std::string output_colormap_fn
Definition warp_parms.h:32
float m_origin[3]
Definition warp_parms.h:74
std::string output_labelmap_fn
Definition warp_parms.h:38
std::string output_cxt_fn
Definition warp_parms.h:33
int prune_empty
Definition warp_parms.h:62
std::string fixed_img_fn
Definition warp_parms.h:28
std::string input_dose_xio_fn
Definition warp_parms.h:25
std::string output_ss_list_fn
Definition warp_parms.h:44
std::string input_prefix
Definition warp_parms.h:21
std::vector< std::string > m_study_metadata
Definition warp_parms.h:79
bool m_have_dim
Definition warp_parms.h:69
bool m_have_origin
Definition warp_parms.h:70
float m_spacing[3]
Definition warp_parms.h:75
bool resize_dose
Definition warp_parms.h:68
std::string dif_in_fn
Definition warp_parms.h:29
std::string input_dose_mc_fn
Definition warp_parms.h:27
Warp_parms()
Definition warp_parms.h:87
std::string output_dose_img_fn
Definition warp_parms.h:36
Xio_version output_xio_version
Definition warp_parms.h:53
float dose_scale
Definition warp_parms.h:60
int use_itk
Definition warp_parms.h:63
std::string output_opt4d_fn
Definition warp_parms.h:39
std::string output_dij_fn
Definition warp_parms.h:35
std::string output_xio_dirname
Definition warp_parms.h:47
std::vector< std::string > m_rtstruct_metadata
Definition warp_parms.h:82
bool regenerate_study_uids
Definition warp_parms.h:83
bool image_series_uid_forced
Definition warp_parms.h:84
std::string output_prefix
Definition warp_parms.h:41
std::string input_dose_ast_fn
Definition warp_parms.h:26
std::string output_img_fn
Definition warp_parms.h:37
bool m_have_direction_cosines
Definition warp_parms.h:72
bool m_have_spacing
Definition warp_parms.h:71
std::string input_cxt_fn
Definition warp_parms.h:20
Direction_cosines m_dc
Definition warp_parms.h:76
Plm_image_type output_type
Definition warp_parms.h:50
std::string input_fn
Definition warp_parms.h:17
plm_long m_dim[3]
Definition warp_parms.h:73
Plm_image_type
Definition plm_image_type.h:11
@ PLM_IMG_TYPE_UNDEFINED
Definition plm_image_type.h:12
Xio_version
Definition xio_studyset.h:11
@ XIO_VERSION_4_2_1
Definition xio_studyset.h:13