[vtkusers] imaging in vtk

Benoit Regrain benoit.regrain at creatis.insa-lyon.fr
Wed Apr 21 04:57:56 EDT 2004


Hi,
you might have a code like this :

reader=vtkBMPReader(<file>)
ima=reader.GetOutput() // Ima is a vtkImageData
value=ima.GetScalarComponentAsDouble(x,y,z,component)

To know the number of components for each pixel, you have the method :
 GetNumberOfScalarComponents()

Benoit Regrain



  ----- Original Message ----- 
  From: Ludovic Godrant 
  To: vtkusers at vtk.org 
  Sent: Wednesday, April 21, 2004 9:48 AM
  Subject: [vtkusers] imaging in vtk


  Hi VTK users,
  Is somebody able to tell me how can i get a pixel color from a BMPReader source? I would like to get the color of a pixel with its  coordinates, i don't find the function which permit it ....

  I hope sombody could help me ...
  Thank's
  Ludo


------------------------------------------------------------------------------
  Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
  Créez votre Yahoo! Mail 

  Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040421/3af44e45/attachment.htm>


More information about the vtkusers mailing list