MantisBT - ITK
View Issue Details
0008333ITKpublic2008-12-29 09:422009-01-28 11:02
Bradley Lowekamp 
Bradley Lowekamp 
normalmajoralways
closedunable to reproduce 
 
 
0008333: MetaImageIO does not read correctly stream with non-uniform image spacing
If MetaImageIO is configured for streaming, it will produce blank regions as output if the image spacing is non-uniform. The MetaIO library will produce an error similar to:

MetaImage: M_ReadElementsROI: data not read completely
   ideal = 131072 : actual = 0

This can be reproduced by changing itkMetaImageStreamingWriterIOTest2 to:

ADD_TEST(itkMetaImageStreamingWriterIOTest2 ${IO_TESTS}
  --compare ${ITK_DATA_ROOT}/Baseline/IO/mri3D.mhd
            ${ITK_TEST_OUTPUT_DIR}/mri3DWriteStreamed.mha
  itkMetaImageStreamingWriterIOTest
            ${ITK_DATA_ROOT}/Input/mri3D.mhd
            ${ITK_TEST_OUTPUT_DIR}/mri3DWriteStreamed.mha)

No tags attached.
related to 0008323closed Bradley Lowekamp An Implementation of streaming for ImageFileWriter with collaboration from ImageIOBase 
Issue History
2008-12-29 09:42Bradley LowekampNew Issue
2008-12-29 13:10Bradley LowekampNote Added: 0014449
2009-01-13 09:51Bradley LowekampNote Added: 0014542
2009-01-13 10:38Bradley LowekampRelationship addedrelated to 0008323
2009-01-13 10:39Bradley LowekampStatusnew => assigned
2009-01-13 10:39Bradley LowekampAssigned To => Bradley Lowekamp
2009-01-28 11:02Bradley LowekampNote Added: 0014695
2009-01-28 11:02Bradley LowekampStatusassigned => closed
2009-01-28 11:02Bradley LowekampResolutionopen => unable to reproduce

Notes
(0014449)
Bradley Lowekamp   
2008-12-29 13:10   
itkMetaImageStreamingWriterIOTest2 references /nfs/mead/Users/blowek1/src/Insight/Testing/Data/Input/mri3D.mhd which references dicom files. This is the most likely cause of this test not producing the correct output
(0014542)
Bradley Lowekamp   
2009-01-13 09:51   
I incorrectly diagnosed this problem. The errors were also caused by incorrectly streaming/pasting when an file already exists. In addition to the above cause too.
(0014695)
Bradley Lowekamp   
2009-01-28 11:02   
wrong description of problem