save_single_image: Save a single DICOM image file

Description Usage Arguments Value See Also Examples

View source: R/TCIApathfinder.R

Description

Save a single DICOM image file

Usage

1
2
save_single_image(series_instance_uid, sop_instance_uid, out_dir = NULL,
  out_file_name = NULL)

Arguments

series_instance_uid

Series instance UID. To get a list of available series instance UIDs, call get_series_info.

sop_instance_uid

SOP instance UID. To get a list of SOP instance UIDs for an image series, call get_sop_instance_uids.

out_dir

Directory to write DICOM file to

out_file_name

Name of DICOM file to write, with .dcm extension. If out_file_name is NULL, the original file name will be used.

Value

List containing elements:

See Also

get_series_info, get_sop_instance_uids, TCIA REST API Usage Guide, TCIA API object definitions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
save_single_image(
     series_instance_uid = "1.3.6.1.4.1.14519.5.2.1.5382.4002.806935685832642465081499816867",
     sop_instance_uid = "1.3.6.1.4.1.14519.5.2.1.5382.4002.257663256941568276393774062283")
save_single_image(
     series_instance_uid = "1.3.6.1.4.1.14519.5.2.1.5382.4002.806935685832642465081499816867",
     sop_instance_uid = "1.3.6.1.4.1.14519.5.2.1.5382.4002.257663256941568276393774062283",
     out_file_name = "file.dcm")

## End(Not run)

TCIApathfinder documentation built on Sept. 21, 2019, 5:03 p.m.