[Insight-users] Figure out the index of a pixel

Jian XIE jxie at cs.mu.OZ.AU
Thu Sep 2 09:44:52 EDT 2004


Dear ITK users, I just want to know if I'm accessing a 2D image using
image iterator, then the GetIndex() method will return [x1,x2] where x1,x2 is a
number. Is it true that x1 = x axis and x2 = y axis???

so if I have a 3D image, GetIndex() will return [x1,x2,x3] where x1 and x2
is the same as above and x3 = z axis???

Figure out the Index of the pixel with GetIndex() means get the exact
pixel position???

thanks for your attention
Jian


More information about the Insight-users mailing list