plastimatch
Loading...
Searching...
No Matches
dvh.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _dvh_h_
5#define _dvh_h_
6
7#include "plmutil_config.h"
8#include <string>
9#include "itk_image_type.h"
10
11class Dvh_private;
12class Plm_image;
13class Segmentation;
14
16public:
17 Dvh ();
18 ~Dvh ();
19public:
21
22public:
27
32
35 DVH_DIFFERENTIAL_HISTOGRAM
36 };
37
38public:
39
42
56 return 256;
57 }
60 return 0.5;
61 }
63
66
67 void set_input (const std::string& dicom_dir);
71 void set_structure_set_image (const char* ss_image_fn,
72 const char *ss_list_fn);
77 void set_dose_image (const char* image_fn);
81 void set_dose_image (const FloatImageType::Pointer image);
82
84 void set_dose_units (enum Dvh_units units);
88 void set_dvh_parameters (enum Dvh_normalization normalization,
89 enum Histogram_type histogram_type, int num_bins, float bin_width);
90
92
95
96 void run ();
98
101
102 void save_csv (const char* csv_fn);
104
105};
106
107#endif
Definition dvh_p.h:14
Definition dvh.h:15
void set_dose_image(Plm_image *image)
Set the dose image as a Plm image.
static Dvh::Dvh_normalization default_normalization()
Return the default value for DVH normalization.
Definition dvh.h:47
Histogram_type
Definition dvh.h:33
@ DVH_CUMULATIVE_HISTOGRAM
Definition dvh.h:34
static Dvh::Histogram_type default_histogram_type()
Return the default value for histogram type.
Definition dvh.h:51
void set_structure_set_image(Segmentation *image)
Set the structure set image as an Segmentation.
Dvh_units
Definition dvh.h:23
@ DVH_UNITS_GY
Definition dvh.h:24
@ DVH_UNITS_CGY
Definition dvh.h:25
Dvh_normalization
Definition dvh.h:28
@ DVH_NORMALIZATION_PCT
Definition dvh.h:29
@ DVH_NORMALIZATION_VOX
Definition dvh.h:30
void set_dose_image(const FloatImageType::Pointer image)
Set the dose image as an ITK image.
Dvh_private * d_ptr
Definition dvh.h:20
static Dvh::Dvh_units default_dose_units()
Return the default value for dose units.
Definition dvh.h:43
static int default_histogram_num_bins()
Return the default number of bins in the histogram.
Definition dvh.h:55
static float default_histogram_bin_width()
Return the default bin width (in Gy) in the histogram.
Definition dvh.h:59
The Plm_image class represents a three-dimensional volume. The volume is an abstraction that can co...
Definition plm_image.h:27
Definition pointset.h:15
Definition segmentation.h:23
#define PLMUTIL_API
Definition plmutil_config.h:26