[vtkusers] Help with BMP loading and bmp to ppm convertion
anast.jm at pg.com
anast.jm at pg.com
Tue Aug 6 09:59:56 EDT 2002
Marcelo,
In order to use a bmp image for this purpose you need to extract the luminance
of the image. Try running the output of the bmp reader through vtkLuminance. In
tcl this looks like
vtkBMPReader reader
reader SetFileName myFile.bmp
vtkImageLuminance luminance
luminance SetInput [reader GetOutput]
Internet Mail Message
Received from host: public.kitware.com
[24.97.130.19]
From: Marcelo Flores <marcelomaxaqp at yahoo.es>@public.kitware.com on 08/06/2002
01:20 AM ZE2
Marcelo Flores <marcelomaxaqp at yahoo.es> To: vtkusers at public.kitware.com
@public.kitware.com Cc: (bcc: John Anast-JM/PGI)
Subject: [vtkusers] Help with BMP loading and
bmp to ppm convertion
Sent by: vtkusers-admin at public.kitware.com
08/05/2002 07:20 PM
Hi
i want to load a 2D bmp image and make it look like 3D( like the masonry example
in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object with a
vtkBMPreader object but it doesnt work properly ). I want to transform a bmp to
a ppm image too. Could anyone send me a sample code with the object vtkBMPreader
and vtkPNMreader.
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis!
More information about the vtkusers
mailing list