<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<FONT size=4>Hello </FONT><BR>
<FONT size=4>Let`s say:</FONT><BR>
<FONT size=4></FONT> <BR>
<FONT size=4>image = vtkImageReader()<BR>image.SetFileName("earth.ppm")</FONT><BR><FONT size=4>
<BR>i want to get the number of pixels, dimensions of image<BR>what i want to get each pixel to change it for example <BR>the color of one pixel, gray value, RGB value.<BR>I saw a example on Java i.e <BR><BR>
iniAncho = imagenFuente.getWidth( this );<BR>iniAlto = imagenFuente.getHeight( this );</FONT><BR>
<FONT size=4>for( int i=0; i < (iniAncho*iniAlto); i++ ) {<BR> // get hexadecimal number of pixel and change it in this case<BR> pix[i] = pix[i] & 0xCD0000FF; <BR> ...</FONT><BR>
<FONT size=4> }</FONT><BR>
<FONT size=4>How can i do it?</FONT><BR>
<FONT size=4></FONT> <BR>
<FONT size=4>thanks in advance</FONT><BR>
<BR><BR><BR><BR>
<BLOCKQUOTE>
<HR>
From: chenchenv2003@hotmail.com<BR>To: daviddarkzero@hotmail.com<BR>Subject: RE: [vtkusers] How can i get the pixel<BR>Date: Mon, 26 Nov 2007 18:38:31 +0800<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
do you want to get the gray value or CT value of the pixel? Try GetScalarPointer(double x, double y,double z). It can get the CT value of the pixel(x,y) and z is the slice number of CT.<BR><BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_EC_stopSpelling>
From: daviddarkzero@hotmail.com<BR>To: vtkusers@vtk.org; daviddarkzero@hotmail.com<BR>Date: Mon, 26 Nov 2007 06:51:43 +0100<BR>CC: <BR>Subject: [vtkusers] How can i get the pixel<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<FONT face="" size=4>Hello everybody</FONT><BR><FONT face="" size=4>I have a problem with image processing, How can i get the pixel of an image jpg or BMP?. i want to get dimensions of an image and each pixel, i use Python and i need to segment an image for an OCR. do you have any idea how i can do it :(? </FONT><BR><FONT face="" size=4>thank in advance.</FONT><BR><FONT face="" size=4>José</FONT><BR><BR>
<HR>
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última <A href="http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http://mail.live.com" target=_blank>MSN Newsletters</A> </BLOCKQUOTE><BR>
<HR>
Discover the new Windows Vista <A href="http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE" target=_blank>Learn more!</A> </BLOCKQUOTE><br /><hr />Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última <a href='http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com' target='_new'>MSN Newsletters</a></body>
</html>