[Insight-users] bug report: Stack corruption while reading an image series with a single file

Bradley Lowekamp blowekamp at mail.nih.gov
Tue Jun 9 13:21:39 EDT 2009


Hello Sebastian,

Thank you for finding this bug. Could you please file a bug report  
following the procedure at:

http://www.itk.org/Wiki/ITK_Procedure_for_Contributing_Bug_Fixes

Thanks,
Brad

On Jun 9, 2009, at 5:53 AM, Sebastian Steger wrote:

> Hi,
>
> I used the itk::ImageSeriesReader to read a single file containing an
> image with dimensions [X,Y,1] - a 2D image.
> This results in corruption of the stack.
>
> The reason for that can be found in Code\IO\itkImageSeriesReader.txx
> R1.35, line 316: sliceStartIndex[m_NumberOfDimensionsInImage] = i;
> 'sliceStartIndex' is in my case an array with 3 elements and
> 'm_NumberOfDimensionsInImage' is set to 3!
>
> For more than one image, 'm_NumberOfDimensionsInImage' is reduced
> correctly in line 160. Introducing the same dimension reduction logic
> (lines 151-166) to the 1 file case (line 140) solves the problem.
>
> Best regards,
> Sebastian
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users

========================================================
Bradley Lowekamp
Lockheed Martin Contractor for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090609/77eff96a/attachment.htm>


More information about the Insight-users mailing list