[Insight-users] Re: incorrect z-spacing in GDCM reading

Hxsham Fire hxsham at yahoo.com
Wed May 11 17:21:42 EDT 2005


Mathieu,
I am using the cvs version of ITK and updating it...
The series that I tried this on is a series of a
patient I am working on.  My temporary solution was to
change my program in order to manipulate the series
all at once, without writing a series and then writing
it again.
Hisham

Note: since a few days ago I have updated the
operating system on my G5 and I am not able to compile
ITK anymore due to this error, is ITK tested on MAC
OSX? and is the operating system udated frequently?:

/Users/hharik/hisham/insight_cvs/Insight/Utilities/vxl/core/vnl/vnl_math.cxx:
In
   function `bool vnl_math_isinf(float)':
/Users/hharik/hisham/insight_cvs/Insight/Utilities/vxl/core/vnl/vnl_math.cxx:208:
error: `
   __isnan' undeclared (first use this function)
/Users/hharik/hisham/insight_cvs/Insight/Utilities/vxl/core/vnl/vnl_math.cxx:208:
error: (Each
   undeclared identifier is reported only once for
each function it appears 
   in.)

---------------------------------------------------------
---------------------------------------------------------


Hxsham

        What are you reporting is rather scary. Could
you tell us which 
version 
of ITK are you using ? Also on which example did you
base your code ? 
The fact is that this is tested nightly:

$ ctest -R itkGDCMSeriesReadImageWrite -V

This create three new files in Testing/Temporary/.
Then all you need to 
check is that 'Image Position Patient' is correct:


$ for i in `ls Testing/Temporary/*.dcm`; do 
./bin/DicomImageReadPrintTags $i; done | grep "Image
Position"

Image Position Patient = -112\ -21.688\ 126.894
Image Position Patient = -112\-20.2729\ 127.641
Image Position Patient = -112\-18.8578\ 128.388

        Which looks good to me...

HTH,
Mathieu


		
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/


More information about the Insight-users mailing list