[vtkusers] [Insight-users] Get the selection point in screen (pixel) coordinates
David Doria
daviddoria at gmail.com
Tue Nov 30 08:53:12 EST 2010
On Mon, Nov 29, 2010 at 9:36 PM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
> Index looks like world coordinates, but always is positive. For example, for a point of world coordinates (-143.2, -277.5, 1407.9), its index is (169, 230, 34). The index you mentioned is a int type. So I think we are talking about two different things.
The Index you get from FindCell is a linear index into the image. I
added functions to get the structured index from the linear index:
http://review.source.kitware.com/#change,466
Any volunteers to review them?
David
More information about the vtkusers
mailing list