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

Home » Public Forums » archive » Re: problem with xroi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: problem with xroi [message #43377 is a reply to message #43375] Thu, 07 April 2005 08:19 Go to previous messageGo to previous message
Pravesh is currently offline  Pravesh
Messages: 17
Registered: August 2004
Junior Member
Hi Robert:
Thanks for the reply. The images are not in the DCM format. In Fact, if
they were then IDL would not have returned a 0 for the image format.
They are in MR GE format. file names are of the format I72275~1.24

I cannot open the image from XROI. Now, I have saved this image as
grayscale JPG. It works fine then. But as a PNG, the dimensions
returned are

3 512 512

The header size is 7920 bytes.

The dicomfile.dump is empty.

Please let me know..

Regds,
Pravs

Robert Barnett wrote:
> What kind of medical images are they? Can't you use the DICOM format?

>
> dicom_obj = obj_new('IDLffDICOM')
> result = dicom_obj -> read('dicomfile.dcm')
> dicom_obj -> dumpelements, 'dicomfile.dump'
>
> Look at dicomfile.dump to find pixel data. In my instance I have
several static images
> 138 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 139 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 140 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 141 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 142 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 143 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 144 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 145 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 146 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 147 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 148 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 149 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 150 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
> 151 : (7FE0,0010) : OW : PXL Pixel Data : 32768 : 0 0 0 0 0 0 0 0 0
0 0 0 ...
>
> images = dicom_obj -> getValue('7FE0'x,'0010'x)
>
> ; Images should be a pointer array to the data with the matching
dicom element "(7FE0,0010)"
> ; IDL works out the image dimensions for you so you don't need to
reform the data
>
> tv, *images[0]
>
> xroi, *images[0]
>
> As to your second probem. You might need to scale the image to byte
so it looks like it would if you did tvscl.
>
> tvscl, *images[0]
>
> xroi, fix((float(*images[0]))*255/max(*images[0]))
>
> On 6 Apr 2005 08:57:49 -0700
> "Pravs" <praveshsubramanian@yahoo.com> wrote:
>
>>
>> Hello:
>>
>> 2 problems:
>>
>> 1. I have medical images in GE Format. As IDL cannot open it, I
tried
>> to act smart and converted them to JPG. The trade-off being that I
have
>> grayscale images.
>>
>> I was wondering if we have an image reader for the GE Format
otherwise
>> how can I work around this problem?
>>
>>
>> 2. xroi seems to be open
>
> --
>
> nrb@ Robbie Barnett
> imag Research Assistant
> wsahs Nuclear Medicine & Ultrasound
> nsw Westmead Hospital
> gov Sydney Australia
> au +61 2 9845 7223
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL Demo Use
Next Topic: Re: how do I erase old data when using plots?

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

Current Time: Sat Oct 11 21:01:13 PDT 2025

Total time taken to generate the page: 0.56183 seconds