1. A system comprising: a touchscreen element for sensing a touch image that corresponds to an area of the touchscreen that has an elongated interface object positioned at least proximate it, wherein the elongated interface object has a pitch and a yaw with respect to the touchscreen; and a processor and a memory, wherein the processor and memory are configured to perform the following operations: performing a first transformation to obtain a first transformation image of the touch image; performing a second transformation to obtain a second transformation image of the touch image, wherein the first transformation includes transforming pixels that have an intensity value below a first threshold, and leaving the pixels that are above the first threshold at their original intensity values, wherein the second transformation includes transforming any pixels having an intensity above a second threshold, wherein the second threshold is lower than the first threshold; determining yaw for the elongated interface object based on both the first and second transformation images; and determining pitch for the elongated interface object based on at least one of the first and second transformation images.