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

Home » Public Forums » archive » Re: fixing DICOM read issues
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: fixing DICOM read issues [message #69156 is a reply to message #69138] Fri, 11 December 2009 06:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dorthe Wildenschild writes:

> I am trying to read a stack of DICOM images (.ima format) with IDL and
> can read in the values just fine (-1054 to 3000), but the voxel
> scaling is wrong, so my cylindrical object becomes oval. I tried
> saving the volume from another program and that works well for meshing
> the slices together and getting the correct data range, but I loose
> the voxel scaling, so that once I read that simple binary data file
> into IDL it is stretched incorrectly.
> My array is 512,512,478, and the scaling in the DICOM file is
> 0.43,0.43,0.5 in the three dimensions. How do I fix this in IDL so the
> image has the right shape. Rebin only works for integers of the
> original size...

This seems more like an image *display* problem to me,
but if you want to change the size of the data array,
use CONGRID.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trying to read very big image in IDL
Next Topic: Displaying a matrix in the most literal sense

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

Current Time: Wed Oct 08 16:04:26 PDT 2025

Total time taken to generate the page: 0.00343 seconds