setting the path for READ_DICOM [message #36029] |
Sat, 09 August 2003 13:17  |
pford
Messages: 33 Registered: September 1996
|
Member |
|
|
Greetings:
I need to read in a DICOM image. This obviously is trivial but I am
hung up on getting the path set correctly. I am using IDL V6 on Mac OS
X and X11. The file I want to open is
/Volumes/A/00130.DCM
I am trying to open it using the following:
Pro testdicom
img = READ_DICOM(FILEPATH('00130.DCM', SUBDIR=['Volumes', 'A']))
tvscl, img
end
and I get the following error message:
READ_DICOM: The file /usr/local/rsi/idl_6.0/Volumes/A/00130.DCM is not
in a supported DICOM format.
I have fooled around with !PATH, the preferences, openr, etc.
I want to avoid moving the file to /usr/local/rsi/idl_6.0 because of
its root privileges and invisibility.
OK, so what do I need to do to set the correct path?
Thanks
Patrick Ford, MD
pford@*nospam*bcm.tmc.edu
|
|
|
Re: setting the path for READ_DICOM [message #36116 is a reply to message #36029] |
Thu, 14 August 2003 19:03  |
pford
Messages: 33 Registered: September 1996
|
Member |
|
|
Ben Tupper <btupper@bigelow.org> wrote in message news:<bhg0k9$b7a1$1@ID-189398.news.uni-berlin.de>...
> Patrick Ford wrote:
>> On Sat, 9 Aug 2003 17:39:46 -0500, Kenneth P. Bowman wrote
>> (in message <kpb-F32699.17394509082003@corp.supernews.com>):
>>
>>
>>> In article <c857619b.0308091217.596409b3@posting.google.com>,
>>> pford@bcm.tmc.edu (Patrick Ford) wrote:
>>>
>>>
>>>> /Volumes/A/00130.DCM
>>>>
>>>> I am trying to open it using the following:
>>>>
>>>> img = READ_DICOM(FILEPATH('00130.DCM', SUBDIR=['Volumes', 'A']))
>
>>>> READ_DICOM: The file /usr/local/rsi/idl_6.0/Volumes/A/00130.DCM is not
>>>> in a supported DICOM format.
>>>
>>>
>>> img = READ_DICOM('/Volumes/A/00130.DCM')
>>>
>>> or
>>>
>>> img = READ_DICOM(FILEPATH('00130.DCM', SUBDIR=['Volumes', 'A'], $
>>> ROOT_DIR= '/'))
>>>
>>> should do the trick.
>>>
>>> Ken Bowman
>>
>>
>> Thanks, that did the trick, However, in keeping in my long tradition of
>> breaking something else while I am trying to fix something, I now have a
>> problem with the DLM path.
>>
>
>> IDL> print, !DLM_PATH
>> /usr/local/rsi/idl_6.0/bin/bin.darwin.ppc
>>
>> which is corrrect but when I try and access a DLM file I get
>>
>> % PFXOVER: Error loading sharable executable.
>> Symbol: IDL_Load, File = /Volumes/A/IDLtoPFgenLib.so
>> No such file or directory
>> % Execution halted at: CX 123 /Volumes/A/Kling GA/pFord
>> Folder/cx1a.pro
>>
>> I can get around this my putting a copy of IDLtoPFgenLib.so on /Volumes/A/
>> but how do I fix this?
>>
> Hello,
>
> I haven't had this problem and I am also on a mac IDL6.0. Can you confirm the
> the library and the module definition file are in the !DLM_PATH? You might try...
>
> HELP, /DLM
>
> to ensure that the dlm parts (*.so and *.dlm) are recognized/found? Don't
> forget to reset your session (.full_reset_session) if you have modified the DLM
> during a given session.
using the help, /dlm after starting I get the following, (edited)
** PFGENLIB - Interface of IDL with Patrick Ford's code (not loaded)
Version: 1.0, Build Date: JULY 2003, Source: Ronn Kling
Path: /Volumes/A/IDLtoPFgenLib.so
the others have the following path:
Path: /usr/local/rsi/idl_6.0/bin/bin.darwin.ppc/filen_name
\
>
> You might also try to manually force the dlm to load with
>
> DLM_LOAD, 'IDLtoPFgenLib'
>
> but I would expect it to fail since the automatic loading fails. If the HELP
> routine finds the DLM parts but it won't load, then it must be your external
> code that has a problem (groan).
>
> Ben
It is not the external code because it was working dandy prior to my
fiddling around trying to get the DICOM file read and I got the DLM
guru to do this for me. I have kludged it by putting copies into the
path that it has,but I would really like to know what I did and how to
fix it.
Thanks.
Regards
Patrick Ford,MD
|
|
|