MantisBT - ITK
View Issue Details
0008534ITKpublic2009-02-14 10:392010-10-21 12:31
Don Bigler 
Don Bigler 
normalminoralways
closedfixed 
ITK-3-10 
ITK-3-12 
0008534: itkPhilipsRECImageIO stuck in infinite loop
This bug was reported by Fucang Jia from the Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences:
Dear Don,

Thank you very much for your PAR/REC IO class. I am reading some 4D
fMRI PAR/REC images, but encounter some problem. It reads and seem hanging
and never stop. Would you like to have a look?

The data is at http://www.siat.ac.cn/~jiafucang/philips_fMRI_data/ [^]
There are 84 dynamic scans.

Thank you very much!

Best,
Fucang
======================================================================
Fucang Jia, M.Sc, Ph.D
Senior Engineer
Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences,
Web: www.siat.ac.cn

I downloaded the image to test the bug and yes, itkPhilipsRECImageIO hangs in an infinite loop. This type of Philips REC image is one that I have not encountered before, so it will require a bit of research to fix the problem. I am currently writing my thesis so I don't have the spare time to work on this bug at the moment. For the time being it is best to record the bug in case others are attempting to read this type of Philips REC image.
No tags attached.
Issue History
2009-02-14 10:39Don BiglerNew Issue
2009-04-29 08:22Don BiglerNote Added: 0016241
2009-04-29 08:22Don BiglerStatusnew => resolved
2009-04-29 08:22Don BiglerFixed in Version => ITK-3-12
2009-04-29 08:22Don BiglerResolutionopen => fixed
2009-04-29 08:22Don BiglerAssigned To => Don Bigler
2010-10-21 12:31Gabe HartStatusresolved => closed

Notes
(0016241)
Don Bigler   
2009-04-29 08:22   
In actuality itkPhilipsImageIO was not stuck in an infinite loop. The problem occurred within itkPhilipsPAR which accessed the text PAR file from disk instead of reading the file into memory. The PAR/REC file that demonstrated the infinite loop behavior was very large causing extremely poor performance when read from disk continually. The itkPhilipsPAR that was recently committed to CVS reads the entire PAR file into memory, thereby resolving the performance problems. The PAR/REC file listed on the website is now read within a couple of seconds on a fast computer.