[vtkusers] Output to file (TIFF) in 16 bits?
Sebastien_MARAUX
maraux at ondim.fr
Tue May 14 03:41:52 EDT 2002
a vtktiff16reader has been made by a vtk user.
You will need to recompile one of the vtk libs.
Browse vtk mailing list history of the last 2 month
(march/april/may 2002) , and look for tiff16, you should
fine the differences applied to tiffreader to make it export
in 16 bits.
Good luck
best regards
Sebastien MARAUX
----- Original Message -----
From: "Chen, Elvis" <anisotropic7 at yahoo.ca>
To: "vtk" <vtkusers at public.kitware.com>
Sent: Monday, May 13, 2002 8:17 PM
Subject: [vtkusers] Output to file (TIFF) in 16 bits?
> greetings,
>
> I have the following codes in VTK4/Python that outputs
> the content of a vtkTkRenderWidget to a tiff file:
>
> pane = vtkTkRenderWidget.vtkTkRenderWidget( root,
> width=800, height=800 )
>
> def writeRenderWindowToTiff():
> global pane
> wif = vtkWindowToImageFilter()
> wif.SetInput( pane.GetRenderWindow() )
> w = vtkTIFFWriter()
> w.SetInput( wif.GetOutput() )
> w.SetFileName( 'test.tif' )
> w.Write()
>
> The problem of it is that the resulted TIFF file is
> only 8-bit color. I have looked into the
> documentation and can't really find any commend that
> switches on the 16bit output. Can anyone give me a
> hand?
>
> thx in advance,
>
> ______________________________________________________________________
> Games, Movies, Music & Sports! http://entertainment.yahoo.ca
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list