Re: problem with xroi [message #43436 is a reply to message #43377] |
Sat, 09 April 2005 17:05   |
Robert Barnett
Messages: 70 Registered: May 2004
|
Member |
|
|
Are you are attempting to segment MRI slices? I haven't really done much
segmentation, however I there is an excellent textbook recently
published. "2-D and 3-D image registration for medical, remote sensing,
and industrial applications", Author A. Goshtasby. This has some
chapters on how to do edge detection and other things like that.
On 7 Apr 2005 08:19:08 -0700
"Pravs" <praveshsubramanian@yahoo.com> wrote:
> 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
>
--
nrb@ Robbie Barnett
imag Research Assistant
wsahs Nuclear Medicine & Ultrasound
nsw Westmead Hospital
gov Sydney Australia
au +61 2 9845 7223
|
|
|