[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't READ_DICOM without DIALOG_PICKFILE
"Emmler, Oliver" wrote:
>
> i try to read DICOM-Files from a directory directly under \IDL53\.. .
> The directory name is \IDL53\radiologie\
> The term ...
> file = READ_DICOM(DIALOG_PICKFILE())
>
> ... works fine for this.
>
> Now i want to automate the reading of the files but with
>
> file = READ_DICOM(FILEPATH('MC002.dcm', SUBDIR=['radiologie']))
is 'radiologie' a subdirectory of your IDL installation directory?
if not, you may look at ROOT_DIR keyword for FILEPATH.
or try something like
datadir = "c:\path\to\data\"
img = read_dicom(datadir+"MC002.dcm")
--
Ivan Zimine | ivan.zimine@physics.unige.ch
Dpt. of Radiology | (+41 22) 372 70 70
Geneva University Hospitals |