MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0008665 | VTK | (No Category) | public | 2009-03-04 02:11 | 2016-08-12 09:55 |
Reporter | Carlos Barrales Ruiz | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Linux x86/x86_64 | OS | Ubuntu | OS Version | 8.10 (ES.UTF-8) |
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0008665: Locale-dependant internal parsers (ej: sscanf/strtod) fails to interpret correctly float fields. | ||||
Description | Specifically in vtkDICOMParser, float parsing functions (sscanf) are unable to interpret correctly float values due locale-dependant decimal separator. This behavior makes DICOMParser to generate a unorderer voxel without measurement and wrong calculations, causing ugly warnings like: ERROR: In /usr/devel/lib/VTK-5.2.1/Filtering/vtkImageData.cxx, line 1473 vtkImageData (0x4b9e930): GetScalarPointer: Pixel (0, 0, -2147483648) not in memory. Current extent= (0, 255, 0, 255, 0, 59) ERROR: In /usr/devel/lib/VTK-5.2.1/Filtering/vtkImageData.cxx, line 1473 vtkImageData (0x4b9e930): GetScalarPointer: Pixel (0, 0, -2147483648) not in memory. Current extent= (0, 255, 0, 255, 0, 59) | ||||
Steps To Reproduce | Code: vtkImageData* img = vtkImageData::New(); char *oldLocale = setlocale (LC_NUMERIC, "C"); vtkDICOMImageReader* reader= vtkDICOMImageReader::New(); reader->SetDirectoryName(thePath); reader->Update(); img->DeepCopy(reader->GetOutput()); setlocale (LC_NUMERIC, old) viewer->SetImage(img); Trivial Fix: vtkImageData* img = vtkImageData::New(); char *oldLocale = setlocale (LC_NUMERIC, "C"); vtkDICOMImageReader* reader= vtkDICOMImageReader::New(); reader->SetDirectoryName(thePath); reader->Update(); img->DeepCopy(reader->GetOutput()); setlocale (LC_NUMERIC, old) viewer->SetImage(img); or launching with LC_NUMERIC setted. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-03-04 02:11 | Carlos Barrales Ruiz | New Issue | |||
2009-03-04 02:16 | Carlos Barrales Ruiz | Note Added: 0015528 | |||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
2016-08-12 09:55 | Kitware Robot | Note Added: 0037061 | |||
2016-08-12 09:55 | Kitware Robot | Status | expired => closed | ||
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved | ||
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|