Hi,<br>
<br>
I'm trying to read a 4D Image 256*256*128*39 (3D+t) of type 'Analyze'
(with<br>
a header file .hdr and the data .img).<br>
<br>
<br>
With the standard ImageFileReader method instantiated thanks to an<br>
'ImageType3D', it runs but the output represents only the first 3D image<br>
(256*256*128) of the sample.<br>
<br>
<br>
If I'm using ImageFileReader with an 'ImageType4D', this error appears :<br>
'A spacing of 0 is not allowed: Spacing is [1, 1, 1, 0]'<br>
<br>
<br>
And if I'm using the 'reader->SetImageIO()' with
'itk::AnalyzeImageIO' and<br>
ImageFileReader<ImageType3D>, the reader->GetImageIO() seems to
be formatted<br>
as intended (256*256*128*39) but the reader output still be 3D.<br>
<br>
<br>
So the problem is that the ImageFileReader need to use ImageType3D to
open<br>
my files, but during the opening process the AnalyzeImageIOFactory find
the<br>
correct ImageType4D.<br>
<br>
<br>
<br>
Is there a way to have access to the image data through the<br>
'reader->getImageIO()' in order to populate an itkImage ?<br>
(I have ever unsuccessfully tried to change NumberOfDimensions or
directly<br>
set the 4th spacing component)<br>
<br>
<br>
Best Regards,<br>
Thierry