[Insight-users] reading 512x 512 ct dicom images

raghu venkatram raghu_420 at hotmail.com
Tue, 27 Apr 2004 14:05:01 +0000


<html><div style='background-color:'><DIV class=RTE>
<P>hello Luis,</P>
<P>Using the dicom series reader example, and trying to read 512 x 512 ct images. I tried using a directory that contained multiple series and also just one. In both cases only the first 2 slices are read. There is not "crash", the program terminates.</P>
<P>I set up the example so that I read my dicom images and write them at in Analyze format. using 256 x 256 MR slices, my analyze image contains all the slices.</P>
<P>I also tried getting the spacing information, I get the right spacing for the MR volume as in its header, while i get 1,1,1 for the CT slices. I double checked to make sure i wasnt doing something silly. </P>
<P>Apart from this, I have used MRICro to convert my MR and CT volumes into Analyze format, and my ITK registration application works just fine. So I thought instead of converting why not just use DICOM as is through ITK and ran into the CT reading problem.</P>
<P>A colleague of mine, says he had to change hard coded image height and width from 256 to 512 in one of the itk files, which i dont believe is right as this information in all fairness must be dynamically obtained from the image header. I could give you my ct volume, if you would like to test them out. Also please tell me that the image dimensions are not hardcoded.</P>
<P>Thank you,</P>
<P>Raghu<BR><BR></P></DIV>
<DIV></DIV>&gt;From: Luis Ibanez &lt;luis.ibanez at kitware.com&gt; 
<DIV></DIV>&gt;To: raghu venkatram &lt;raghu_420 at hotmail.com&gt; 
<DIV></DIV>&gt;CC: insight-users at itk.org 
<DIV></DIV>&gt;Subject: Re: [Insight-users] reading 512x 512 ct dicom images 
<DIV></DIV>&gt;Date: Mon, 26 Apr 2004 13:10:03 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hi Raghu, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;In the case of the CT images that only write 2 slices... 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Could you please be more specific regarding the action 
<DIV></DIV>&gt;of the executable: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;You said: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;1) It crashes 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;2) The name generator gives all the dicom files 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;3) When you write the volume only 2 slices appear 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Maybe you could post the text output from the program 
<DIV></DIV>&gt;so we can see the order in which things happened. 
<DIV></DIV>&gt;Crashes is a very generic term. It could have been a 
<DIV></DIV>&gt;segmentation fault, a catched exception or an uncatched 
<DIV></DIV>&gt;exception... Again, if you post the text output of the 
<DIV></DIV>&gt;program, that will help us to figure out what is happening. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&nbsp;&nbsp; Thanks, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;---------------------- 
<DIV></DIV>&gt;raghu venkatram wrote: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&gt;hi Luis, 
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;I have looked at teh dicomseriesreader example. and while using 
<DIV></DIV>&gt;&gt;the example, and trying to write out my ct volume, it crashes, the 
<DIV></DIV>&gt;&gt;name generator gives me all the names of the dicom files in the 
<DIV></DIV>&gt;&gt;directory, but when i write it out it writes out only 2 slices. 
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;I have tried the the same program with a 256 x 256 mr volume, and 
<DIV></DIV>&gt;&gt;i am able to write it out. Now i am able to read both my MR and CT 
<DIV></DIV>&gt;&gt;volumes using MRICro and AMIDE with no problems, also i am able to 
<DIV></DIV>&gt;&gt;convert them into ANALYZE format using MRICro and use it in my ITK 
<DIV></DIV>&gt;&gt;program. 
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;Also when i try getting the spacing information of my CT volume 
<DIV></DIV>&gt;&gt;after reading the image, i get 1,1,1 instad of .5 .5 2, but i get 
<DIV></DIV>&gt;&gt;the right spacing information for my MR volume using the 
<DIV></DIV>&gt;&gt;dicomseriesreader example. 
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;please also not that MRICro and AMIDE both give the rght spacing 
<DIV></DIV>&gt;&gt;for both CT and MR volumes and the right spacing. 
<DIV></DIV>&gt;&gt;&nbsp;&nbsp;Thanks for the continued support 
<DIV></DIV>&gt;&gt;Raghu 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;Insight-users mailing list 
<DIV></DIV>&gt;Insight-users at itk.org 
<DIV></DIV>&gt;http://www.itk.org/mailman/listinfo/insight-users 
<DIV></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2743??PS=">Lose those love handles! MSN Fitness shows you two moves to slim your waist.</a> </html>