dgobbi / vtk-dicom

A set of classes for using DICOM in VTK.
BSD 3-Clause "New" or "Revised" License
258 stars 94 forks source link

Bug in vtkDICOMReader.cxx at Line 2511 #213

Closed retinexpt closed 2 years ago

retinexpt commented 2 years ago

This is a nice DICOM parser and I use it in my project.

There may be a bug at Line 2511 in vtkDICOMReader.cxx. The input arguments of the function AddWindowLevelPreset should be swapped. Namely, original:

properties->AddWindowLevelPreset( center.GetDouble(i), width.GetDouble(i));

fixed: properties->AddWindowLevelPreset( width.GetDouble(i), center.GetDouble(i));

dgobbi commented 2 years ago

Thanks for the report. I've pushed the fix to the master branch.