[vtkusers] Re: pb with vtkBMPReader
lucepz at caramail.com
lucepz at caramail.com
Wed Aug 11 03:13:54 EDT 2004
I've tried to add the line but it only displays the last slice!!
It seems that I missed something but I don't know what; my reader in C++ works well and I tried to program this one with tcl/tk but it's not successful.
Thanks though,
L.
What happens when you execute:
viewer SetZSlice 5
viewer Render
?
Goodwin
<lucepz at caramail.com> wrote in message
news:1092149775029459 at lycos-europe.com...
Hi there,
does anyone know how to use correctly the vtkBMPReader in Tcl/tk?
Here is my code to read several bmp files and display them in my tk GUI:
set dir [tk_chooseDirectory -initialdir "D:/Project/video/ " ]
..
vtkBMPReader reader
reader SetDataExtent 0 719 0 575 0 10 #720*576, 10 images from 0 to
10
reader SetFilePrefix "$dir/ "
reader SetFilePattern "%s%d.bmp" # $dir/0.bmp to $dir/10.bmp
reader Update
vtkImageViewer viewer
viewer SetColorWindow 256
viewer SetColorLevel 127.5
viewer SetInput [reader GetOutput]
viewer Render
....
My viewer only displays the first image 0.bmp and doesn't update although I
put the command "reader Update"...Any idea?
Thanks in advance,
L.
More information about the vtkusers
mailing list