1 [[!meta title="Image click locations"]]
3 The [[clickloc.tk]] micro-app just opens an image file and prints out
4 the pixel coordinates of any mouse clicks upon it. I use it to get
5 rough numbers from journal figures. You can use [[scale_click.py]] to
6 convert the output to units of your choice, if you use your first four
7 clicks to mark out the coordinate system (xmin,anything),
8 (xmax,anything), (anything,ymin), and (anything,ymax).
10 $ pdfimages article.pdf fig
11 $ clickloc.tk fig-000.ppm > fig-000.pixels
12 $ scale_click.py 0 10 5 20 fig-000.pixels > fig-000.data
14 Take a look at [[plotpick]] for grabbing points from raw datafiles
15 (which is more accurate and easier than reverse engineering images).
20 [[!tag tags/programming]]