capture mouse coordinates in image reference frame
example with mouse callback
doc