MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006503 | VTK | (No Category) | public | 2008-03-04 10:36 | 2016-08-12 09:54 |
| Reporter | Peter Roesch | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0006503: problems loading big endian meta image date into vtk | ||||
| Description | Images stored by itk running on a sun sparc workstation are not displayed correctly on PC hardware. The reason is that vtkMetaImageReader checks for the string "true" whereas itk writes "True" for the field ElementByteOrderMSB in the mhd file. A solution is suggested below. | ||||
| Steps To Reproduce | |||||
| Additional Information | For my application, the problem was resolved by applying the following patch (vtk version 5.0.3): *** vtkMetaImageReader.cxx.bak 2007-09-19 18:30:09.000000000 +0200 --- vtkMetaImageReader.cxx 2007-09-19 18:30:09.000000000 +0200 *************** int vtkMetaImageReader::GetFileInformati *** 392,398 **** } else if ( vtkMetaImageReaderInternal::StringEquals(key, "BinaryData", keylen) ) { ! if ( !vtkMetaImageReaderInternal::StringEqualsCase(value, "true", valuelen) ) { if ( populate ) { --- 392,398 ---- } else if ( vtkMetaImageReaderInternal::StringEquals(key, "BinaryData", keylen) ) { ! if ( !vtkMetaImageReaderInternal::StringEqualsCase(value, "True", valuelen) ) { if ( populate ) { *************** int vtkMetaImageReader::GetFileInformati *** 407,413 **** else if ( vtkMetaImageReaderInternal::StringEquals(key, "BinaryDataByteOrderMSB", keylen) ) { ! if ( vtkMetaImageReaderInternal::StringEqualsCase(value, "true", valuelen) ) { bigendian = 1; } --- 407,413 ---- else if ( vtkMetaImageReaderInternal::StringEquals(key, "BinaryDataByteOrderMSB", keylen) ) { ! if ( vtkMetaImageReaderInternal::StringEqualsCase(value, "True", valuelen) ) { bigendian = 1; } | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-03-04 10:36 | Peter Roesch | New Issue | |||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036958 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| 2016-08-12 09:54 | Kitware Robot | Assigned To | => Kitware Robot | ||
| Notes | |||||
|
|
|||||
|
|
||||