Re: Writing DICOM-Files [message #59237] |
Fri, 14 March 2008 08:35  |
Abraham campbell
Messages: 10 Registered: January 2008
|
Junior Member |
|
|
wengi wrote:
> On 14 Mrz., 15:09, wengi <andreas.w...@gmail.com> wrote:
>> Hi there,
>>
>> I finally came to a point, that I am able to write dicom-Files with
>> IDL. I create new objects with the following code:
>>
>> obj = OBJ_New('IDLffDICOMex', filename,
>> SOP_Class='ENHANCED_MR_IMAGE', /NON_CONFORMING, /CREATE)
>>
>> I'm calculating parameter-maps and write them into the files. This
>> works so far: I calculate the maps and write six different files.
>> Since I'm evaluating three slices of the heart I do this iteratively.
>> When IDL comes to the point where it wants to write the six maps for
>> the second slice into the same directory but with different filenames
>> I get an error right after calling the obj = OBJ_New line:
>>
>> OBJ_NEW: Error: Unable to add media storage SOP instance UID ,
>> Invalid characters in value for this VR
>>
>> The problem is, that this tag (0002:0003) is "set to a new ITT Visual
>> Information Solutions-generated value" and I don't know how to solve
>> this problem.
>>
>> Maybe someone is able to give me a hint..
>>
>> Andreas
>
> Just forgot: When I start a new IDL-session for every single slice.
> Everything works. Just the iterative method to calculate and write all
> that stuff over night creates the error.
> Andreas
Stupid question. Did you try calling obj->Commit at the end of each
iteration before looping back and calling obj_new again?
|
|
|
Re: Writing DICOM-Files [message #59238 is a reply to message #59237] |
Fri, 14 March 2008 07:16   |
wengi
Messages: 12 Registered: February 2008
|
Junior Member |
|
|
On 14 Mrz., 15:09, wengi <andreas.w...@gmail.com> wrote:
> Hi there,
>
> I finally came to a point, that I am able to write dicom-Files with
> IDL. I create new objects with the following code:
>
> obj = OBJ_New('IDLffDICOMex', filename,
> SOP_Class='ENHANCED_MR_IMAGE', /NON_CONFORMING, /CREATE)
>
> I'm calculating parameter-maps and write them into the files. This
> works so far: I calculate the maps and write six different files.
> Since I'm evaluating three slices of the heart I do this iteratively.
> When IDL comes to the point where it wants to write the six maps for
> the second slice into the same directory but with different filenames
> I get an error right after calling the obj = OBJ_New line:
>
> OBJ_NEW: Error: Unable to add media storage SOP instance UID ,
> Invalid characters in value for this VR
>
> The problem is, that this tag (0002:0003) is "set to a new ITT Visual
> Information Solutions-generated value" and I don't know how to solve
> this problem.
>
> Maybe someone is able to give me a hint..
>
> Andreas
Just forgot: When I start a new IDL-session for every single slice.
Everything works. Just the iterative method to calculate and write all
that stuff over night creates the error.
Andreas
|
|
|
Re: Writing DICOM-Files [message #59308 is a reply to message #59237] |
Mon, 17 March 2008 00:27  |
wengi
Messages: 12 Registered: February 2008
|
Junior Member |
|
|
On 14 Mrz., 16:35, Abraham Campbell <abra...@ittvis.com> wrote:
> wengi wrote:
>> On 14 Mrz., 15:09, wengi <andreas.w...@gmail.com> wrote:
>>> Hi there,
>
>>> I finally came to a point, that I am able to write dicom-Files with
>>> IDL. I create new objects with the following code:
>
>>> obj = OBJ_New('IDLffDICOMex', filename,
>>> SOP_Class='ENHANCED_MR_IMAGE', /NON_CONFORMING, /CREATE)
>
>>> I'm calculating parameter-maps and write them into the files. This
>>> works so far: I calculate the maps and write six different files.
>>> Since I'm evaluating three slices of the heart I do this iteratively.
>>> When IDL comes to the point where it wants to write the six maps for
>>> the second slice into the same directory but with different filenames
>>> I get an error right after calling the obj = OBJ_New line:
>
>>> OBJ_NEW: Error: Unable to add media storage SOP instance UID ,
>>> Invalid characters in value for this VR
>
>>> The problem is, that this tag (0002:0003) is "set to a new ITT Visual
>>> Information Solutions-generated value" and I don't know how to solve
>>> this problem.
>
>>> Maybe someone is able to give me a hint..
>
>>> Andreas
>
>> Just forgot: When I start a new IDL-session for every single slice.
>> Everything works. Just the iterative method to calculate and write all
>> that stuff over night creates the error.
>> Andreas
>
> Stupid question. Did you try calling obj->Commit at the end of each
> iteration before looping back and calling obj_new again?
There are no stupid questions. But, yes I did call it.
|
|
|