comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Multiple DICOM images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Multiple DICOM images [message #29148] Sat, 02 February 2002 06:03
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Akhila (idlfreak@yahoo.com) writes:

> Thank you for your help Dr.Fanning. I have around 100 slices segmented
> and saved as .dcm using dicom_writer of Bhautik Joshi. Essentially
> each image has its image_index as 1. But i want to read all these
> images in a folder and save it as an array. so that i can access all
> the images as
> slice = a[*,*,10]
> Please tell me how i could do that.

This is just pretty basic array manipulation in IDL.
What have you tried that didn't work?

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Multiple DICOM images [message #29149 is a reply to message #29148] Fri, 01 February 2002 18:12 Go to previous message
idlfreak is currently offline  idlfreak
Messages: 47
Registered: October 2001
Member
Thank you for your help Dr.Fanning. I have around 100 slices segmented
and saved as .dcm using dicom_writer of Bhautik Joshi. Essentially
each image has its image_index as 1. But i want to read all these
images in a folder and save it as an array. so that i can access all
the images as
slice = a[*,*,10]
Please tell me how i could do that.

Cheers,
Akhila.


idlfreak@yahoo.com (Akhila) wrote in message news:<b1ad7b05.0202011550.490623f1@posting.google.com>...
> HI,
> Can anybody tell me how to read multiple dicom images - these are
> continuous slices and are segmented. These images do not have any
> patient details. Its just the image details and its an array[512,
> 512].
> Please help me.
> Thanks.
>
> Cheers,
> Akhila.
Re: Multiple DICOM images [message #29150 is a reply to message #29149] Fri, 01 February 2002 16:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Akhila (idlfreak@yahoo.com) writes:

> Can anybody tell me how to read multiple dicom images - these are
> continuous slices and are segmented. These images do not have any
> patient details. Its just the image details and its an array[512,
> 512].

Set the IMAGE_INDEX keyword on READ_DICOM to the
index number of the image you are interested in
reading. For example, if you want the fourth image
in the stack:

image4 = Read_Dicom('mydicom.dcm', Image_Index=3)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multiple DICOM images
Next Topic: Color text within WIDGET_TEXT?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 08:43:14 PDT 2025

Total time taken to generate the page: 1.36110 seconds