matlab: how to transform screen pixels into specific coordinates

Posted by user3137385 on Stack Overflow See other posts from Stack Overflow or by user3137385
Published on 2014-06-01T20:44:33Z Indexed on 2014/06/01 21:27 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

I have to draw a curve captured on a image using screen pixels (mouse clicks) into a coordinate system. E.g.: Pixels on the screen, from left to right (130 px to 970 px) correspond to the x-axis of my coordinate system (1000 to 6000). Pixels from bottom to top (670 to 99) correspond to the y-axis of coordinate system (0 to 1.2). How can this be done? Maybe there's a function in matlab doing something like that?

Some more explanation: I have a jpg image of a curve on a coordinate system. I've got pixel positions (x,y) of several points on that curve. Now I want to plot same curve into a matlab figure with same x and y axis as on the jpg image.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about coordinates