<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [vtkusers] tcl image to vtk</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I was hoping to avoid writing a file and then loading it, but appears that will be the way to do it.<BR>
<BR>
Thanks<BR>
<BR>
rob<BR>
<BR>
rob,<BR>
you can use classes like vtkJPEGReader to read images. Have a look at the<BR>
following Tcl script:<BR>
<BR>
<A HREF="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Imaging/Testing/Tcl/TestImageCanvas.tcl?root=VTK&content-type=text/plain">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Imaging/Testing/Tcl/TestImageCanvas.tcl?root=VTK&content-type=text/plain</A><BR>
<BR>
Donīt forget to call the Update() method before using the image.<BR>
<BR>
Best regards<BR>
<BR>
Luca<BR>
<BR>
On Jan 23, 2008 1:19 PM, CLEMENTS, ROBERT <rclement@kent.edu> wrote:<BR>
<BR>
><BR>
> Is there an easy way to use an image loaded with tcl in vtk. What i want<BR>
> to do is load an image in tcl and then use that image in my vtk pipeline.<BR>
> Is this possible?<BR>
><BR>
> thanks<BR>
><BR>
> rob<BR>
><BR>
> _______________________________________________<BR>
> This is the private VTK discussion list.<BR>
> Please keep messages on-topic. Check the FAQ at:<BR>
> <A HREF="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
> Follow this link to subscribe/unsubscribe:<BR>
> <A HREF="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>
><BR>
><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>