View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000484 | VTK | (No Category) | public | 2004-01-05 16:51 | 2016-08-12 09:54 | ||||
Reporter | Mathieu Malaterre | ||||||||
Assigned To | Brad King | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000484: vtkXMLImageData[Reader/Writer] + LookupTable | ||||||||
Description | vtkXMLImageData[Reader/Writer] doesn't take into account the imagedata's lookuptable: Here is a python script to reproduce the problem import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() reader = vtk.vtkBMPReader() reader.SetFileName(VTK_DATA_ROOT + "/Data/masonry.bmp") reader.Allow8BitBMPOn() reader.Update() #construct an image data with a lookup table image = reader.GetOutput() image.GetPointData().GetScalars().SetLookupTable( reader.GetLookupTable() ) writer = vtk.vtkXMLImageDataWriter() writer.SetInput(image) writer.SetFileName("demoxml.vtk") writer.Write() reader2 = vtk.vtkXMLImageDataReader() reader2.SetFileName( 'demoxml.vtk' ) reader2.Update() print reader2.GetOutput().GetPointData().GetScalars().GetLookupTable() (This problem doesn't appear when using vtkStructuredPoints[Reader/Writer]) | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0036707) 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. |
Notes |
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: 0036707 | |
2016-08-12 09:54 | Kitware Robot | Status | expired => closed |
2016-08-12 09:54 | Kitware Robot | Resolution | open => moved |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |