[vtkusers] vtkImageActor error

shivanna.prashanth at wipro.com shivanna.prashanth at wipro.com
Thu Nov 4 01:34:42 EST 2004


Hi all,
  I am trying to set input to vtkImageActor from vtkImageReslice output
as shown below

     vtkImageReslice *axial=vtkImageReslice::New();
    axial->SetInput(vtkImgRdr->GetOutput());
    axial->SetOutputDimensionality(2);
    axial->SetInterpolationModeToCubic();
    axial->SetResliceAxesDirectionCosines(1, 0, 0,
        0, 1, 0,
        0, 0, 1);

    axial->Update();
   
    vtkImageActor *axial_actor = vtkImageActor::New();
    axial_actor->SetInput(axial->GetOutput());

When above code is executed I get the following errors at run time.

ERROR: In C:\martink\vtk42\VTK\Rendering\vtkImageActor.cxx, line 159
vtkOpenGLImageActor (0x05463DF8): This filter requires unsigned char
scalars as input

ERROR: In C:\martink\vtk42\VTK\Rendering\vtkImageActor.cxx, line 159
vtkOpenGLImageActor (0x05463DF8): This filter requires unsigned char
scalars as input

ERROR: In C:\martink\vtk42\VTK\Rendering\vtkImageActor.cxx, line 159
vtkOpenGLImageActor (0x05463DF8): This filter requires unsigned char
scalars as input


Can any one suggest me a solution for the above problem.


Thanks & Regards
Prashanth






Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin at wipro.com immediately
and destroy all copies of this message and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041104/d44a48b3/attachment.htm>


More information about the vtkusers mailing list