plastimatch
Loading...
Searching...
No Matches
dicom_util.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _dcm_util_h_
5#define _dcm_util_h_
6
7#include "plmbase_config.h"
8#include <string>
9#include "rt_study_metadata.h"
10
12
13PLMBASE_API std::string dicom_anon_patient_id (void);
14
15PLMBASE_API void
16dicom_load_rdd (Rt_study_metadata::Pointer rsm, const char* dicom_dir);
17
18PLMBASE_API void
20 const char* dicom_dir,
23);
24PLMBASE_API void
26 const std::string& dicom_dir,
29);
30PLMBASE_API void
32 const std::string& dicom_dir,
34);
35
36PLMBASE_API void
38 std::string *date,
39 std::string *time
40);
41
42PLMBASE_API char* dicom_uid (char *uid, const char *uid_root);
43PLMBASE_API bool file_is_dicom (const char *filename);
44PLMBASE_API std::string dicom_uid (const char *uid_root);
45PLMBASE_API std::string dicom_uid ();
46
47#endif
std::shared_ptr< Self > Pointer
Definition plm_image.h:29
The Rt_study_metadata encapsulate DICOM metadata for an Rt_study. The Rt_study_metadata includes sepa...
Definition rt_study_metadata.h:27
std::shared_ptr< Self > Pointer
Definition rt_study_metadata.h:29
void dicom_get_date_time(std::string *date, std::string *time)
Definition dicom_util.cxx:23
bool file_is_dicom(const char *filename)
Definition dicom_util.cxx:100
std::string dicom_uid()
Definition dicom_util.cxx:136
std::string dicom_anon_patient_id(void)
Definition dicom_util.cxx:34
void dicom_load_rdd(Rt_study_metadata::Pointer rsm, const char *dicom_dir)
Definition dicom_util.cxx:51
void dicom_save_short(const char *dicom_dir, Plm_image::Pointer &pli, Rt_study_metadata::Pointer &rsm)
Definition dicom_util.cxx:59
#define PLMBASE_API
Definition plmbase_config.h:19