[vtkusers] the use of vtkImageViewer

David Doria daviddoria at gmail.com
Mon Oct 1 10:30:35 EDT 2012


On Fri, Sep 28, 2012 at 5:23 AM, 月 <951264847 at qq.com> wrote:
> hi,everyone
>
> I'm the beginner of vtk,when I'm tried to use the class of
> vtkDICOMImageReader to read a file,in which I have changed the data type to
> "unsigned char",and then use the class of vtkImageactor.
> But I got the erro below in the vtkOutputWindow when I run it.
> ERROR: In ..\..\..\src\vtk-5.8.0\Rendering\vtkImageActor.cxx, line 266
> vtkOpenGLImageActor (027A0920): This filter requires unsigned char scalars
> as input
> Does anybody could give me some  help? Thanks very much!
>
> yue

Can you please provide the smallest possible example that demonstrates
this problem, as well as provide a sample of the input data you are
using (a small file preferably).

David



More information about the vtkusers mailing list