<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=371333906-04112004>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=371333906-04112004> I am trying
to set input to vtkImageActor from vtkImageReslice output as shown
below</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=371333906-04112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=371333906-04112004> vtkImageReslice
*axial=vtkImageReslice::New();<BR>
axial->SetInput(vtkImgRdr->GetOutput());<BR>
axial->SetOutputDimensionality(2);<BR> axial->SetInterpolationModeToCubic();<BR>
axial->SetResliceAxesDirectionCosines(1, 0,
0,<BR> 0, 1,
0,<BR> 0, 0, 1);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=371333906-04112004>
axial->Update();</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=371333906-04112004> </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=371333906-04112004>
vtkImageActor *axial_actor = vtkImageActor::New();<BR>
axial_actor->SetInput(axial->GetOutput());</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=371333906-04112004>When above code is
executed I get the following errors at run time.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=371333906-04112004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2>ERROR: In
C:\martink\vtk42\VTK\Rendering\vtkImageActor.cxx, line
159<BR>vtkOpenGLImageActor (0x05463DF8): This filter requires unsigned char
scalars as input</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ERROR: In
C:\martink\vtk42\VTK\Rendering\vtkImageActor.cxx, line
159<BR>vtkOpenGLImageActor (0x05463DF8): This filter requires unsigned char
scalars as input</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ERROR: In
C:\martink\vtk42\VTK\Rendering\vtkImageActor.cxx, line
159<BR>vtkOpenGLImageActor (0x05463DF8): This filter requires unsigned char
scalars as input</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT><SPAN class=371333906-04112004><FONT face=Arial size=2>Can any one
suggest me a solution for the above problem. </FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=371333906-04112004><FONT face=Arial
size=2></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=371333906-04112004><FONT face=Arial
size=2></FONT></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=371333906-04112004><FONT face=Arial size=2>Thanks &
Regards</FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=371333906-04112004><FONT face=Arial
size=2>Prashanth</FONT></SPAN></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV></FONT></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000><br>
<br>
Confidentiality Notice <br>
<br>
The information contained in this electronic message and any attachments to this message are intended<br>
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If<br>
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately<br>
and destroy all copies of this message and any attachments.<br>
</font></td></tr></table>