MantisBT - VTK
View Issue Details
0002945VTK(No Category)public2006-03-07 18:442016-08-12 09:54
Frank Gao 
Will Schroeder 
normalmajoralways
closedmoved 
 
 
0002945: DICOMImage reader has inappropriate buffer size
I modified the MFC SDI example to show a single DICOM file.

When the window size is small (h<512), and the DICOM file is 512*512, it blows up at the following code in vtkDICOMImageReader: for (int i=0; i < this->AppHelper->GetHeight(); ++i)
      {
      memcpy(b, iData, rowLength);
      b += rowLength;
      iData -= rowLength;
      }

This code is to reverse the image data so that it is compatible with VTK.

The essential reason of the problem seems to be that the following code allocates buffer (*b) size by the size of displaying window.

Line #280 void* buffer = data->GetScalarPointer();
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036841
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036841)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.