plastimatch
|
The Rt_study class encapsulates the concept of a radiotherapy planning data set, including image, structure set, and dose. More...
#include <rt_study.h>
Public Types | |
typedef Rt_study | Self |
typedef std::shared_ptr< Self > | Pointer |
Public Member Functions | |
Rt_study () | |
~Rt_study () | |
void | load (const char *input_path, Plm_file_format file_type=PLM_FILE_FMT_UNKNOWN) |
void | load (const std::string &input_path, Plm_file_format file_type=PLM_FILE_FMT_UNKNOWN) |
void | load_dicom_dir (const char *dicom_dir) |
void | load_dicom (const char *dicom_dir) |
void | load_dicom_dose (const char *dicom_path) |
void | load_dicom_rtss (const char *dicom_path) |
void | load_dicom_rtplan (const char *dicom_path) |
void | load_image (const char *fn) |
void | load_image (const std::string &fn) |
void | load_xio (const char *xio_dir) |
void | load_rt_study_dir (const char *rt_study_dir) |
void | load_rt_study_dir (const std::string &rt_study_dir) |
void | load_ss_img (const char *ss_img, const char *ss_list) |
void | load_dose_img (const char *dose_img) |
void | load_dose_xio (const char *dose_xio) |
void | load_dose_astroid (const char *dose_astroid) |
void | load_dose_mc (const char *dose_mc) |
void | load_rdd (const char *image_directory) |
void | load_dcmtk (const char *dicom_dir) |
void | load_gdcm (const char *dicom_dir) |
void | load_cxt (const char *input_fn) |
void | load_prefix (const char *input_fn) |
void | load_prefix (const std::string &input_fn) |
void | save (const std::string &output_dir) |
Save as directory of nrrd files. | |
void | save_dicom (const std::string &output_dir, bool filenames_with_uid=true) |
void | save_dicom (const char *output_dir, bool filenames_with_uid=true) |
void | save_dicom_dose (const char *output_dir) |
void | save_image (const std::string &fname) |
void | save_image (const char *fname) |
void | save_image (const char *fname, Plm_image_type image_type) |
void | save_dose (const std::string &fname) |
void | save_dose (const char *fname) |
void | save_dose (const char *fname, Plm_image_type image_type) |
void | save_prefix (const std::string &output_prefix, const std::string &extension="mha") |
const Rt_study_metadata::Pointer & | get_rt_study_metadata () const |
Get the Rt_study_metadata. | |
Rt_study_metadata::Pointer & | get_rt_study_metadata () |
void | set_study_metadata (const std::vector< std::string > &metadata) |
Set metadata items into study_metadata portion of Rt_study_metadata. | |
Metadata::Pointer & | get_study_metadata () |
Get the study_metadata portion of Rt_study_metadata. | |
void | set_image_metadata (const std::vector< std::string > &metadata) |
Set metadata items into image portion of Rt_study_metadata. | |
Metadata::Pointer & | get_image_metadata () |
Get the image portion of Rt_study_metadata. | |
void | set_dose_metadata (const std::vector< std::string > &metadata) |
Set metadata items into dose portion of Rt_study_metadata. | |
Metadata::Pointer & | get_dose_metadata () |
Get the dose portion of Rt_study_metadata. | |
void | set_rtstruct_metadata (const std::vector< std::string > &metadata) |
Set metadata items into rtstruct portion of Rt_study_metadata. | |
Metadata::Pointer & | get_rtstruct_metadata () |
Get the rtstruct portion of Rt_study_metadata. | |
void | generate_new_study_uids () |
Create new StudyInstanceUID and FrameOfReferenceUID for the study. | |
void | force_ct_series_uid (const std::string &series_uid) |
Force the CT series UID to a certain value when saving. | |
bool | have_image () |
void | set_image (ShortImageType::Pointer &itk_image) |
void | set_image (FloatImageType::Pointer &itk_image) |
void | set_image (Plm_image *pli) |
void | set_image (const Plm_image::Pointer &pli) |
Plm_image::Pointer & | get_image () |
bool | have_dose () |
void | set_dose (Plm_image *pli) |
void | set_dose (FloatImageType::Pointer itk_dose) |
void | set_dose (Volume *vol) |
void | set_dose (const Plm_image::Pointer &pli) |
Plm_image::Pointer | get_dose () |
bool | have_segmentation () |
Segmentation::Pointer | get_segmentation () |
void | set_segmentation (Segmentation::Pointer seg) |
void | add_structure (const UCharImageType::Pointer &itk_image, const char *structure_name=0, const char *structure_color=0) |
bool | have_plan () |
Rtplan::Pointer & | get_plan () |
const std::string & | get_xio_dose_filename () const |
Xio_ct_transform * | get_xio_ct_transform () |
Volume::Pointer | get_image_volume_short () |
Volume::Pointer | get_image_volume_float () |
bool | has_dose () |
Volume::Pointer | get_dose_volume_float () |
void | resample (float spacing[3]) |
Static Public Member Functions | |
static Rt_study::Pointer | New () |
static Rt_study::Pointer | New (Rt_study *t) |
template<class U1 > | |
static Rt_study::Pointer | New (const U1 &u1) |
template<class U1 , class U2 > | |
static Rt_study::Pointer | New (const U1 &u1, const U2 &u2) |
template<class U1 , class U2 , class U3 > | |
static Rt_study::Pointer | New (const U1 &u1, const U2 &u2, const U3 &u3) |
template<class U1 , class U2 , class U3 , class U4 , class U5 , class U6 > | |
static Rt_study::Pointer | New (const U1 &u1, const U2 &u2, const U3 &u3, const U4 &u4, const U5 &u5, const U6 &u6) |
Public Attributes | |
Rt_study_private * | d_ptr |
Protected Member Functions | |
void | save_dcmtk (const char *dicom_dir, bool filenames_with_uid) |
void | save_dcmtk_dose (const char *dicom_dir) |
void | convert_ss_img_to_cxt () |
The Rt_study class encapsulates the concept of a radiotherapy planning data set, including image, structure set, and dose.
typedef std::shared_ptr<Self> Rt_study::Pointer |
typedef Rt_study Rt_study::Self |
Rt_study::Rt_study | ( | ) |
Rt_study::~Rt_study | ( | ) |
void Rt_study::add_structure | ( | const UCharImageType::Pointer & | itk_image, |
const char * | structure_name = 0, | ||
const char * | structure_color = 0 ) |
|
protected |
void Rt_study::force_ct_series_uid | ( | const std::string & | series_uid | ) |
Force the CT series UID to a certain value when saving.
void Rt_study::generate_new_study_uids | ( | ) |
Create new StudyInstanceUID and FrameOfReferenceUID for the study.
Plm_image::Pointer Rt_study::get_dose | ( | ) |
Metadata::Pointer & Rt_study::get_dose_metadata | ( | void | ) |
Get the dose portion of Rt_study_metadata.
Volume::Pointer Rt_study::get_dose_volume_float | ( | ) |
Plm_image::Pointer & Rt_study::get_image | ( | ) |
Metadata::Pointer & Rt_study::get_image_metadata | ( | void | ) |
Get the image portion of Rt_study_metadata.
Volume::Pointer Rt_study::get_image_volume_float | ( | void | ) |
Volume::Pointer Rt_study::get_image_volume_short | ( | ) |
Rtplan::Pointer & Rt_study::get_plan | ( | ) |
Rt_study_metadata::Pointer & Rt_study::get_rt_study_metadata | ( | ) |
const Rt_study_metadata::Pointer & Rt_study::get_rt_study_metadata | ( | ) | const |
Get the Rt_study_metadata.
Metadata::Pointer & Rt_study::get_rtstruct_metadata | ( | void | ) |
Get the rtstruct portion of Rt_study_metadata.
Segmentation::Pointer Rt_study::get_segmentation | ( | ) |
Metadata::Pointer & Rt_study::get_study_metadata | ( | void | ) |
Get the study_metadata portion of Rt_study_metadata.
Xio_ct_transform * Rt_study::get_xio_ct_transform | ( | ) |
const std::string & Rt_study::get_xio_dose_filename | ( | void | ) | const |
bool Rt_study::has_dose | ( | ) |
bool Rt_study::have_dose | ( | ) |
bool Rt_study::have_image | ( | ) |
bool Rt_study::have_plan | ( | ) |
bool Rt_study::have_segmentation | ( | ) |
void Rt_study::load | ( | const char * | input_path, |
Plm_file_format | file_type = PLM_FILE_FMT_UNKNOWN ) |
void Rt_study::load | ( | const std::string & | input_path, |
Plm_file_format | file_type = PLM_FILE_FMT_UNKNOWN ) |
void Rt_study::load_cxt | ( | const char * | input_fn | ) |
void Rt_study::load_dcmtk | ( | const char * | dicom_dir | ) |
void Rt_study::load_dicom | ( | const char * | dicom_dir | ) |
void Rt_study::load_dicom_dir | ( | const char * | dicom_dir | ) |
void Rt_study::load_dicom_dose | ( | const char * | dicom_path | ) |
void Rt_study::load_dicom_rtplan | ( | const char * | dicom_path | ) |
void Rt_study::load_dicom_rtss | ( | const char * | dicom_path | ) |
void Rt_study::load_dose_astroid | ( | const char * | dose_astroid | ) |
void Rt_study::load_dose_img | ( | const char * | dose_img | ) |
void Rt_study::load_dose_mc | ( | const char * | dose_mc | ) |
void Rt_study::load_dose_xio | ( | const char * | dose_xio | ) |
void Rt_study::load_gdcm | ( | const char * | dicom_dir | ) |
void Rt_study::load_image | ( | const char * | fn | ) |
void Rt_study::load_image | ( | const std::string & | fn | ) |
void Rt_study::load_prefix | ( | const char * | input_fn | ) |
void Rt_study::load_prefix | ( | const std::string & | input_fn | ) |
void Rt_study::load_rdd | ( | const char * | image_directory | ) |
void Rt_study::load_rt_study_dir | ( | const char * | rt_study_dir | ) |
void Rt_study::load_rt_study_dir | ( | const std::string & | rt_study_dir | ) |
void Rt_study::load_ss_img | ( | const char * | ss_img, |
const char * | ss_list ) |
void Rt_study::load_xio | ( | const char * | xio_dir | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
void Rt_study::resample | ( | float | spacing[3] | ) |
void Rt_study::save | ( | const std::string & | output_dir | ) |
Save as directory of nrrd files.
|
protected |
|
protected |
void Rt_study::save_dicom | ( | const char * | output_dir, |
bool | filenames_with_uid = true ) |
void Rt_study::save_dicom | ( | const std::string & | output_dir, |
bool | filenames_with_uid = true ) |
void Rt_study::save_dicom_dose | ( | const char * | output_dir | ) |
void Rt_study::save_dose | ( | const char * | fname | ) |
void Rt_study::save_dose | ( | const char * | fname, |
Plm_image_type | image_type ) |
void Rt_study::save_dose | ( | const std::string & | fname | ) |
void Rt_study::save_image | ( | const char * | fname | ) |
void Rt_study::save_image | ( | const char * | fname, |
Plm_image_type | image_type ) |
void Rt_study::save_image | ( | const std::string & | fname | ) |
void Rt_study::save_prefix | ( | const std::string & | output_prefix, |
const std::string & | extension = "mha" ) |
void Rt_study::set_dose | ( | const Plm_image::Pointer & | pli | ) |
void Rt_study::set_dose | ( | FloatImageType::Pointer | itk_dose | ) |
void Rt_study::set_dose | ( | Plm_image * | pli | ) |
void Rt_study::set_dose | ( | Volume * | vol | ) |
void Rt_study::set_dose_metadata | ( | const std::vector< std::string > & | metadata | ) |
Set metadata items into dose portion of Rt_study_metadata.
void Rt_study::set_image | ( | const Plm_image::Pointer & | pli | ) |
void Rt_study::set_image | ( | FloatImageType::Pointer & | itk_image | ) |
void Rt_study::set_image | ( | Plm_image * | pli | ) |
void Rt_study::set_image | ( | ShortImageType::Pointer & | itk_image | ) |
void Rt_study::set_image_metadata | ( | const std::vector< std::string > & | metadata | ) |
Set metadata items into image portion of Rt_study_metadata.
void Rt_study::set_rtstruct_metadata | ( | const std::vector< std::string > & | metadata | ) |
Set metadata items into rtstruct portion of Rt_study_metadata.
void Rt_study::set_segmentation | ( | Segmentation::Pointer | seg | ) |
void Rt_study::set_study_metadata | ( | const std::vector< std::string > & | metadata | ) |
Set metadata items into study_metadata portion of Rt_study_metadata.
Rt_study_private* Rt_study::d_ptr |