I described using xinput calibrator in my very long post over here: USB Touchscreen input scaling issue on 7" 1024x600; I'm almost resolved. One issue left! - #3 by musicToMyFears
I think I also give an example of how you can use the transformation matrix “temporarily” using xinput set-prop