[vtkusers] Reslice extent off imagePlaneWidget
Dean Inglis
dean.inglis at sympatico.ca
Sun Oct 18 12:21:47 EDT 2009
let's try the diagram once more
The pipeline is basically:
[1] vtkImageData
[2] vtkImageReslice
[3] vtkLookupTable
[4] vtkImageMapToColors
[5] vtkTexture
[6] vtkPlaneSource
[7] vtkPolyDataMapper
[8] vtkActor
[1]->[2]->|
|->[4]->[5]->|
[3]->|------->| |
|->[8]
[6]->[7]-------------->|
Dean
www.camris.ca
In pyVTK, I'm slicing through a dataset using vtkImagePlaneWidget then
pulling the imageData off it via getResliceOutput. Now, I'd expect the size
of the imageData that comes off it to be proportional to the size of the
widget across that dimension, no? That doesn't seem to be the case; rather
it seems to round up to powers of two. Dimensions of 2 and 3 on the plane go
to extent of 16, 4-7 extent 32, 8-15 extent 64, etcetera. Obvious pattern
there. Now, I can see why it might do that if I'd pulled the texture off the
widget, since I believe OpenGL used to require powers of two, but surely the
direct reslice outut should be proportional to the widget size? Can anyone
tell me what's going on here?
More information about the vtkusers
mailing list