<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>you might have a code like this :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>reader=vtkBMPReader(<file>)</FONT></DIV>
<DIV><FONT face=Arial size=2>ima=reader.GetOutput() // Ima is a
vtkImageData</FONT></DIV>
<DIV><FONT face=Arial size=2>value=ima.<FONT face="Times New Roman"
size=3>GetScalarComponentAsDouble(x,y,z,component)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To know the number of components for each pixel,
you have the method :</FONT></DIV>
<DIV><FONT face=Arial size=2> GetNumberOfScalarComponents()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Benoit Regrain</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ludogo@yahoo.fr href="mailto:ludogo@yahoo.fr">Ludovic Godrant</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, April 21, 2004 9:48
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] imaging in vtk</DIV>
<DIV><BR></DIV>
<DIV>Hi VTK users,</DIV>
<DIV>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 ....</DIV>
<DIV> </DIV>
<DIV>I hope sombody could help me ...</DIV>
<DIV>Thank's</DIV>
<DIV>Ludo</DIV>
<P>
<HR SIZE=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! <BR><A
href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez
votre Yahoo! Mail</A> <BR><BR>Dialoguez en direct avec vos amis grâce à <A
href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo!
Messenger !</A></BLOCKQUOTE></BODY></HTML>