<!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>
&nbsp; Best regards<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luca<BR>
<BR>
On Jan 23, 2008 1:19 PM, CLEMENTS, ROBERT &lt;rclement@kent.edu&gt; wrote:<BR>
<BR>
&gt;<BR>
&gt; Is there an easy way to use an image loaded with tcl in vtk.&nbsp; What i want<BR>
&gt; to do is load an image in tcl and then use that image in my vtk pipeline.<BR>
&gt; Is this possible?<BR>
&gt;<BR>
&gt; thanks<BR>
&gt;<BR>
&gt; rob<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; This is the private VTK discussion list.<BR>
&gt; Please keep messages on-topic. Check the FAQ at:<BR>
&gt; <A HREF="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
&gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; <A HREF="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>
&gt;<BR>
&gt;<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>