MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0002945 | VTK | (No Category) | public | 2006-03-07 18:44 | 2016-08-12 09:54 |
| Reporter | Frank Gao | ||||
| Assigned To | Will Schroeder | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0002945: DICOMImage reader has inappropriate buffer size | ||||
| Description | 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(); | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||