[vtkusers] vtkImageCanvasSource2D err
Dean Inglis
dean.inglis at camris.ca
Thu May 6 09:22:25 EDT 2004
I get the same err on another Win2K Nvidia (GeForce Ti 4600) box
(Borland BCB5). There does not seem to be a power of two dependance.
There are two groups of incorrect pixels: one remains the same in
the lower left corner and the other group shifts depending on image
dimensions. I'll try to look further into this.
Dean
-----Original Message-----
From: John Biddiscombe [mailto:jbiddiscombe at skippingmouse.co.uk]
Sent: Wednesday, May 05, 2004 8:02 PM
To: Dean Inglis; vtkusers archive
Subject: Re: [vtkusers] vtkImageCanvasSource2D err
I get 3 or 4 black pixels (in a horizontal line) in the lower left corner
and several more near the lower right, but not near centre.
Amd Athlon, Rubbish old GeForce 2,.
JB
----- Original Message -----
From: "Dean Inglis" <dean.inglis at camris.ca>
To: "vtkusers archive" <vtkusers at vtk.org>
Sent: Wednesday, May 05, 2004 9:01 PM
Subject: [vtkusers] vtkImageCanvasSource2D err
> can someone please verify that vtkImageCanvasSource2D
> is not behaving correctly with the follwing tcl script?
> I am observing corrupted pixels at the lower left corner
> of the resultant image and at a spot lower right of
> center. The fill operation should give a completely
> red image.
>
> package require vtk
> package require vtkinteraction
>
> vtkImageCanvasSource2D acanvas
> [acanvas GetOutput] SetExtent 0 255 0 255 0 0
> [acanvas GetOutput] SetNumberOfScalarComponents 3
> [acanvas GetOutput] SetScalarTypeToUnsignedChar
> [acanvas GetOutput] SetSpacing 1 1 1
> acanvas SetDrawColor 255 0 0
> acanvas FillPixel 1 1
> acanvas Update
>
> vtkImageViewer viewer
> viewer SetInput [acanvas GetOutput]
> viewer SetColorWindow 255
> viewer SetColorLevel 127
> viewer Render
>
>
> Have I missed something here? Changing the fill seed
> to some other location does not change things.
> Writing the output to a png or bmp file shows the same
> output presented by the viewer.
>
> Build is Proximal experimental dashboard.
>
> Dean
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list