FW: [vtkusers] How can i get the pixel 2
Jose David Pfuturi Huisa
daviddarkzero at hotmail.com
Mon Nov 26 16:14:22 EST 2007
Hello
Let`s say:
image = vtkImageReader()image.SetFileName("earth.ppm")
i want to get the number of pixels, dimensions of imagewhat i want to get each pixel to change it for example the color of one pixel, gray value, RGB value.I saw a example on Java i.e
iniAncho = imagenFuente.getWidth( this );iniAlto = imagenFuente.getHeight( this );
for( int i=0; i < (iniAncho*iniAlto); i++ ) { // get hexadecimal number of pixel and change it in this case pix[i] = pix[i] & 0xCD0000FF; ...
}
How can i do it?
thanks in advance
From: chenchenv2003 at hotmail.comTo: daviddarkzero at hotmail.comSubject: RE: [vtkusers] How can i get the pixelDate: Mon, 26 Nov 2007 18:38:31 +0800
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.
From: daviddarkzero at hotmail.comTo: vtkusers at vtk.org; daviddarkzero at hotmail.comDate: Mon, 26 Nov 2007 06:51:43 +0100CC: Subject: [vtkusers] How can i get the pixel
Hello everybodyI 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 :(? thank in advance.José
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última MSN Newsletters
Discover the new Windows Vista Learn more!
_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071126/5ab4ccb5/attachment.htm>
More information about the vtkusers
mailing list