View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006503VTK(No Category)public2008-03-04 10:362016-08-12 09:54
ReporterPeter Roesch 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006503: problems loading big endian meta image date into vtk
DescriptionImages 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.
Additional InformationFor 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;
            }
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0036958)
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
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


Copyright © 2000 - 2018 MantisBT Team