View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002945VTK(No Category)public2006-03-07 18:442016-08-12 09:54
ReporterFrank Gao 
Assigned ToWill Schroeder 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002945: DICOMImage reader has inappropriate buffer size
DescriptionI 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();
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0036841)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036841
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team