get touch event coordinates relative to the parent

I have a linear layout that has an image in it I am trying to get the touch event coordinates of the image relative to the parent that contains it. Do you know I can I get these? getX and getY are