[vtkusers] How to extract all pixel values from a vtkImageData into a Tcl binary string?

Erin McKay intrigue at ozemail.com.au
Wed May 30 17:31:54 EDT 2007


Hi all:

I'm trying to use a combination of VTK and ITK from Tcl to write some 
image processing tools. My image data is stored in a remote database 
and cached in memory as Tcl binary strings. I can display this data 
using VTK (after modifying the wrapper code very slightly) and I can 
pass it to ITK, process and retrieve it using the ConnectVTKITK package 
from InsightApplications.

What I want to do now is to extract all of the raw pixel data from the 
vtkImageData object at the end of the pipeline and store it as a Tcl 
binary string (so that I can update the database).

Can anyone offer some guidance?

Erin McKay
Lead Programmer & Tea Boy
Computerhead



More information about the vtkusers mailing list