mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / clickloc.mdwn
1 [[!meta  title="Image click locations"]]
2
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).
9
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
13
14 Take a look at [[plotpick]] for grabbing points from raw datafiles
15 (which is more accurate and easier than reverse engineering images).
16
17 [[!tag tags/bash]]
18 [[!tag tags/code]]
19 [[!tag tags/linux]]
20 [[!tag tags/programming]]
21 [[!tag tags/tcl-tk]]
22 [[!tag tags/theory]]